Sei sulla pagina 1di 6

Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1 R1(config)#do show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down FastEthernet0/1 unassigned YES unset administratively down down Serial0/0/0 unassigned YES unset administratively down down Serial0/0/1 unassigned YES unset administratively down down R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown *Mar 21 06:02:24.279: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up *Mar 21 06:02:25.279: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#exit R1(config)#interface Serial0/0/1 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown *Mar 21 06:04:04.271: %LINK-3-UPDOWN: Interface Serial0/0/1, changed state to up *Mar 21 06:04:05.271: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up R1(config-if)#exit R1(config)#router rip R1(config-router)#network 192.168.1.0 R1(config-router)#network 192.168.2.0 R1(config-router)#exit R1(config)#

Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2 R2(config)#do show ip interface brief Interface IP-Address OK? Method Status FastEthernet0/0 unassigned YES unset administratively down FastEthernet0/1 unassigned YES unset administratively down Serial0/0/0 unassigned YES unset administratively down Serial0/0/1 unassigned YES unset administratively down

Protocol down down down down

R2(config)#interface fastEthernet0/0 R2(config-if)#ip address 192.168.3.1 255.255.255.0 R2(config-if)#no shutdown *Mar 21 06:06:24.733: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up *Mar 21 06:06:25.733: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)#interface fastEthernet0/1 R2(config-if)#ip address 192.168.4.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)# *Mar 21 04:52:52.735: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up R2(config)#interface se0/0/1 R2(config-if)#ip address 192.168.2.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#router rip R2(config-router)#network 192.168.2.0 R2(config-router)#network 192.168.3.0 R2(config-router)#network 192.168.4.0 R2(config-router)#

R2#show run Building configuration... Current configuration : 806 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! ip subnet-zero ! ! ip cef ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.3.1 255.255.255.0 duplex auto speed auto !

interface FastEthernet0/1 ip address 192.168.4.1 255.255.255.0 duplex auto speed auto ! interface Serial0/0/0 no ip address shutdown clock rate 125000 ! interface Serial0/0/1 ip address 192.168.2.2 255.255.255.0 no fair-queue clock rate 125000 ! router rip network 192.168.2.0 network 192.168.3.0 network 192.168.4.0 ! ip classless ! ip http server ! ! control-plane ! ! line con 0 line aux 0 line vty 0 4 login ! scheduler allocate 20000 1000 ! end R2#

R2#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/15/16 ms Router#

R1#ping 192.168.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/36 ms Router#

Router#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set R 192.168.4.0/24 [120/1] via 192.168.2.2, 00:00:01, Serial0/0/1 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0/1 R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:01, Serial0/0/1 Router#

Router#show ip interface brief Interface IP-Address FastEthernet0/0 192.168.1.1 FastEthernet0/1 unassigned Serial0/0/0 unassigned Serial0/0/1 192.168.2.1 Router#

OK? Method YES manual YES unset YES unset YES manual

Status Protocol up up administratively down down administratively down down up up

Router#show run Building configuration... Current configuration : 745 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname Router ! boot-start-marker boot-end-marker ! ! no aaa new-model ! resource policy ! ip subnet-zero ! ! ip cef ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.1.1 255.255.255.0 duplex auto speed auto !

interface FastEthernet0/1 no ip address shutdown duplex auto speed auto ! interface Serial0/0/0 no ip address shutdown clock rate 125000 ! interface Serial0/0/1 ip address 192.168.2.1 255.255.255.0 ! router rip network 192.168.1.0 network 192.168.2.0 ! ip classless ! no ip http server ! ! control-plane ! ! line con 0 line aux 0 line vty 0 4 login ! scheduler allocate 20000 1000 ! end Router#

Router#show ip interface brief Interface IP-Address FastEthernet0/0 192.168.3.1 FastEthernet0/1 192.168.4.1 Serial0/0/0 unassigned Serial0/0/1 192.168.2.2 Router#

OK? YES YES YES YES

Method manual manual unset manual

Status Protocol up up up down administratively down down up up

Router#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set R 192.168.4.0/24 [120/1] via 192.168.2.2, 00:00:01, Serial0/0/1 C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, Serial0/0/1 R 192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:01, Serial0/0/1 Router#

Potrebbero piacerti anche