華爲交換機將端口由trunk更改爲access報錯解決方法

    最近想將華爲s2300-52p交換機的接口由之前的trunk更改爲access時,總是更改不成功,報錯信息如下:

spacer.gif

[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]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通過,之後就可以更改端口類型了!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章