65rew111 发表于 2016-12-29 15:35:13

华为交换机将端口由trunk更改为access报错解决方法

   最近想将华为s2300-52p交换机的接口由之前的trunk更改为access时,总是更改不成功,报错信息如下:dis this
#
interface Ethernet0/0/6
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
#
return
port link-t
port link-type access
Error: Please renew the default configurations.
... ...
undo port link-type trunk

                                          ^
Error:Too many parameters found at '^' position.
undo port link-type
Error: Please renew the default configurations.


    无论如何配置,就是不能将端口有trunk改为access
    后面发现这样配置,就可以将端口更改:

dis this
#
interface Ethernet0/0/6
port link-type trunk
port trunk allow-pass vlan 2 to 4094
loopback-detect enable
#
return
undo port trunk allow-pass vlan all
Info: This operation may take a few seconds. Please wait for a moment...done.
port trunk allow-pass vlan 1
Info: This operation may take a few seconds. Please wait for a moment...done.
port link-type access
dis this
#
interface Ethernet0/0/6
port link-type access
loopback-detect enable
#
return

    成功!
    先去使能所有vlan通过该端口,然后重新添加默认vlan 1通过,之后就可以更改端口类型了!

页: [1]
查看完整版本: 华为交换机将端口由trunk更改为access报错解决方法