H3C-S3600 VLAN
一。vlan
1. vlan 1
quit
interface vlan-interface 1
port e 1/0/23
ip address 192.168.60.2 255.255.255.0
2。vlan 2
quit
interface vlan-interface 2
port e 1/0/20
ip address 192.168.61.2 255.255.255.0
3. vlan 3
quit
interface vlan-interface 3
port e 1/0/21
ip address 192.168.62.2 255.255.255.0
4. vlan 4
quit
interface vlan-interface 4
port e 1/0/3
ip address 192.168.63.2 255.255.255.0
5. vlan 5
quit
interface vlan-interface 5
port e 1/0/6
ip address 192.168.64.2 255.255.255.0
二。路由
1。交换机:
ip route-static 0.0.0.0 0.0.0.0 192.168.60.1 #删除此条路由会如何?
#ip route-static 192.168.61.0 255.255.255 192.168.61.1 #三层交换机不需要设此条路由,会自动抓取
2. 路由器(192.168.60.1)添加回指路由:
把内网的4个段 指向192.168.60.2 VLAN1的接口IP
ip route 192.168.61.0 255.255.255 192.168.60.2 #不设置回指路由会如何?
ip route 192.168.62.0 255.255.255 192.168.60.2
ip route 192.168.63.0 255.255.255 192.168.60.2
ip route 192.168.64.0 255.255.255 192.168.60.2
一。跨交换机不同Vlan间的通信
二。跨交换机不同Vlan间的通信(A机发消息给C机)
1. A机发