h3c交换机LS-S3026C 怎么配置vlan
发布网友
发布时间:2022-09-15 00:13
我来回答
共1个回答
热心网友
时间:2024-10-19 01:06
给你一个H3C-S3600交换机例子:
sysname S3600
#
radius scheme system
#
domain system
#
acl number 2001
#
acl number 3001
#
acl number 4000
rule 0 permit
acl number 4001
#
vlan 1
#
vlan 100 to 102
#
vlan 106
#
vlan 118
vlan 120
#
vlan 123
#
vlan 2000
#
vlan 4000
#
interface Vlan-interface2000
ip address 192.168.1.6 255.255.255.0
#
#
interface Aux1/0/0
#
interface Ethernet1/0/1
port access vlan 100
#
interface Ethernet1/0/2
port access vlan 118
#
interface Ethernet1/0/3
port access vlan 118
#
interface Ethernet1/0/4
port access vlan 118
line-rate outbound 2048
#
interface Ethernet1/0/5
port access vlan 118
line-rate outbound 2048
#
interface Ethernet1/0/6
port access vlan 100
#
interface Ethernet1/0/7
port access vlan 100
#
interface Ethernet1/0/8
port access vlan 102
#
interface Ethernet1/0/9
port access vlan 101
#
interface Ethernet1/0/10
port access vlan 102
#
interface Ethernet1/0/11
port access vlan 102
#
interface Ethernet1/0/12
port access vlan 101
#
interface Ethernet1/0/13
port access vlan 102
#
interface Ethernet1/0/14
port access vlan 100
#
interface Ethernet1/0/15
port access vlan 100
#
interface Ethernet1/0/16
port access vlan 101
interface Ethernet1/0/17
port access vlan 101
#
interface Ethernet1/0/18
port access vlan 101
#
interface Ethernet1/0/19
port access vlan 101
#
interface Ethernet1/0/20
port access vlan 100
#
interface Ethernet1/0/21
port access vlan 101
#
interface Ethernet1/0/22
port access vlan 102
#
interface Ethernet1/0/23
port access vlan 101
#
interface Ethernet1/0/24
port access vlan 102
#
interface GigabitEthernet1/1/1
port link-type trunk
port trunk permit vlan all
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
#
interface GigabitEthernet1/1/4
#
undo irf-fabric authentication-mode
#
interface NULL0
#
management-vlan 4000
#
voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000
#
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1 preference 60
#
snmp-agent
snmp-agent local-engineid 800007DB000FE29D44626877
snmp-agent community read public
snmp-agent community write private
snmp-agent sys-info contact ggg
snmp-agent sys-info location ggg
snmp-agent sys-info version v2c v3
snmp-agent target-host trap address udp-domain 192.168.1.65 udp-port 5000 params securityname public v2c
#
user-interface aux 0 7
user-interface vty 0 4
set authentication password cipher
#
return