华为宗合
实验拓扑图:
推荐步骤:
ISP配置默认路由:
[ISP]ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet 0/0/0 192.168.2.2
NAT配置默认路由:
[NAT]ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet 0/0/1 192.168.2.1
[R7]ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet 0/0/0 192.168.7.1
配置RIPV2,路由汇总、宣告直连、配置OSpf:
R1
[ISP]rip 1
[ISP-rip-1]network 192.168.1.0
[ISP-rip-1]network 192.168.2.0
R2:
R3:
[R3]rip 1
[R3-rip-1]version 2
[R3-rip-1]network 192.168.3.0
[R3-rip-1]network 192.168.4.0
R4:
[R4]rip 1
[R4-rip-1]version 2
[R4-rip-1]network 192.168.4.0
[R4]ospf router-id 1.1.1.1
[R4-ospf-1-area-0.0.0.0]area 0
[R4-ospf-1-area-0.0.0.0]undo network 1.1.1.1
[R4-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
R5
[R5]ospf router-id 2.2.2.2
[R5-ospf-1-area-0.0.0.0]area 0
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[R5-ospf-1]ospf router-id 3.3.3.3
[R5-ospf-1]area 1
[R5-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[R5-ospf-1-area-0.0.0.1]network 192.168.6.0 0.0.0.255
R6:
[R6]ospf router-id 3.3.3.3
[R6-ospf-1]area 1
[R6-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[R6-ospf-1-area-0.0.0.1]network 192.168.6.0 0.0.0.255
[R6]rip 1
[R6-rip-1]network 192.168.7.0
配置路由重分发:
[R4]ospf 1
[R4-ospf-1]import-route rip cost 1
[R4-ospf-1]rip 1
[R4-rip-1]import-route ospf 1 cost 1
配置telnet:
[R7]user-interface vty 0 4
[R7-ui-vty0-4]authentication-mode password
[R7-ui-vty0-4]set authentication password cipher pwd@1234
[R7-ui-vty0-4]q
全网互通: