switchport mode private-vlan promiscuous /接口模式为私有VLAN的混杂接口/ switchport private-vlan mapping 45 451,452 /设置接口为VLAN 45的主接口,与VLAN451和452关联/ 5 案例检验结果 1、 配置私有VLAN前R1的连通性测试: 2、 配置私有VLAN后,R1和其他设备的连通性测试: 3、 配置私有VLAN后,R3和其他设备的...
mac access-group through private-vlan mapping mac access-group mac access-list extended mac-address-table aging-time mac-address-table dynamic mac-address-table limit mac-address-table notification change mac-address-table notification mac-move mac-address-table static mac-address-table secure mls sw...
interface gig1/1,switchport,switchport mode private-vlan promiscuous,switchport mode private-vlan mapping 100 200,300 7、也可以给次私用VLAN映射到MSFC接口,也可以说映射到主私用VLAN接口上,这样也可以实现次私用VLAN对其他VLAN的访问。 interface vlan 100,ip address 192.168.100.1 255.255.255.0,private-vlan ...
Switch(config-if-range)#switchport mode private-vlan promiscuous //定义混杂接口 Switch(config-if-range)#switchport private-vlan mapping 10 20,30 //定义主和辅助的关系,通过主去找到辅助VLAN Switch(config-if-range)#inter range e0/3 , e1/0 Switch(config-if-range)#switchport mode private-vlan hos...
Switch(config-if)#Switchitchport private-vlan mapping 200 102 Switch(config-if)#Switchitchport mode private-vlan host ###进入接口模式,配置接口为PVLAN的host模式,配置Pvlan的主vlan以及second vlan,一定用102,102是隔离vlan 至此,配置结束,经过实验检测,各个端口之间不能通信,但都可以与自己的网关通信。
SW1(config)#interface fastEthernet 0/1 SW1(config-if-FastEthernet 0/1)#switchport mode trunk SW1(config-if-FastEthernet 0/1)#switchport mode private-vlan promiscuous SW1(config-if-FastEthernet 0/1)#switchport private-vlan mapping 10 add 20,30 SW1(config-if-FastEthernet 0/1)#exit ...
ip address 192.168.0.254 255.255.255.0 private-vlan mapping add 2-4 ! interface VLAN 100 ip address 192.168.100.1 255.255.255.0 ! ! ! ! ! ! ip route 0.0.0.0 0.0.0.0 192.168.100.2 ! ! line con 0 line vty 0 4 login password infotech ! ! ! ! ! end...
showinterfacesprivate-vlanmapping ●524917790">做私有vlan 给你一个参考配置 R1可以和PC1、PC2、PC3、PC4互访,PC1可以和PC2互访;PC3、PC4不能互访、VLAN501和VLAN502不可以互访 1、必须将VTP的模式设置成为transparent模式 sw1(config)#vtpmodetransparent 2、创建vlan 在私有vlan中vlan有两种一个是primary...
--->设置端口为私有vlan的主模式Switch(config-if-range)#switchport private-vlan association mapping 100 10 --->第一个是主vlan,后面是要绑定的隔离和团队vlanSwitch(config-if-range)#switchport private-vlan association mapping 100 add 20--->虚拟机不支持mapping 100 10,20这样一次添加多个6.配置VSI ...
switchport private-vlan mapping 10 20,30//映射vlan int e0/3 sw tr en do sw mo tr SW3: vtp mode off vlan 10 name primary_vlan private-vlan primary private-vlan association 20,30 vlan 20 name community_vlan private-vlan community vlan 30 name isolated_vlan private-vlan isolated int e0/...