Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# Switch(config)#hostname 1-JR 1-JR(config)#
JR-2
1 2 3 4 5 6 7
Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# Switch(config)#hostname 2-JR 2-JR(config)#
1-HX
1 2 3 4 5 6
Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname 1-HX 1-HX(config)#
2-HX
1 2 3 4 5 6 7
Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# Switch(config)#hostname 2-HX 2-HX(config)#
output-route
1 2 3 4 5 6 7 8 9
Router> Router>en Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)# Router(config)# Router(config)#hostname output-route output-route(config)#
HZ-output-route
1 2 3 4 5 6 7 8
Router> Router>en Router# Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname HZ-otuput-route HZ-otuput-route(config)# HZ-otuput-route(config)#
HZ-JR
1 2 3 4 5 6
Switch> Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname HZ-JR HZ-JR(config)#
Internet
1 2 3 4 5
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Internet Internet(config)#
output-route#conf t Enter configuration commands, one per line. End with CNTL/Z. output-route(config)#int e0/0 output-route(config-if)#ip add 10.0.100.254 255.255.255.0 output-route(config-if)#no shutdown output-route(config-if)#int e0/3 output-route(config-if)#ip add 13.13.13.1 255.255.255.0 output-route(config-if)#no shutdown output-route(config-if)#exit output-route(config)#
OSPF 全网互通
1-HX
1 2 3 4 5 6 7 8
1-HX(config)# 1-HX(config)#router ospf 1 1-HX(config-router)#network 10.0.10.254 0.0.0.0 area 0 1-HX(config-router)#network 10.0.20.254 0.0.0.0 area 0 1-HX(config-router)#network 10.0.12.100 0.0.0.0 area 0 1-HX(config-router)#network 10.0.100.100 0.0.0.0 area 0 1-HX(config-router)#exit 1-HX(config)#
2-HX
1 2 3 4 5 6
2-HX(config)# 2-HX(config)#router ospf 1 2-HX(config-router)#network 10.0.30.254 0.0.0.0 area 0 2-HX(config-router)#network 10.0.40.254 0.0.0.0 area 0 2-HX(config-router)#network 10.0.12.200 0.0.0.0 area 0 2-HX(config-router)#
HZ-output-route
1 2 3 4 5 6
HZ-otuput-route(config)# HZ-otuput-route(config)#router ospf 1 HZ-otuput-route(config-router)#network 192.168.200.254 0.0.0.0 area 0 HZ-otuput-route(config-router)#network 13.13.13.2 0.0.0.0 area 0 HZ-otuput-route(config-router)#exit HZ-otuput-route(config)#
output-route
1 2 3 4 5 6 7 8
output-route(config)# output-route(config)#router ospf 1 output-route(config-router)# output-route(config-router)#network 10.0.100.254 0.0.0.0 area 0 output-route(config-router)#network 13.13.13.1 0.0.0.0 area 0 output-route(config-router)# output-route(config-router)#exit output-route(config)#