Hello, I really need help to solve this problem. A cisco 2611 is connected to the Internet on interface Ethernet0/1 with an ethernet ADSL modem. When you turn on the cisco, after his boot initialization, it get his ip address. But the ISP change the Internet address every two or three days, but the Cisco doesn't detect the new IP address send by the new ISP DHCP/Gateway. I must shut / no shut the ethernet0/1 interface and the it take the new address. The ISP have IP address sometimes in range 62.147.x.y , sometimes
82.252.X.Y,etc... , but the Gateway (which is too the DHCP server for this subnet) is always 62.147.X.254 or 82.252.X.254 or etc .....What's wrong in my configuration below ? I paste examples (after config file) of :
- show dhcp lease
- dhcp debug details
Thanks a lot for your help !!
Here is the configuration
***** toto.free.fr#show run Building configuration...Current configuration : 3494 bytes ! ! Last configuration change at 18:26:10 PCTime Sun Apr 17 2005 ! NVRAM config last updated at 18:29:19 PCTime Sun Apr 17 2005 ! version 12.3 no service pad service timestamps debug uptime service timestamps log uptime service password-encryption ! hostname toto.free.fr ! boot-start-marker boot-end-marker ! enable password 7 xxxxxxx ! clock timezone PCTime 1 clock summer-time PCTime date Mar 30 2003 2:00 Oct 26 2003 3:00 no aaa new-model ip subnet-zero no ip source-route ip cef ! ! no ip domain lookup ip dhcp excluded-address 192.168.0.1 192.168.0.200 ip dhcp excluded-address 192.168.0.210 192.168.0.254 ! ip dhcp pool wifi host 192.168.0.250 255.255.255.0 client-identifier 0100.4005.d042.b8 ! ip dhcp pool 1 network 192.168.0.0 255.255.255.0 default-router 192.168.0.244 dns-server 212.27.32.177 194.149.160.9 ! no ip bootp server ip audit notify log ip audit po max-events 100 no ftp-server write-enable ! ! ! ! interface Null0 no ip unreachables ! interface Ethernet0/0 description connected to EthernetLAN ip address 192.168.0.244 255.255.255.0 ip access-group 100 in no ip redirects no ip unreachables no ip proxy-arp ip nat inside half-duplex ! interface Ethernet0/1 description connected to Internet ip address dhcp ip access-group 103 in no ip proxy-arp ip nat outside half-duplex no cdp enable ! router rip version 1 passive-interface Ethernet0/1 network 192.168.0.0 no auto-summary ! ip nat inside source list 1 interface Ethernet0/1 overload ip nat inside source static udp 192.168.0.10 5555 interface Ethernet0/1 5555 ip nat inside source static tcp 192.168.0.10 5555 interface Ethernet0/1 5555 ip nat inside source static udp 192.168.0.10 6666 interface Ethernet0/1 6666 ip nat inside source static tcp 192.168.0.10 6666 interface Ethernet0/1 6666 no ip http server ip classless ! ! access-list 1 remark Regle NAT genereale access-list 1 permit 192.168.0.0 0.0.0.255 access-list 100 remark LAN In access-list 100 permit udp any any eq bootpc access-list 100 deny ip host 255.255.255.255 any access-list 100 deny ip 127.0.0.0 0.255.255.255 any access-list 100 permit ip any any access-list 103 remark ENTRANT Interface Wan access-list 103 permit udp any eq bootpc host 192.168.0.244 eq bootpc access-list 103 deny udp any any eq bootps access-list 103 deny udp any any eq snmp access-list 103 deny udp any any eq snmptrap access-list 103 permit ip any any snmp-server community public RO 1 snmp-server enable traps tty banner login ^CAuthorized access only! Disconnect IMMEDIATELY if you are not an authorized user! ****** Acces reserve - Deconnectez vous immediatement ****!^C ! line con 0 exec-timeout 0 0 password 7 xxxxxx login line aux 0 line vty 0 4 access-class 1 in password 7 xxxx login ! ntp clock-period 17208826 ntp server 195.83.132.135 ntp server 138.195.130.71 ntp server 195.83.66.36 ntp server 207.46.130.100 ! ! end
*********And for information
toto.free.fr#show dhcp server DHCP server: ANY (255.255.255.255) Leases: 423 Offers: 2 Requests: 426 Acks: 423 Naks: 0 Declines: 0 Releases: 3 Bad: 0 DNS0: 213.228.0.212, DNS1: 212.27.32.177 Subnet: 255.255.255.0
toto.free.fr#show dhcp lease Temp IP addr: 82.252.134.XXX for peer on Interface: Ethernet0/1 Temp sub net mask: 255.255.255.0 DHCP Lease server: 82.252.134.254, state: 3 Bound DHCP transaction id: 364230A Lease: 600 secs, Renewal: 60 secs, Rebind: 600 secs Temp default-gateway addr: 82.252.134.254 Next timer fires after: 00:00:32 Retry count: 0 Client-ID: cisco-0008.ZZZZ.YYYY-Et0/1 Hostname: toto.free.fr toto.free.fr#
toto.free.fr#show dhcp lease Temp IP addr: 82.252.134.xxx for peer on Interface: Ethernet0/1 Temp sub net mask: 255.255.255.0 DHCP Lease server: 82.252.134.254, state: 4 Rebinding DHCP transaction id: 3D6C09F Lease: 600 secs, Renewal: 60 secs, Rebind: 600 secs Temp default-gateway addr: 82.252.134.254 No timer running Retry count: 1 Client-ID: 0008.21ea.aa81 Hostname: toto.free.fr
Notice the No timer running that don't understand. I again do a shut/no shut on the E0/1 interface and now this is the new show dhcp lease command : toto.free.fr#show dhcp lease Temp IP addr: 62.147.217.XXX for peer on Interface: Ethernet0/1 Temp sub net mask: 255.255.255.0 DHCP Lease server: 62.147.217.254, state: 5 Renewing DHCP transaction id: 8E99607 Lease: 600 secs, Renewal: 60 secs, Rebind: 600 secs Temp default-gateway addr: 62.147.217.254 Next timer fires after: 00:07:45 Retry count: 1 Client-ID: 0008.21ea.aa81 Hostname: toto.free.fr toto.free.fr#
and now there is a Next timer fires after: 00:07:45
toto.free.fr#debug dhcp detail DHCP client activity debugging is on (detailed) toto.free.fr#
2d22h: DHCP: QScan: Bound..T1 fired..Renewing 2d22h: DHCP: SRequest attempt # 1 for entry: 2d22h: Temp IP addr: 82.252.138.229 for peer on Interface: Ethernet0/1 2d22h: Temp sub net mask: 255.255.255.0 2d22h: DHCP Lease server: 82.252.138.254, state: 5 Renewing 2d22h: DHCP transaction id: B0C85C3 2d22h: Lease: 600 secs, Renewal: 60 secs, Rebind: 600 secs 2d22h: Temp default-gateway addr: 82.252.138.254 2d22h: Next timer fires after: 00:08:59 2d22h: Retry count: 1 Client-ID: cisco-0008.21ea.aa81-Et0/1 2d22h: Hostname: toto.free.fr 2d22h: DHCP: SRequest - ciaddr: 82.252.138.229 2d22h: DHCP: SRequest placed lease len option: 600 2d22h: DHCP: SRequest: 310 bytes 2d22h: DHCP: SRequest: 310 bytes 2d22h: DHCP: Received a BOOTREP pkt 2d22h: DHCP: Scan: Message type: DHCP Ack 2d22h: DHCP: Scan: Server ID Option: 82.252.138.254 = 52FC8AFE 2d22h: DHCP: Scan: Renewal time: 60 2d22h: DHCP: Scan: Rebind time: 600 2d22h: DHCP: Scan: Lease Time: 600 2d22h: DHCP: Scan: Subnet Address Option: 255.255.255.0 2d22h: DHCP: Scan: Router Option: 82.252.138.254 2d22h: DHCP: Scan: DNS Name Server Option: 213.228.0.212, 212.27.32.177 2d22h: DHCP: rcvd pkt source: 82.252.138.254, destination: 82.252.138.229 2d22h: UDP sport: 43, dport: 44, length: 556 2d22h: DHCP op: 2, htype: 1, hlen: 6, hops: 0 2d22h: DHCP server identifier: 82.252.138.254 2d22h: xid: B0C85C3, secs: 0, flags: 0 2d22h: client: 0.0.0.0, your: 82.252.138.229 2d22h: srvr: 82.252.138.254, gw: 0.0.0.0 2d22h: options block length: 3082d22h: DHCP Ack Message
2d22h: DHCP: Lease Seconds: 600 Renewal secs: 60 Rebind secs: 600 2d22h: DHCP: Server ID Option: 82.252.138.254 2d22h: DHCP: Applying DHCP options: 2d22h: DHCP: Releasing ipl options: 2d22h: Setting default_gateway to 82.252.138.254 2d22h: Adding DNS server address 213.228.0.212 2d22h: Adding DNS server address 212.27.32.177 2d22h: DHCP Client Pooling: ***Allocated IP address: 82.252.138.229 toto.free.fr#no debug dhcp DHCP client activity debugging is off toto.free.fr#toto.free.fr#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 62.147.221.83 11 0007.cb09.a2b7 ARPA Ethernet0/1 Internet 192.168.0.9 9 00e0.4cbc.b3fb ARPA Ethernet0/0 Internet 62.147.221.254 30 0007.cb09.a2b7 ARPA Ethernet0/1 Internet 192.168.0.244 - 0008.21ea.aa80 ARPA Ethernet0/0 Internet 62.147.221.205 - 0008.21ea.aa81 ARPA Ethernet0/1
(notice that 0007.cb09.a2b7 is Mac address of ethernet ADSL modem and 0008.21ea.aa81 is Mac Address of the Ethernet0/1
toto.free.fr#traceroute 212.27.32.177
Type escape sequence to abort. Tracing the route to 212.27.32.177
1 192.168.254.254 36 msec 32 msec 37 msec 2 212.27.37.61 36 msec 36 msec 36 msec 3 212.27.51.81 40 msec 36 msec 36 msec 4 212.27.32.177 36 msec 36 msec 36 msec toto.free.fr#toto.free.fr#show ip interface Ethernet0/0 is up, line protocol is up Internet address is 192.168.0.244/24 Broadcast address is 255.255.255.255 Address determined by non-volatile memory MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Multicast reserved groups joined: 224.0.0.9 Outgoing access list is not set Inbound access list is 100 Proxy ARP is disabled Local Proxy ARP is disabled Security level is default Split horizon is enabled ICMP redirects are never sent ICMP unreachables are never sent ICMP mask replies are never sent IP fast switching is enabled IP fast switching on the same interface is disabled IP Flow switching is disabled IP CEF switching is enabled IP CEF Feature Fast switching turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled IP route-cache flags are Fast, CEF Router Discovery is disabled IP output packet accounting is disabled IP access violation accounting is disabled TCP/IP header compression is disabled RTP/IP header compression is disabled Policy routing is disabled Network address translation is enabled, interface in domain inside WCCP Redirect outbound is disabled WCCP Redirect inbound is disabled WCCP Redirect exclude is disabled BGP Policy Mapping is disabled Ethernet0/1 is up, line protocol is up Internet address is 62.147.221.205/24 Broadcast address is 255.255.255.255 Address determined by DHCP MTU is 1500 bytes Helper address is not set Directed broadcast forwarding is disabled Outgoing access list is not set Inbound access list is 103 Proxy ARP is disabled Local Proxy ARP is disabled Security level is default Split horizon is enabled ICMP redirects are always sent ICMP unreachables are always sent ICMP mask replies are never sent IP fast switching is enabled IP fast switching on the same interface is disabled IP Flow switching is disabled IP CEF switching is enabled IP CEF Feature Fast switching turbo vector IP multicast fast switching is enabled IP multicast distributed fast switching is disabled IP route-cache flags are Fast, CEF Router Discovery is disabled IP output packet accounting is disabled IP access violation accounting is disabled TCP/IP header compression is disabled RTP/IP header compression is disabled Policy routing is disabled Network address translation is enabled, interface in domain outside WCCP Redirect outbound is disabled WCCP Redirect inbound is disabled WCCP Redirect exclude is disabled BGP Policy Mapping is disabled toto.free.fr# toto.free.fr#show interfaces Ethernet0/0 is up, line protocol is up Hardware is AmdP2, address is 0008.21ea.aa80 (bia 0008.21ea.aa80) Description: connected to EthernetLAN Internet address is 192.168.0.244/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:06, output 00:00:03, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops:
0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 4172347 packets input, 1220388978 bytes, 0 no buffer Received 53153 broadcasts, 0 runts, 0 giants, 0 throttles 21 input errors, 0 CRC, 0 frame, 0 overrun, 21 ignored 0 input packets with dribble condition detected 5623482 packets output, 935378313 bytes, 0 underruns 0 output errors, 34856 collisions, 3 interface resets 0 babbles, 0 late collision, 54663 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Ethernet0/1 is up, line protocol is up Hardware is AmdP2, address is 0008.21ea.aa81 (bia 0008.21ea.aa81) Description: connected to Internet Internet address is 62.147.221.205/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:09, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 5642038 packets input, 941936111 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 2 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 input packets with dribble condition detected 4243738 packets output, 1212690519 bytes, 0 underruns 202 output errors, 38583 collisions, 9 interface resets 0 babbles, 0 late collision, 188974 deferred 202 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out toto.free.fr#If you need anything else... ask me.
Thanks very much