公司的核心三层交换机是华为的,不熟悉,基本配置都遇到了问题。
原端口配置
interface GigabitEthernet0/0/10
description office
port link-type trunk
port trunk allow-pass vlan 2 to 4094
ntdp enable
ndp enable
bpdu enable
#
一端口,原来是trunk模式,并允许所有VLAN通过,现要改为access模式,命令如下:
interface GigabitEthernet0/0/10
undo port trunk allow-pass vlan all
port trunk allow-pass vlan 1
port link-type access
port default vlan 10
如果没有port trunk allow-pass vlan 1这条命令,交换机会提示错误:
ERROR:Please renew the default configurations