求华为S2300交换机配置命令~~~~~~

2024-11-27 06:05:53
推荐回答(1个)
回答1:

#
vlan batch 1 2 12 14 16
#
bpdu enable
#
cluster enable
ntdp enable
ntdp hop 16
ndp enable
#
voice-vlan mac-address 0001-e300-0000 mask ffff-ff00-0000 description Simens phone
voice-vlan mac-address 0003-6b00-0000 mask ffff-ff00-0000 description Cisco phone
voice-vlan mac-address 0004-0d00-0000 mask ffff-ff00-0000 description Avaya phone
voice-vlan mac-address 0060-b900-0000 mask ffff-ff00-0000 description Philips/NEC phone
voice-vlan mac-address 00d0-1e00-0000 mask ffff-ff00-0000 description Pingtel phone
voice-vlan mac-address 00e0-7500-0000 mask ffff-ff00-0000 description Polycom phone
voice-vlan mac-address 00e0-bb00-0000 mask ffff-ff00-0000 description 3com phone
#
interface Vlanif1
ip address 192.168.1.7 255.255.255.0
#
interface Ethernet0/0/1
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/2
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/3
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/4
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/5
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/6
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/7
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/8
port default vlan 12
ntdp enable
ndp enable
#
interface Ethernet0/0/9
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/10
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/11
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/12
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/13
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/14
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/15
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/16
port default vlan 14
ntdp enable
ndp enable
#
interface Ethernet0/0/17
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/18
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/19
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/20
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/21
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/22
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/23
port default vlan 16
ntdp enable
ndp enable
#
interface Ethernet0/0/24
port default vlan 16
ntdp enable
ndp enable
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 1 to 4094
ntdp enable
ndp enable
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 1 to 4094
ntdp enable
ndp enable
#
interface NULL0
#
aaa
authentication-scheme default
#
authorization-scheme default
#
accounting-scheme default
#
domain default
#
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
#
user-interface con 0
user-interface vty 0 4
user privilege level 3
set authentication password cipher N`C55QK<`=/Q=^Q`MAF4<1!!
#
return