Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.X
Router(config)#no ip domain-lookup
Router(config)#ho r3
r3(config)#line con 0
r3(config-line)#logg sy
r3(config-line)#exec-t 00
r3(config-line)#exi
r3(config)int e1/0
r3(config-if)no sh
r3(config-if)ip add dhcp
r3(config)#router ei 100
r3(config-router)#net 23.1.1.0 0.0.0.255
r3#ping 12.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/46/124 ms
r3(config)#int e1/0
r3(config-if)#sh
01:40:21: %LINK-5-CHANGED: Interface Ethernet1/0, changed state to administratively down
01:40:22: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to down
r3(config-if)#no sh
r3(config-if)#Interface Ethernet1/0 assigned DHCP address 23.1.1.2, mask 255.255.255.0
01:40:28: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up
01:40:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to up
r3(config-if)#exi
r3(config)#exi
01:40:35: %SYS-5-CONFIG_I: Configured from console by console
r3#sh ip int bri
Interface IP-Address OK? Method Status Protocol
Ethernet1/0 23.1.1.2 YES DHCP up up
Ethernet1/1 unassigned YES unset administratively down down
Ethernet1/2 unassigned YES unset administratively down down
Ethernet1/3 unassigned YES unset administratively down down
评论0
最新资源