Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DHCP and Routing Question

Status
Not open for further replies.

Alterac

Technical User
Jun 19, 2002
171
CA
Hi there,

I have a Cisco 2611 Router and this line will not work.

ip route 0.0.0.0 0.0.0.0 Ethernet0/0
^
Error at ^ Marker.

Cant use the mac address either. I want to be able to use names/mac address because my IP changes about once every 2 months and its a pain to reconfigure every time.

IOS (tm) C2600 Software (C2600-I-M), Version 12.1(2)T

Ideas why?

- Bill
 
Thats really odd. the IP ROUTE 0.0.0.0 0.0.0.0 <next-hop> command has been around for ever, I dont see why the router is complaining.

I take it Ethernet0/0 does exist in the router?
 
Sorry about the wording of the original question, I tried again after reloading the same ios and some other things and the command

Ethernet0/0 exists and gets and ip via dhcp ip = x.x.x.x

ip route 0.0.0.0 0.0.0.0 x.x.x.x <- Works

ip route 0.0.0.0 0.0.0.0 Ethernet0/0 <- Doesnt Work
ip route 0.0.0.0 0.0.0.0 Mac Address of E0/0<- Doesnt Work

and also

ip nat inside source static tcp 192.168.0.11 22 interface Ethernet0/0 22 extendable

That doesnt work, I have to specify x.x.x.x instead of interface Ethernet0/0

Id like not to have to put in the ip addresses and such because of the dynamic address my isp gives me.

- Alterac
 
Is this a fast ethernet interface? Do a show run and use the same terminology for the interface that the system uses.

 
And uh, x.x.x.x is the next hop address I have to figure out manualy, not the IP assigned to Eth0

Its a 2611 router, duel regular ethernet
My Running Config


version 12.1
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname pes
!
enable secret PASSWORD
!
!
ip subnet-zero
ip domain-name homeip.net
ip name-server 24.71.223.144
ip name-server 24.71.223.145
ip dhcp excluded-address 192.168.0.1
!
ip dhcp pool PES
network 192.168.0.0 255.255.255.0
default-router 192.168.0.1
dns-server 24.71.223.144 24.71.223.145
lease 0 8
!
!
interface Ethernet0/0
ip address dhcp
ip access-group 107 in
ip nat outside
full-duplex
arp timeout 1500
no cdp enable
!
interface Ethernet0/1
ip address 192.168.0.1 255.255.255.0
ip nat inside
full-duplex
!
ip nat inside source list 102 interface Ethernet0/0 overload
ip classless
!
ip route 0.0.0.0 0.0.0.0 68.147.174.1
!
no ip http server
!
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
access-list 107 deny tcp any any eq finger
access-list 107 permit ip any any

 
i am doing exactly what you are doing at the moment, with no luck getting it going.
it seems that your access lists arn't applied to the interface yet.

if you get it going let me know,

thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top