OSPF多区域配置:
1)拖动仪器连线;(个人喜欢3660)
2)开始运行;
3)对PC1进行设置:
PC1> ip 192.168.2.5/24 192.168.2.1
(注意此处不加 address ,地址 / 掩码 + 网关)
4)对PC2进行设置:
PC2> ip 192.168.3.5/24 192.168.3.1
5)对R1进行设置:
R1#conf t
R1(config)#int fastEthernet 0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#ex
R1(config)#int fastEthernet 0/1
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#ex
设置路由地址:
R1(config)#interface loopback
R1(config-if)#ip address 10.1.1.1 255.255.255.0 (loopback+掩码)
Ospf配置:
R1(config)#router ospf 1
R1(config-router)#router-id 10.1.1.1 (loopback地址)
R1(config-router)#network 192.168.2.0 0.0.0.255 ar