華為交換機端口隔離


華為交換機端口隔離,實現的是交換機端口之間的不能互通,直接在每個接口下面配置port—isolate  enable命令。但是上聯口不能配置port-isolate命令,下聯口可以配置port-isolate命令。該命令是在同一vlan下的端口實現不能互通。

sysname 
#
 vlan batch 1 888 964
#
 bpdu enable
#
 cluster enable
 ntdp enable
 ntdp hop 16
 ndp enable
#
interface Ethernet0/0/1
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/2                   
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/3
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/4
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#                                         
interface Ethernet0/0/5
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/6
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/7
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable                               
#
interface Ethernet0/0/8
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/9
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/10
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable                              
 ndp enable
#
interface Ethernet0/0/11
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/12
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/13
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable                      
 ntdp enable
 ndp enable
#
interface Ethernet0/0/14
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/15
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/16
 port default vlan 964
 loopback-detect enable
 loopback-detect action block             
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/17
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/18
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/19
 port default vlan 964
 loopback-detect enable                   
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/20
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/21
 port default vlan 964
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/22
 port default vlan 964                    
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/23
 port default vlan 1
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
interface Ethernet0/0/24
 port default vlan 1
 loopback-detect enable
 loopback-detect action block
 port-isolate enable
 ntdp enable
 ndp enable
#
//上聯端口G0/0/1 interface GigabitEthernet0/0/1 port default vlan 1 port trunk allow-pass vlan 888 964 negotiation auto loopback-detect enable loopback-detect action block ntdp enable ndp enable #
//下聯端口G0/0/2(下面還有一台交換機) interface GigabitEthernet0/0/2 port default vlan 1 port trunk allow-pass vlan 888 964 loopback-detect enable loopback-detect action block port-isolate enable ntdp enable ndp enable # interface NULL0 # aaa authentication-scheme default # authorization-scheme default # accounting-scheme default # domain default #

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM