路由1:
system-view
vlan 10
vlan 20
qu
interface range g1/0/1 to g1/0/2
port link-type access
port access vlan 10
qu
interface range g1/0/3 to g1/0/4
port link-type access
port access vlan 20
路由2:
system-view
vlan 10
vlan 20
qu
interface range g1/0/1 to g1/0/2
port link-type trunk
port trunk permit vlan 10 20
qu
interface g1/0/48
port link-type trunk
port trunnk permit vlan 10 20
交换机:
system-view
interface g0/0.10
vlan-type dot1q vid 10
ip address 192.168.10.254 24
interface g0/0.20
vlan-type dot1q vid 20
ip address 192.168.20.254 24