码迷,mamicode.com
首页 > 系统相关 > 详细

[cisco]Configure private VLAN

时间:2020-02-10 14:07:47      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:media   mis   color   inter   switch   port   nbsp   image   access   

技术图片

 

 

 

 

 

vlan 100
  private-vlan isolated
!
vlan 200
  private-vlan community
!
vlan 300
  private-vlan primary
  private-vlan association 100,200
!
!
!
!

interface GigabitEthernet0/0
 switchport access vlan 300
 switchport private-vlan mapping 300 100,200
 switchport mode private-vlan promiscuous
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/1
 switchport access vlan 100
 switchport private-vlan host-association 300 100
 switchport mode private-vlan host
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/2
 switchport access vlan 100
 switchport private-vlan host-association 300 100
 switchport mode private-vlan host
 media-type rj45
 negotiation auto
!
interface GigabitEthernet0/3
 switchport access vlan 200
 switchport private-vlan host-association 300 200
 switchport mode private-vlan host
 media-type rj45
 negotiation auto
!
interface GigabitEthernet1/0
 switchport access vlan 200
 switchport private-vlan host-association 300 200
 switchport mode private-vlan host
 media-type rj45
 negotiation auto

 

[cisco]Configure private VLAN

标签:media   mis   color   inter   switch   port   nbsp   image   access   

原文地址:https://www.cnblogs.com/jbite9057/p/12290333.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!