OSPF基本配置

作者: admin 分类: 网络 发布时间: 2019-04-29 00:50 浏览:855 次    

%title插图%num

  • R1:
en

conf t

int f0/0

ip add 10.1.1.1 255.255.255.0

no sh

int f0/1

ip add 192.168.1.1 255.255.255.0

no sh

end

show ip int brief

conf t

router ospf 100

network 10.1.1.0 0.0.0.255 area 1

network 192.168.1.0 0.0.0.255 area 1

end

show ip route
  • R2:
en

conf t

int f0/0

ip add 10.1.1.2 255.255.255.0

no sh

int f0/1

ip add 10.2.2.2 255.255.255.0

no sh

end

show ip int brief

conf t

router ospf 100

network 10.1.1.0 0.0.0.255 area 1

network 10.2.2.0 0.0.0.255 area 0

end

show ip route
  • R3:
en

conf t

int f0/0

ip add 10.3.3.1 255.255.255.0

no sh

int f0/1

ip add 10.2.2.1 255.255.255.0

no sh

end

show ip int brief

conf t

router ospf 100

network 10.2.2.0 0.0.0.255 area 0

network 10.3.3.0 0.0.0.255 area 2

end

show ip route
  • R4:
en

conf t

int f0/0

ip add 10.3.3.2 255.255.255.0

no sh

int f0/1

ip add 172.16.1.1 255.255.255.0

no sh

end

show ip int brief

conf t

router ospf 100

network 10.3.3.0 0.0.0.255 area 2

network 172.16.1.0 0.0.0.255 area 2

end

show ip route
  • 测试:

PC1:

%title插图%num

PC2:

%title插图%num


温馨提示:如无特殊说明,本站文章均为作者原创,转载时请注明出处及相应链接!

发表评论