OSPF 集約による優先経路選択






条件
・R1 から R4 のloopback0,1,2 への経路はR2経由としてください。
・R2経由の経路が失われた場合はR3経由を使用できるようにしてください。
・AD値の変更、cost値の変更はしないでください。


まず下記設定からスタートです。


R1
interface s1/0
ip address 12.12.12.1 255.255.255.0
no shut

interface s1/1
ip address 13.13.13.1 255.255.255.0
no shut

router ospf 1
net 12.12.12.0 0.0.0.255 area 0
net 13.13.13.0 0.0.0.255 area 0

R2
interface s1/0
ip address 12.12.12.2 255.255.255.0
no shut

interface s1/1
ip address 24.24.24.2 255.255.255.0
no shut

router ospf 1
net 12.12.12.0 0.0.0.255 area 0
net 24.24.24.0 0.0.0.255 area 0

R3
interface s1/0
ip address 34.34.34.3 255.255.255.0
no shut

interface s1/1
ip address 13.13.13.3 255.255.255.0
no shut

router ospf 1
net 34.34.34.0 0.0.0.255 area 0
net 13.13.13.0 0.0.0.255 area 0

R4
interface s1/0
ip address 34.34.34.4 255.255.255.0
no shut

interface s1/1
ip address 24.24.24.4 255.255.255.0
no shut

interface lo0
ip add 40.40.40.40 255.255.255.0

interface lo1
ip add 40.41.41.41 255.255.255.0

interface lo2
ip add 40.42.42.42 255.255.255.0

router ospf 1
net 34.34.34.0 0.0.0.255 area 0
net 24.24.24.0 0.0.0.255 area 0
net 40.0.0.0 0.255.255.255 area 4




まず上記状態にて R1 にて sh ip route を打つと、、

R1# sh ip route
Gateway of last resort is not set

     34.0.0.0/24 is subnetted, 1 subnets
O       34.34.34.0 [110/128] via 13.13.13.3, 00:00:22, Serial1/1
     24.0.0.0/24 is subnetted, 1 subnets
O       24.24.24.0 [110/128] via 12.12.12.2, 00:00:22, Serial1/0
     40.0.0.0/32 is subnetted, 3 subnets
O IA    40.40.40.40 [110/129] via 13.13.13.3, 00:00:22, Serial1/1
                    [110/129] via 12.12.12.2, 00:00:22, Serial1/0
O IA    40.41.41.41 [110/129] via 13.13.13.3, 00:00:22, Serial1/1
                    [110/129] via 12.12.12.2, 00:00:22, Serial1/0
O IA    40.42.42.42 [110/129] via 13.13.13.3, 00:00:22, Serial1/1
                    [110/129] via 12.12.12.2, 00:00:22, Serial1/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, Serial1/0
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, Serial1/1


・・・と思ったら、本家のトポロジと違うので、できないことが判明。。 ということで、cost を変えて経路選択してみます。 R1 interface s1/1 ip ospf cost 200
更新日:2012年8月26日
TOPに戻る