在子接口下配置vlan终结vlan-type
dot1q vid y second-dot1q x 会导致子接口接口down和up
实验室模拟
[SR88X-UP-GigabitEthernet5/1/1.100]vlan-type dot1q vid 970 second-dot1q 2057
[SR88X-UP-GigabitEthernet5/1/1.100]%May 23 07:47:36:000 2011 SR88X-UP IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet5/1/1.100 changed to down.
%May 23 07:47:36:006 2011 SR88X-UP IFNET/4/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet5/1/1.100 changed to down.
%May 23 07:47:36:011 2011 SR88X-UP IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet5/1/1.100 changed to up.
%May 23 07:47:36:014 2011 SR88X-UP IFNET/4/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet5/1/1.100 changed to up.
[SR88X-UP-GigabitEthernet5/1/1.100] undo vlan-type dot1q vid 970 second-dot1q 2057
[SR88X-UP-GigabitEthernet5/1/1.100]%May 23 07:47:42:660 2011 SR88X-UP IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet5/1/1.100 changed to down.
%May 23 07:47:42:663 2011 SR88X-UP IFNET/4/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet5/1/1.100 changed to down.
%May 23 07:47:42:671 2011 SR88X-UP IFNET/3/PHY_UPDOWN: -MDC=1; Physical state on the interface GigabitEthernet5/1/1.100 changed to up.
%May 23 07:47:42:675 2011 SR88X-UP IFNET/4/LINK_UPDOWN: -MDC=1; Line protocol state on the interface GigabitEthernet5/1/1.100 changed to up.
接口下开启VLAN终结的用户模式。vlan-termination user-mode
vlan-termination user-mode命令用来开启VLAN终结的用户模式。
undo vlan-termination user-mode命令用来关闭VLAN终结的用户模式。
【命令】
vlan-termination user-mode
undo vlan-termination user-mode
【缺省情况】
VLAN终结的用户模式功能处于关闭状态。
【视图】
三层以太网子接口视图/三层聚合子接口视图
L3VE子接口视图
FlexE业务子接口视图
【缺省用户角色】
network-admin
【使用指导】
缺省情况下,在子接口视图下修改已有的VLAN终结配置后,该子接口会down/up一次,致使某些组网(例如IPoE和PPPoE)的在线用户下线。为保护用户的在线状态,可以开启VLAN终结的用户模式,此时修改子接口的VLAN终结配置不会导致该子接口down/up。
开启VLAN终结的用户模式后需要注意:当子接口下的VLAN终结配置发生改变时,请清除该子接口不再终结的VLAN的相关表项,以避免对当前运行的业务产生影响。例如,在用户视图下通过reset arp interface命令来清除该子接口的ARP表项,通过reset ipv6 neighbors interface命令来清除该子接口的动态邻居信息。关于reset arp和reset ipv6 neighbors命令的介绍,请分别参见“三层技术-IP业务命令参考”中的“ARP”和“IPv6基础”。
【举例】
# 配置子接口Ten-GigabitEthernet3/1/1.1开启VLAN终结的用户模式。
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1.1
[Sysname-Ten-GigabitEthernet3/1/1.1] vlan-termination user-mode
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作