项目场景:
解决方案:
1.划分网段
2.vlan划分
3.静态路由
4.r8的环回汇总
划分网段
vlan划分
[sw1-Ethernet0/0/3]port link-type access
[sw1-Ethernet0/0/3]port default vlan 2
[sw1-Ethernet0/0/4]port link-type access
[sw1-Ethernet0/0/4]port default vlan 3
[sw1]interface e0/0/2
[sw1-Ethernet0/0/2]port link-type trunk
[sw1-Ethernet0/0/2]port trunk allow-pass vlan 2 to 3
[sw1-Ethernet0/0/1]port link-type trunk
[sw1-Ethernet0/0/1]port trunk allow-pass vlan 2 to 3
静态路由
ip route-static 0.0.0.0 0.0.0.0 192.168.0.14
ip route-static 192.168.0.0 255.255.255.252 192.168.0.9
ip route-static 192.168.0.4 255.255.255.252 192.168.0.14
ip route-static 192.168.0.16 255.255.255.252 192.168.0.14
ip route-static 192.168.0.20 255.255.255.252 192.168.0.14
r8的环回汇总
[r4]ip route-static 192.168.0.0 24 192.168.0.5