A 路由配置
// LESS CODE
0 user:admin 1 Power:private 2 (Router)>enable 3 (Router)#configure 4 (Router)(Config)#interface 2/1 5 (Router)(Interface 2/1)#ip address 10.0.1.1 255.255.255.0 6 (Router)(Interface 2/1)#routing 7 (Router)(Interface 2/1)#exit 8 (Router)(Config)#interface 2/2 9 (Router)(Interface 2/2)#ip address 10.0.2.1 255.255.255.0 10 (Router)(Interface 2/2)#routing 11 (Router)(Interface 2/2)#ip ospf 12 (Router)(Interface 2/2)#exit 13 (Router)(Config)#router ospf 14 (Router)(Config router)#enable 15 (Router)(Config router)#router-id 10.0.2.1 16 (Router)(Config router)#redistribute connected subnets 17 (Router)(Config router)#exit 18 (Router)(Config)#ip routing 19 (Router)(Config)#exit 20 (Router)#show ip ospf
B 路由配置
// LESS CODE
0 user:admin 1 Power:private 2 (Router)>enable 3 (Router)#configure 4 (Router)(Config)#interface 2/2 5 (Router)(Interface 2/1)#ip address 10.0.3.1 255.255.255.0 6 (Router)(Interface 2/1)#routing 7 (Router)(Interface 2/1)#exit 8 (Router)(Config)#interface 2/1 9 (Router)(Interface 2/2)#ip address 10.0.2.2 255.255.255.0 10 (Router)(Interface 2/2)#routing 11 (Router)(Interface 2/2)#ip ospf 12 (Router)(Interface 2/2)#exit 13 (Router)(Config)#router ospf 14 (Router)(Config router)#enable 15 (Router)(Config router)#router-id 10.0.2.2 16 (Router)(Config router)#redistribute connected subnets 17 (Router)(Config router)#exit 18 (Router)(Config)#ip routing 19 (Router)(Config)#exit 20 (Router)#show ip ospf
热评文章