各位大佬,求赐教:
trunk口允许了所有,如何更改为允许部分。
用undo port trunk permit vlan all(则我无法连接至被控交换机)
用port trunk permit vlan X XX XXX,我再次查看时还是允许全部
(0)
最佳答案
[S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this
#
interface Ten-GigabitEthernet2/0/24
port link-mode bridge
port link-type trunk
port trunk permit vlan 1 to 2
mirroring-group 1 mirroring-port both
#
return
(0)
你这么先undo all,然后允许部分是可以的,如果确认就则会么操作还有问题就收集操作记录反馈下400 [S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this # interface Ten-GigabitEthernet2/0/24 port link-mode bridge port link-type trunk port trunk permit vlan 1 to 2 mirroring-group 1 mirroring-port both # return [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo po [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port t [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk pe [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk permit v [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk permit vlan a [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk permit vlan all [S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this # interface Ten-GigabitEthernet2/0/24 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 mirroring-group 1 mirroring-port both # return [S6520X-2.40-Ten-GigabitEthernet2/0/24]po [S6520X-2.40-Ten-GigabitEthernet2/0/24]port t [S6520X-2.40-Ten-GigabitEthernet2/0/24]port trunk pe [S6520X-2.40-Ten-GigabitEthernet2/0/24]port trunk permit v [S6520X-2.40-Ten-GigabitEthernet2/0/24]port trunk permit vlan 2 [S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this # interface Ten-GigabitEthernet2/0/24 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 mirroring-group 1 mirroring-port both #
先undo 在添加
用undo port trunk permit vlan all(则我无法连接至被控交换机)
看看你是从哪个vlan上来的,undo的时候不要把相关vlan删除,比如
undo port trunk permit vlan 1 to 100
用port trunk permit vlan X XX XXX,我再次查看时还是允许全部
然后再port trunk permit vlan X XX
(0)
感谢 你的方法测试有效
感谢 你的方法测试有效
比如你要允许100 1000这两个
undo po tr pe vl 1001 to 4094
undo po tr pe vl 101 to 999
undo po tr pe vl 1 to 99
这样就行了
(0)
感谢 这样可以的 不过你回复晚点 我采纳其它人的了
感谢 这样可以的 不过你回复晚点 我采纳其它人的了
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
你这么先undo all,然后允许部分是可以的,如果确认就则会么操作还有问题就收集操作记录反馈下400 [S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this # interface Ten-GigabitEthernet2/0/24 port link-mode bridge port link-type trunk port trunk permit vlan 1 to 2 mirroring-group 1 mirroring-port both # return [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo po [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port t [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk pe [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk permit v [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk permit vlan a [S6520X-2.40-Ten-GigabitEthernet2/0/24]undo port trunk permit vlan all [S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this # interface Ten-GigabitEthernet2/0/24 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 mirroring-group 1 mirroring-port both # return [S6520X-2.40-Ten-GigabitEthernet2/0/24]po [S6520X-2.40-Ten-GigabitEthernet2/0/24]port t [S6520X-2.40-Ten-GigabitEthernet2/0/24]port trunk pe [S6520X-2.40-Ten-GigabitEthernet2/0/24]port trunk permit v [S6520X-2.40-Ten-GigabitEthernet2/0/24]port trunk permit vlan 2 [S6520X-2.40-Ten-GigabitEthernet2/0/24]dis this # interface Ten-GigabitEthernet2/0/24 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 mirroring-group 1 mirroring-port both #