测试
ip vpn-instance OA //创建虚拟路由表
ipv4-family
route-distinguisher 1:1 //激活虚拟路由表
ip vpn-instance YW
ipv4-family
route-distinguisher 1:2
interface Vlanif10
ip binding vpn-instance OA //将虚拟路由表绑定
ip address 192.168.10.254 255.255.255.0
interface Vlanif11
ip binding vpn-instance OA
ip address 10.1.11.1 255.255.255.0
interface Vlanif20
ip binding vpn-instance YW
ip address 192.168.20.254 255.255.255.0
interface Vlanif21
ip binding vpn-instance YW
ip address 10.1.21.1 255.255.255.0
interface Vlanif31
ip address 10.1.31.1 255.255.255.0
interface Vlanif41
ip address 10.1.41.1 255.255.255.0
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
interface GigabitEthernet0/0/3
port link-type access
port default vlan 31
interface GigabitEthernet0/0/4
port link-type trunk
port trunk allow-pass vlan 11 21
interface GigabitEthernet0/0/5
port link-type access
port default vlan 41