需求:内部办公用户使用隧道转发模式Vlan101;访客使用转发模式Vlan102.
配置各终端IP地址
<Huawei>sys
[Huawei]sys R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.200.2 30
[R1-GigabitEthernet0/0/0]q
[R1]ip route-static 192.168.101.0 24 192.168.200.1 //配置静态路由,分别是两个业务
[R1]ip route-static 192.168.102.0 24 192.168.200.1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys SW1
[SW1]vlan batch 100 101 102 200
SW1]dhcp en
[SW1]int vlanif 101
[SW1-Vlanif101]ip add 192.168.101.254 24
[SW1-Vlanif101]dhcp select int
[SW1-Vlanif101]int vlanif 102
[SW1-Vlanif102]ip add 192.168.102.254 24
[SW1-Vlanif102]dhcp select int
[SW1-Vlanif102]int vlanif 200
[SW1-Vlanif200]ip add 192.168.200.1 30
[SW1]int g0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-Giga