R1#sho ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.1.21.1       YES manual up                    up     
Serial1/0                  10.1.12.1       YES manual up                    up

R2#sho ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.1.21.2       YES manual up                    up     
Serial1/0                  10.1.12.2       YES manual up                    up     
Loopback0                  2.2.2.2         YES manual up                    up 

R1#sho run | s ospf
router ospf 1
 log-adjacency-changes
 no auto-cost
 network 10.1.12.0 0.0.0.255 area 0
 network 10.1.21.0 0.0.0.255 area 0

R2#sho run | s ospf
router ospf 1
 log-adjacency-changes
 no auto-cost
 network 2.2.2.0 0.0.0.255 area 0
 network 10.1.12.0 0.0.0.255 area 0
 network 10.1.21.0 0.0.0.255 area 0

R1#sho ip route ospf
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/11] via 10.1.21.2, 00:01:55, FastEthernet0/0

R1#sho ip ospf interface fa0/0
FastEthernet0/0 is up, line protocol is up
  Internet Address 10.1.21.1/24, Area 0
  Process ID 1, Router ID 10.1.21.1, Network Type BROADCAST, Cost: 10

R1#sho ip ospf int s1/0
Serial1/0 is up, line protocol is up
  Internet Address 10.1.12.1/24, Area 0
  Process ID 1, Router ID 10.1.21.1, Network Type POINT_TO_POINT, Cost: 1562

R1(config)#int fa0/0
R1(config-if)#ip ospf cost 1

R1(config)#int s1/0
R1(config-if)#ip ospf cost 1

R1#sho ip route ospf
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/2] via 10.1.21.2, 00:07:02, FastEthernet0/0
                [110/2] via 10.1.12.2, 00:07:02, Serial1/0

0 comments:

Post a Comment

 
Top