华为16口交换机(用于网件瘦AP)配置模板

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

注:
如果交换机已经配过了数据,先清空,再配新数据
reset save
之后断电重启,复制配置脚本到交换机

查询交换机内的配置内容
dis cur

脚本内根据实际点位信息需改动处:
vlan 1600
配置管理VLAN
ip address 10.140.1.10 255.255.252.192
配置交换机管理IP地址及掩码
port default vlan 1600
配置每个端口下的管理VLAN
ip route-static 0.0.0.0 0.0.0.0 10.140.1.1
配置交换机管理网关

配置脚本如下:
*********************************************************
#
system-view
#
vlan 1600
quit
#
interface Vlanif1
undo ip address
#
interface Vlanif1600
ip address 10.140.1.10 255.255.255.192
#
interface Ethernet0/0/1
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/2
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/3
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/4
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/5
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/6
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/7
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/8
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/9
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/10
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/11
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/12
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/13
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/14
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/15
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface Ethernet0/0/16
undo port default vlan
port link-type trunk
port trunk allow-pass vlan all
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan all
undo port trunk allow-pass vlan 1
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan all
undo port trunk allow-pass vlan 1
#
quit
aaa
local-user admin password simple nbwlan
local-user admin level 3
local-user admin service-type telnet terminal
authentication-scheme default
authentication-mode local
#
quit
quit
ip route-static 0.0.0.0 0.0.0.0 10.140.1.1
#
snmp-agent community read public
snmp-agent community write private

snmp-agent sys-info version all
#
user-interface con 0
authentication-mode aaa
user-interface vty 0 4
authentication-mode aaa
#
quit
quit
save
y

#
******************************************************

相关文档
最新文档