HUAWEI S6720 交换机学习笔记
配置前准备
- 进入系统视图
# system-view
- 查看当前配置
# display current-configuration
- 查看接口信息
# display interface brief
- 清除已保留配置(可选)
# reset saved-configuration # reboot
- 关闭华为光纤模块非原厂警告(可选)
# transceiver phony-alarm-disable
- 关闭终端屏幕分屏功能(可选)
# screen-length 0 temporary
配置 Trunk 端口
- 创建 Trunk 端口
# port interface Eth-Trunk $trunkNum # port link-type trunk
- 删除 Trunk 端口
# undo port interface Eth-Trunk $trunkNum
- 配置 Trunk 类型接口加入多个 VLAN(使得多个网络设备能够连接)
# port trunk allow-pass vlan $vlanStartNum to $vlanEndNum
- 将物理端口加入 Trunk 端口
# trunkport XGigabitEthernet $ethernetNum
- 设置 Trunk 类型接口的缺省 VLAN
# port trunk pvid vlan $vlanNum
- 设置 Trunk 类型接口为 LACP 模式
# mode lacp
- 查看当前 Trunk 端口信息
# display this
配置 Vlan
- 查看当前路由表
# display ip routing-table
- 创建静态路由表
# ip route-static $xxx.xxx.xxx.0 $cidrNum $xxx.xxx.xxx.254
- 批量创建 VLAN
# batch $vlanNumA $vlanNumB $vlanNumC
- 创建 VLAN 接口
# interface Vlanif $vlanIfNum
- 设置 VLAN 接口网关地址
# ip address $aaa.bbb.ccc.254 $cidrBlock
- 查看 VLAN 信息
# display vlan
完成配置
- 保存配置
# save # ... # <confirmation> # ... # reboot
- 配置二层交换机连接
# interface XGigabitEthernet 0/0/23 # port link-type trunk # port trunk allow-pass vlan $vlanStartNum to $vlanEndNum
- 配置笔记本直连接口
# interface XGigabitEthernet 0/0/24 # port link-type access # port default vlan $vlanNum
评论
发表评论