Sie sind auf Seite 1von 4

Router R1: --- System Configuration Dialog --Continue with configuration dialog? [yes/no]: n Press RETURN to get started!

Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)# R1(config)#interface Serial2/0 R1(config-if)#ip address 172.17.0.1 255.255.255.224 R1(config-if)#no shutdown R1(config-if)#clock rate 64000 R1(config-if)# R1(config-if)#exit R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 172.16.0.1 255.255.255.0 R1(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state t o up R1(config-if)#^Z R1# %SYS-5-CONFIG_I: Configured from console by console R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#route ospf 1 R1(config-router)#network 172.17.0.0 0.0.0.31 area 0 R1(config-router)#network 172.16.0.0 0.0.0.255 area 0 R1(config-router)#^Z R1# %SYS-5-CONFIG_I: Configured from console by console R1#sh ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 C R1# 172.16.0.0/24 is subnetted, 1 subnets 172.16.0.0 is directly connected, FastEthernet0/0

%LINK-5-CHANGED: Interface Serial2/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to up 00:08:29: %OSPF-5-ADJCHG: Process 1, Nbr 172.18.0.1 on Serial2/0 from LOADING to FULL, Loading Done R1#sh ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 C C O R1# 172.16.0.0/24 172.16.0.0 172.17.0.0/27 172.17.0.0 172.18.0.0/24 172.18.0.0 is subnetted, 1 subnets is directly connected, FastEthernet0/0 is subnetted, 1 subnets is directly connected, Serial2/0 is subnetted, 1 subnets [110/65] via 172.17.0.2, 00:00:11, Serial2/0

Router R2: --- System Configuration Dialog --Continue with configuration dialog? [yes/no]: n Press RETURN to get started!

Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2 R2(config)# R2(config)#interface Serial2/0 R2(config-if)#ip address 172.17.0.2 255.255.255.224 R2(config-if)# %LINK-5-CHANGED: Interface Serial2/0, changed state to up no shutdown R2(config-if)# R2(config-if)#exit R2(config)#interface FastEthernet0/0 R2(config-if)# R2(config-if)#ip address 172.18.0.1 255.255.255.0 R2(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state t o up R2(config-if)# R2(config-if)#^Z R2# %SYS-5-CONFIG_I: Configured from console by console R2#config t Enter configuration commands, one per line. End with CNTL/Z. R2(config)#route ospf 2 R2(config-router)#network 172.17.0.0 0.0.0.31 area 0 00:08:26: %OSPF-5-ADJCHG: Process 2, Nbr 172.17.0.1 on Serial2/0 from LOADING to FULL, Loading Done R2(config-router)#network 172.18.0.0 0.0.0.255 area 0 R2(config-router)#^Z R2# %SYS-5-CONFIG_I: Configured from console by console R2#sh ip route Codes: C - connected, S - static, I - IGRP, 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, E - EGP i - IS-IS, 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 O C C R2# 172.16.0.0/24 172.16.0.0 172.17.0.0/27 172.17.0.0 172.18.0.0/24 172.18.0.0 is subnetted, 1 subnets [110/65] via 172.17.0.1, 00:00:26, Serial2/0 is subnetted, 1 subnets is directly connected, Serial2/0 is subnetted, 1 subnets is directly connected, FastEthernet0/0

//configuration of the hosts H1 configuration: IP address: Subnet Mask: Default Gateway: H2 configuration: IP address: Subnet Mask: Default Gateway: //verifying OSPF PC>ping 172.18.0.10 Pinging 172.18.0.10 with 32 bytes of data: 172.18.0.10 255.255.0.0 172.18.0.1 172.16.0.10 255.255.0.0 172.16.0.1

Reply Reply Reply Reply

from from from from

172.18.0.10: 172.18.0.10: 172.18.0.10: 172.18.0.10:

bytes=32 bytes=32 bytes=32 bytes=32

time=93ms time=78ms time=94ms time=78ms

TTL=126 TTL=126 TTL=126 TTL=126

Ping statistics for 172.18.0.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 78ms, Maximum = 94ms, Average = 85ms PC>ping 172.16.0.10 Pinging 172.16.0.10 with 32 bytes of data: Reply Reply Reply Reply from from from from 172.16.0.10: 172.16.0.10: 172.16.0.10: 172.16.0.10: bytes=32 bytes=32 bytes=32 bytes=32 time=94ms time=94ms time=93ms time=94ms TTL=126 TTL=126 TTL=126 TTL=126

Ping statistics for 172.16.0.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 93ms, Maximum = 94ms, Average = 93ms

Das könnte Ihnen auch gefallen