OSPF基本配置
- 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:
PC2:
温馨提示:如无特殊说明,本站文章均为作者原创,转载请注明出处!