华为某交换机的配置

#
!Software Version V100R005C01
 sysname bjhy-24yyt
#
 vlan batch 1 2002 to 2003
#
 cluster enable
 ntdp enable
 ntdp hop 16
 ndp enable
#
 bpdu enable
#
 dhcp enable
#
 undo http server enable
#
 drop illegal-mac alarm
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default                          
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
 ip address dhcp-alloc
#
interface Vlanif2002
 ip address 172.16.1.6 255.255.255.0
#
interface Ethernet0/0/1
loopback-detect enable
 port hybrid pvid vlan 2003
 port hybrid untagged vlan 2003
 ntdp enable
 ndp enable
#
interface Ethernet0/0/2
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#                                        
interface Ethernet0/0/3
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/4
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/5
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/6
 port hybrid pvid vlan 2002              
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/7
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/8
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/9
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002          
 ntdp enable
 ndp enable
#
interface Ethernet0/0/10
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/11
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/12
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable                              
#
interface Ethernet0/0/13
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/14
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/15
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/16                 
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/17
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/18
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/19
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003            
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/20
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/21
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/22
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable                             
 ndp enable
#
interface Ethernet0/0/23
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface Ethernet0/0/24
 port hybrid pvid vlan 2002
 port hybrid tagged vlan 2003
 port hybrid untagged vlan 2002
 ntdp enable
 ndp enable
#
interface GigabitEthernet0/0/1
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 2002 to 2003
 ntdp enable
 ndp enable
#                                        
interface GigabitEthernet0/0/2
 port link-type trunk
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan 2002 to 2003
 ntdp enable
 ndp enable
#
interface NULL0
#
 ip route-static 0.0.0.0 0.0.0.0 172.16.1.1
#
 snmp-agent
 snmp-agent local-engineid 000007DB7F0000010000287D
 snmp-agent sys-info version v3
#
user-interface con 0
user-interface vty 0 4
 user privilege level 15
 set authentication password cipher .]@USE=B,53Q=^Q`MAF4<1!!
#
port-group link-type
#
return      
 

你可能感兴趣的:(华为,交换机)