首页 > 数据库技术 > 详细

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

时间:2016-12-28 12:50:13      阅读:247      评论:0      收藏:0      [点我收藏+]

    最近想将华为s2300-52p交换机的接口由之前的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]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通过,之后就可以更改端口类型了!

本文出自 “满招损,谦得益!” 博客,请务必保留此出处http://lanfenggo.blog.51cto.com/6322019/1886836

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

原文:http://lanfenggo.blog.51cto.com/6322019/1886836

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!