怎么样在一个端口去掉VLAN
答案:2 悬赏:30 手机版
解决时间 2021-03-21 11:52
- 提问者网友:自食苦果
- 2021-03-21 06:50
怎么样在一个端口去掉VLAN
最佳答案
- 五星知识达人网友:思契十里
- 2021-03-21 08:10
你这个太奇葩了,实体机,删除vlan,端口自动退回默认vlan 1,你这个是消失了?呵呵,消失的子弹
全部回答
- 1楼网友:人间朝暮
- 2021-03-21 09:05
不能去掉 所有的端口默认是vlan1 可以改回到vlan1 但是不能去掉
switch#conf t
enter configuration commands, one per line. end with cntl/z.
switch(config)#vlan 10
switch(config-vlan)#int r f 0/1 - 10
switch(config-if-range)#sw m a
switch(config-if-range)#sw a v 10
switch(config-if-range)#end
switch#
%sys-5-config_i: configured from console by console
sh vlan b
vlan name
status
ports
---- -------------------------------- --------- -------------------------------
1
default
active
fa0/11, fa0/12, fa0/13, fa0/14
fa0/15, fa0/16, fa0/17, fa0/18
fa0/19, fa0/20, fa0/21, fa0/22
fa0/23, fa0/24, gig1/1, gig1/2
10
vlan0010
active
fa0/1, fa0/2, fa0/3, fa0/4
fa0/5, fa0/6, fa0/7, fa0/8
fa0/9, fa0/10
1002 fddi-default
active
1003 token-ring-default
active
1004 fddinet-default
active
1005 trnet-default
active
switch#en
switch#conf t
enter configuration commands, one per line. end with cntl/z.
switch(config)#no ip domain-loo
switch(config)#lin c 0
switch(config-line)#exec-t 0 0
switch(config-line)#logg sy
switch(config-line)#exit
switch(config)#ho s1
s1(config)#int r f 0/5 - 10
s1(config-if-range)#sw a v 1
s1(config-if-range)#end
s1#
%sys-5-config_i: configured from console by console
s1#sh vl b
vlan name
status
ports
---- -------------------------------- --------- -------------------------------
1
default
active
fa0/5, fa0/6, fa0/7, fa0/8
fa0/9, fa0/10, fa0/11, fa0/12
fa0/13, fa0/14, fa0/15, fa0/16
fa0/17, fa0/18, fa0/19, fa0/20
fa0/21, fa0/22, fa0/23, fa0/24
gig1/1, gig1/2
10
vlan0010
active
fa0/1, fa0/2, fa0/3, fa0/4
1002 fddi-default
active
1003 token-ring-default
active
1004 fddinet-default
active
1005 trnet-default
active
s1#
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯