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

    最近想将华为s2300-52p交换机的接口由以前的trunk更改成access时,老是更改不成功,报错信息以下:ide

spacer.gif

[ZGK-BG-Ethernet0/0/6]dis thisoop

#this

interface Ethernet0/0/6url

 port link-type trunkspa

 port trunk allow-pass vlan 2 to 4094接口

 loopback-detect enableit

#io

returnclass

[ZGK-BG-Ethernet0/0/6]port link-t配置

[ZGK-BG-Ethernet0/0/6]port link-type access

Error: Please renew the default configurations.

... ...

[ZGK-BG-Ethernet0/0/6]undo port link-type trunk

                                          ^

Error:Too many parameters found at '^' position.

[ZGK-BG-Ethernet0/0/6]undo port link-type

Error: Please renew the default configurations.

[ZGK-BG-Ethernet0/0/6]


    不管如何配置,就是不能将端口有trunk改成access

    后面发现这样配置,就能够将端口更改:


[ZGK-BG-Ethernet0/0/6]dis this

#

interface Ethernet0/0/6

 port link-type trunk

 port trunk allow-pass vlan 2 to 4094

 loopback-detect enable

#

return

[ZGK-BG-Ethernet0/0/6]undo port trunk allow-pass vlan all

Info: This operation may take a few seconds. Please wait for a moment...done.

[ZGK-BG-Ethernet0/0/6]port trunk allow-pass vlan 1

Info: This operation may take a few seconds. Please wait for a moment...done.

[ZGK-BG-Ethernet0/0/6]port link-type access

[ZGK-BG-Ethernet0/0/6]dis this

#

interface Ethernet0/0/6

 port link-type access

 loopback-detect enable

#

return


    成功!

    先去使能全部vlan经过该端口,而后从新添加默认vlan 1经过,以后就能够更改端口类型了!

相关文章
相关标签/搜索