Vlan100 prim vlan Vlan 101 comm vlan Vlan 102 ISO vlan Router(config)#vlan vlan-id Router(config-vlan)#private-vlan {community | isolated | primary} Router(config-vlan)#exit Router(config)#vlan primary-vlan-id Router(config-vlan)#private-vlan association {2nd-vlan-list | add 2nd-vlan-lsit | remove 2nd-vlan-lst} Router(config)#interface vlan primary-vlan-id Router(config-if)#private-vlan mapping {2nd-vlan-list | add 2nd-vlan-lsit | remove 2nd-vlan-lst} Router(config)#interfacet type slot/port Router(config-if)#switchport Router(config-if)#switchport mode private-vlan {host | promiscuous} Router(config-if)#switchport private-vlan host-association primary-vlan-id 2nd-vlan-id(在host) Router(config-if)#switchport private-vlan mapping prmary-vlan-id(在primary应用) Show vlan private-vlan 查看
|