ospf鏈路狀態路由協議

ospf鏈路狀態路由協議示意圖:

ospf鏈路狀態路由協議

R1配置:

hostname R1

interface Loopback0

ip address 192.168.1.1 255.255.255.0

interface Loopback1

ip address 1.1.1.1 255.255.255.0

interface FastEthernet0/0

ip address 12.1.1.1 255.255.255.0

ip nat inside

interface FastEthernet1/0

ip address 59.56.61.1 255.255.255.0

ip nat outside

interface FastEthernet2/0

ip address 13.1.1.1 255.255.255.0

router ospf 110

router-id 1.1.1.1

network 1.1.1.0 0.0.0.255 area 0

network 12.1.1.0 0.0.0.255 area 0

network 13.1.1.0 0.0.0.255 area 1

network 192.168.1.0 0.0.0.255 area 1

default-information originate metric 10

ip route 0.0.0.0 0.0.0.0 59.56.61.6

ip nat inside source list 1 interface FastEthernet1/0 overload

access-list 1 permit 192.168.2.0 0.0.0.255

R2配置:

hostname R2

interface FastEthernet0/0

ip address 12.1.1.2 255.255.255.0

interface FastEthernet1/0

ip address 25.1.1.2 255.255.255.0

router ospf 110

router-id 2.2.2.2

redistribute rip metric 10 subnets

network 12.1.1.0 0.0.0.255 area 0

router rip

version 2

redistribute ospf 110 metric 3

network 25.0.0.0

no auto-summary

R3配置:

hostname R3

interface FastEthernet0/0

ip address 13.1.1.3 255.255.255.0

interface FastEthernet1/0

ip address 34.1.1.3 255.255.255.0

router ospf 110

router-id 3.3.3.3

redistribute connected subnets

redistribute static metric 200 subnets

network 13.1.1.0 0.0.0.255 area 1

ip route 192.168.3.0 255.255.255.0 34.1.1.4


分享到:


相關文章: