14.1BHM命令
14.1.1sysmon enable
命令功能
使用此命令使能系统监控功能,使用此命令的no形式关闭监控功能。
命令语法
sysmon enable
no sysmon enable
命令模式
全局配置模式
默认配置
系统监控功能打开
使用说明
无
举例说明
下面的例子显示如何使能系统监控功能
Switch# configure terminal
Switch(config)# sysmon enable
相关命令
show sysmon
14.1.2show sysmon
命令功能
使用此命令查看系统监控功能的状态。
命令语法
show sysmon
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面的例子显示如何查看系统监控功能的状态
Switch# show sysmon
System monitor enable.
相关命令
sysmon enable
14.1.3heart-beat-monitor enable
命令功能
使用此命令使能bhm功能,使用此命令的no形式关闭bhm功能。
命令语法
heart-beat-monitor enable
no heart-beat-monitor enable
命令模式
全局配置模式
默认配置
使能bhm功能
使用说明
无
举例说明
下面的例子显示了如何使能bhm功能
Switch# configure terminal
Switch(config)# heart-beat-monitor enable
相关命令
show heart-beat-monitor
14.1.4heart-beat-monitor reactivate
命令功能
使用此命令指定当某个PM无响应时系统采取的措施,使用此命令的no命令恢复默认配置。
命令语法
heart-beat-monitor reactivate ( reload system | shutdown port | warning )
参数 |
参数说明 |
参数取值 |
reload system |
重启系统 |
- |
shutdown port |
关闭所有的端口 |
- |
warning |
在终端打印警告信息 |
- |
命令模式
全局配置模式
默认配置
默认使能bhm的重启系统
使用说明
无
举例说明
如下例子显示如何配置系统在程序无响应时采取的措施
Switch# configure terminal
Switch(config)# heart-beat-monitor reactivate reload system
相关命令
show heart-beat-monitor
14.1.5show heart-beat-monitor
命令功能
使用此命令查看程序监控状态。
命令语法
show heart-beat-monitor
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下例子显示查看程序监控状态
Switch# show heart-beat-monitor
heart-beat-monitor enable.
heart-beat-monitor reactivation: restart system.
相关命令
heart-beat-monitor enable
heart-beat-monitor reactivate
14.2EFM命令
14.2.1ethernet oam enable
命令功能
使用该命令在端口上启用EFM。
命令语法
ethernet oam enable
no ethernet oam enable
命令模式
端口配置模式
默认配置
默认不启用
使用说明
该命令用于在端口上启用OAM功能
举例说明
下面的例子显示如何在端口上启用EFM
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam enable
相关命令
no ethernet oam enable
14.2.2ethernet oam mode
命令功能
使用该命令在端口上配置EFM的工作模式。
命令语法
ethernet oam mode active
ethernet oam mode passive
no ethernet oam mode
命令模式
端口配置模式
默认配置
默认启用被动模式
使用说明
在主动模式下端口会主动发送EFM建立连接,而被动模式则只能响应主动端的请求。
举例说明
下面的例子显示如何配置工作模式
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam mode active
Switch(config-if)# ethernet oam mode passive
相关命令
无
14.2.3ethernet oam min-rate
命令功能
使用该命令在端口上配置EFM OAMPDU 的发送周期。
命令语法
ethernet oam min-rate SECONDS
no ethernet oam min-rate
参数 |
参数说明 |
参数取值 |
SECONDS |
EFM OAM报文的发送间隔 |
1-10秒 |
命令模式
端口配置模式
默认配置
默认为每秒发送一个
使用说明
该命令指定发送EFM OAMPDU 的周期,每隔指定的秒数会发送一个OAMPDU。
举例说明
下面的例子将EFM OAMPDU 的发送周期改为每秒发送一个
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam min-rate 1
相关命令
show ethernet oam status
14.2.4ethernet oam max-rate
命令功能
使用该命令在端口上配置EFM每秒发送报文的最大数量。
命令语法
ethernet oam max-rate PDUS
no ethernet oam max-rate
参数 |
参数说明 |
参数取值 |
PDUS |
配置每秒发送EFM OAM报文的最大数量 |
1-10 |
命令模式
端口配置模式
默认配置
默认为10个
使用说明
该命令指定EFM每秒发送报文的最大数量
举例说明
下面的例子将EFM每秒发送报文的最大数量设置为10
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam max-rate 10
相关命令
show ethernet oam status
14.2.5ethernet oam link-monitor on
命令功能
使用该命令在端口上启用监控功能。
命令语法
ethernet oam link-monitor on
no ethernet oam link-monitor on
命令模式
端口配置模式
默认配置
默认启用
使用说明
该命令指定端口上启用监控功能。
举例说明
下面的例子在端口eth-0-1上启用监控功能
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam link-monitor on
相关命令
show ethernet oam status
14.2.6ethernet oam link-monitor supported
命令功能
使用该命令在端口上启用支持监控功能。
命令语法
ethernet oam link-monitor supported
no ethernet oam link-monitor supported
命令模式
端口配置模式
默认配置
默认启用
使用说明
该命令指定端口上启用该功能后,发送报文中对应该功能的字段会被置位。
举例说明
下面的例子端口eth-0-1上启用支持监控功能
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam link-monitor supported
相关命令
show ethernet oam status
14.2.7ethernet oam link-monitor frame
命令功能
使用该命令在端口上配置错误报文的最低和最高阀值。如错误报文超过最低阀值系统将在端口上发送错误帧事件。 如错误报文超过最高阀值系统将触发预先定义的事件。
命令语法
ethernet oam link-monitor frame threshold high ( HIGH_THRES | none ) low LOW_THRES window WINDOW
no ethernet oam link-monitor frame threshold
参数 |
参数说明 |
参数取值 |
HIGH_THRES |
错误报文的最高阀值 |
1-65535 |
none |
不定义错误报文的最高阀值 |
- |
low LOW_THRES |
错误报文的最低阀值 |
0-65535 |
window WINDOW |
统计周期,以100毫秒为单位 |
10-600 |
命令模式
端口配置模式
默认配置
错误报文最低阀值的默认值为1。
统计周期默认值为100毫秒。
使用说明
无
举例说明
下面的例子在端口eth-0-1上配置最低阀值为2,最高阀值为5
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam link-monitor frame threshold high 5 low 2 window 200
相关命令
show ethernet oam status
14.2.8ethernet oam link-monitor frame-seconds threshold
命令功能
使用该命令在端口上配置错误秒的最低和最高阀值。如错误秒超过最低阀值系统将在端口上发送错误帧事件。 如错误秒超过最高阀值系统将触发预先定义的事件。
错误秒:每秒中内是否有错误报文。
命令语法
ethernet oam link-monitor frame-seconds threshold high ( HIGH_THRES | none ) low LOW_THRES window WINDOW
no ethernet oam link-monitor frame-seconds threshold high
参数 |
参数说明 |
参数取值 |
HIGH_THRES |
错误秒的最高阀值,取值范围1~900 |
1-900 |
none |
不定义错误秒的最高阀值 |
- |
low LOW_THRES |
错误秒的最低阀值,取值范围1~900 |
1-900 |
window WINDOW |
统计周期,以100毫秒为单位 |
100-9000 |
命令模式
端口配置模式
默认配置
统计周期默认值为1000毫秒
使用说明
无
举例说明
下面的例子在端口eth-0-1上配置错误秒的最低阀值为2,最高阀值为5
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam link-monitor frame-seconds threshold high 5 low 2 window 200
相关命令
show ethernet oam status
14.2.9ethernet oam link-monitor high threshold action
命令功能
使用该命令在端口上配置错误报文/秒超过最高阀产生的事件。
命令语法
ethernet oam link-monitor high threshold action error-disable-interface
no ethernet oam link-monitor high threshold action error-disable-interface
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
下面的例子在端口eth-0-1上配置错误报文/秒超过最高阀时error-disable端口
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam link-monitor high-threshold action error-disable-interface
相关命令
show ethernet oam status
14.2.10ethernet oam remote-loopback
命令功能
使用该命令在端上配置环回的属性。
命令语法
ethernet oam remote-loopback { supported | timeout SECS }
no ethernet oam remote-loopback { supported | timeout }
参数 |
参数说明 |
参数取值 |
supported |
在本端口支持环回功能 |
- |
timeout SECS |
配置对端对环会报文无响应时,本地环回超时时间,范围1~10秒 |
1-10秒 |
命令模式
端口配置模式
默认配置
默认不支持。每台设备只支持4个端口同时进入“local Loopback”状态。
使用说明
无
举例说明
下面的例子在端口eth-0-1上配置支持环回的属性
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam remote-loopback supported
相关命令
show ethernet oam status
14.2.11ethernet oam remote-loopback start
命令功能
使用该命令在端口上启用环回机制。
命令语法
ethernet oam remote-loopback start interface IFNAME
参数 |
参数说明 |
参数取值 |
IFNAME |
启用环回功能的端口 |
支持物理口 |
命令模式
特权模式
默认配置
默认不启用
使用说明
该命令用于在端口启用环回机制,端口启用该机制后会向对端发起环回开启请求报文。
举例说明
下面的例子在端口eth-0-1上启用环回机制
Switch# ethernet oam remote-loopback start interface eth-0-1
相关命令
show ethernet oam state-machine
14.2.12ethernet oam remote-loopback stop
命令功能
使用该命令在端口上关闭环回机制。
命令语法
ethernet oam remote-loopback stop interface IFNAME
参数 |
参数说明 |
参数取值 |
IFNAME |
关闭环回功能的端口 |
支持物理口 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于在端口关闭环回机制,端口启用该机制后会向对端发起环回关闭请求报文。
举例说明
下面的例子在端口eth-0-9上关闭环回机制
Switch# ethernet oam remote-loopback stop interface eth-0-9
相关命令
show ethernet oam state-machine
14.2.13ethernet oam timeout
命令功能
使用该命令在端口配置EFM协议连接超时时间。
命令语法
ethernet oam timeout SECONDS
no ethernet oam timeout
参数 |
参数说明 |
参数取值 |
SECONDS |
连接超时时间 |
2-30 |
命令模式
端口配置模式
默认配置
默认为5秒
使用说明
使用该命令在端口配置EFM协议连接超时时间。
举例说明
下面的例子在端口eth-0-1上配置EFM协议连接超时时间为5秒
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam timeout 5
相关命令
无
14.2.14ethernet oam remote-failure
命令功能
使用该命令用于配置收到对端critical事件时error disable端口。
命令语法
ethernet oam remote-failure ( link-fault | critical-event | dying-gasp ) action error-disable-interface
no ethernet oam remote-failure ( link-fault | critical-event | dying-gasp ) action error-disable-interface
参数 |
参数说明 |
参数取值 |
link-fault |
紧急链路事件 |
- |
critical-event |
Dying Gasp 事件 |
- |
dying-gasp |
链路断开 |
- |
命令模式
端口配置模式
默认配置
无
使用说明
使用该命令用于配置收到对端critical事件时error disable端口。
举例说明
下面的例子在端口eth-0-1上配置收到对端critical事件时error disable端口
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet oam remote-failure link-fault action error-disable-interface
相关命令
无
14.2.15show ethernet oam discovery
命令功能
使用该命令显示EFM当前discovery状态机。
命令语法
show ethernet oam discovery ( interface IFNAME | )
参数 |
参数说明 |
参数取值 |
interface IFNAME |
端口名称 |
支持物理口 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示EFM在端口上当前discovery状态机,包括本端和对端的运行状态
举例说明
下面的例子显示当前在端口eth-0-1上discovery状态机信息
Switch1# show ethernet oam discovery interface eth-0-1
相关命令
无
14.2.16show Ethernet oam status
命令功能
使用该命令显示EFM当前的状态
命令语法
show ethernet oam status ( interface IFNAME | )
参数 |
参数说明 |
参数取值 |
interface IFNAME |
端口名称 |
支持物理口 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
Switch# show ethernet oam status interface eth-0-1
相关命令
无
14.2.17show ethernet oam state-machine
命令功能
使用该命令显示EFM当前的运行状态机。
命令语法
show ethernet oam state-machine ( interface IFNAME | )
参数 |
参数说明 |
参数取值 |
interface IFNAME |
端口名称 |
支持物理口 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示EFM在端口上当前的运行状态机。
举例说明
下面的例子显示EFM在端口eth-0-1上当前的运行状态机
Switch# show ethernet oam state-machine interface eth-0-1
相关命令
无
14.2.18show ethernet oam statistics
命令功能
使用该命令显示EFM的相关统计信息。
命令语法
show ethernet oam statistics ( interface IFNAME | )
参数 |
参数说明 |
参数取值 |
interface IFNAME |
端口名称 |
支持物理口 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示EFM在端口上的相关统计信息。
举例说明
下面的例子显示在端口eth-0-1上EFM的相关统计信息
Switch# show ethernet oam statistics interface eth-0-1
相关命令
无
14.3CFM命令
14.3.1ethernet cfm enable
命令功能
使用该命令全局启用CFM功能,使用no命令关闭该功能。
命令语法
ethernet cfm enable
no ethernet cfm enable
命令模式
全局配置模式
默认配置
默认关闭
使用说明
无
举例说明
以下用例展示了如何全局使能CFM
Switch# configure terminal
Switch(config)# ethernet cfm enable
Switch(config)# no ethernet cfm enable
相关命令
无
14.3.2ethernet cfm domain level
命令功能
使用该命令可以创建一个维护域,每个维护域对应一个等级,不同等级提供不同的功能。
命令语法
ethernet cfm domain DOMAIN_NAME level LEVEL ( format ( no-md-name | string STRING | dns DNS_NAME | mac-address MAC_ADDRESS ) | )
no ethernet cfm domain DOMAIN_NAME ( level LEVEL | )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过43个字符的字符串 |
LEVEL |
维护域等级 |
0-7 |
no-md-name |
构建CFM报文的maid时,维护域的名字不存在 |
- |
string STRING |
维护域ASCII名字,用于构建CFM报文的maid |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过43个字符的字符串 |
dns DNS_NAME |
维护域DNS名字,用于构建CFM报文的maid |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过43个字符的字符串 |
mac-address MAC_ADDRESS |
维护域MAC-address带两字节整数名字,用于构建CFM报文的maid |
Mac地址带两字整数 (H.H.H:U(0-65535), example:0001.0001.0001:1) |
命令模式
全局配置模式
默认配置
无
使用说明
维护域取值范围0-7,数字越大,维护域的范围越大。
对Y.1731模式,维护域的形式应该为no-md-name
举例说明
以下用例展示了如何创建和删除MD
Switch# configure terminal
Switch(config)# ethernet cfm domain test level 5
Switch(config-ether-cfm)# exit
Switch(config)# no ethernet cfm domain test
相关命令
无
14.3.3service
命令功能
使用该命令创建一个服务。
命令语法
service CSI_ID ( vlan VLAN_ID | format ( string STRING | icc-based ICC_NAME ) | )
no service CSI_ID
参数 |
参数说明 |
参数取值 |
CSI_ID |
服务名 |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过43个字符的字符串。与MD name(Maintenance domain)一起,字符串总长度不超过44字符。 |
vlan VLAN_ID |
Vlan id |
1-4094 |
string STRING |
服务ASCII名字,用于构建CFM报文的maid |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过43个字符的字符串 |
icc-based ICC_NAME |
服务基于ICC名字,用于构建CFM报文的maid |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过13个字符的字符串 |
命令模式
以太网CFM配置模式
默认配置
无
使用说明
对Y.1731模式,应使用icc-based或string格式
举例说明
以下用例展示了如何创建和删除MA
Switch# configure terminal
Switch(config)# ethernet cfm domain test level 5
Switch(config-ether-cfm)# service cst vlan 30
Switch(config-ether-cfm)# no service cst
相关命令
ethernet cfm domain DOMAIN_NAME level LEVEL
14.3.4ethernet cfm mep
命令功能
使用该命令创建维护域端点MEP。在同一个服务内,每一个MEP和远端MEP必须有一个唯一的标识。如果在同一台交换机上配置相同标识的MEP,设备会提示重复,不允许配置。
命令语法
ethernet cfm mep ( down | up ) mpid MEPID domain DOMAIN_NAME ( vlan VLAN_ID | ) interval ( 1 | 2 | 3 | 4 | 5 | 6 | 7 )
no ethernet cfm mep ( down | up ) mpid MEPID domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
down |
Down维护域端节点 |
- |
up |
Up维护域端节点 |
- |
MEPID |
MEP标识 |
1-8191 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan标识,取值范围1-4094 |
1-4094 |
1 |
CCM发送周期为3.3毫秒 |
- |
2 |
CCM发送周期为10毫秒 |
- |
3 |
CCM发送周期为100毫秒 |
- |
4 |
CCM发送周期为1秒 |
- |
5 |
CCM发送周期为10秒 |
- |
6 |
CCM发送周期为1分钟 |
- |
7 |
CCM发送周期为10分钟 |
- |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何创建MEP
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet cfm mep down mpid 1 domain md1 vlan 2 interval 1
相关命令
ethernet cfm domain DOMAIN_NAME level LEVEL
service CSI_ID (vlan VLAN_ID|)
14.3.5ethernet cfm mep crosscheck mpid
命令功能
使用该命令配置远端MEP。在同一个服务内,每一个MEP和远端MEP必须有一个唯一的标识。如果在同一台交换机上配置相同标识的MEP,设备会提示重复,不允许配置。
命令语法
ethernet cfm mep crosscheck mpid MEPID domain DOMAIN_NAME ( vlan VLAN_ID | ) ( mac MAC | ) ( trigger if-errdisable | )
no ethernet cfm mep crosscheck mpid MEPID domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
MEPID |
MEP标识,取值范围1-8191 |
1-8191 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan标识,取值范围1-4094 |
1-4094 |
MAC |
远端MEP的mac地址 |
MAC 地址 |
trigger if-errdisable |
|
cc检测失败时,触发端口的errdisable |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何创建远端MEP
Switch# configure terminal
Switch(config)# ethernet cfm domain test level 5
Switch(config-ether-cfm)# service cst vlan 30
Switch(config-ether-cfm)# exit
Switch(config)# interface eth-0-9
Switch(config-if)# ethernet cfm mep crosscheck mpid 8000 domain test vlan 30 mac 0.0.1
相关命令
ethernet cfm domain DOMAIN_NAME level LEVEL
service CSI_ID (vlan VLAN_ID|)
14.3.6ethernet cfm mip
命令功能
使用该命令配置维护域中间节点。
命令语法
ethernet cfm mip level LEVEL vlan VLAN_ID
no ethernet cfm mip level LEVEL vlan VLAN_ID
参数 |
参数说明 |
参数取值 |
LEVEL |
维护域等级,取值范围1-7 |
1-7 |
VLAN_ID |
Vlan id |
1-4094 |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何创建MIP
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet cfm mip level 5 vlan 2
相关命令
ethernet cfm domain DOMAIN_NAME level LEVE
service CSI_ID (vlan VLAN_ID|)
14.3.7ethernet cfm cc enable domain
命令功能
使用该命令启动维护域内某个服务的连续性检查功能。
命令语法
ethernet cfm cc enable domain DOMAIN_NAME ( vlan VLAN_ID | )
no ethernet cfm cc enable domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
VLAN_ID |
Vlan id |
1-4094 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何启用连续性检查
Switch# configure terminal
Switch(config)# ethernet cfm cc enable domain test vlan 2
相关命令
ethernet cfm domain DOMAIN_NAME level LEVEL
service CSI_ID (vlan VLAN_ID|)
14.3.8ethernet cfm cc domain priority
命令功能
使用该命令配置某个服务的连续性检查报文中VLAN的优先权值。
命令语法
ethernet cfm cc domain DOMAIN_NAME ( vlan VLAN_ID | ) priority VLAN_PRIORITY
no ethernet cfm cc domain DOMAIN_NAME ( vlan VLAN_ID | ) priority
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
VLAN_ID |
Vlan id |
1-4094 |
VLAN_PRIORITY |
Vlan优先级。默认是7。 |
0-7 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何设置连续性检查报文中的VLAN优先权值
Switch# configure terminal
Switch(config)# ethernet cfm cc domain test vlan 2 priority 3
相关命令
ethernet cfm domain DOMAIN_NAME level LEVEL
service CSI_ID (vlan VLAN_ID|)
ethernet cfm cc enable domain DOMAIN_NAME (vlan VLAN_ID|)
14.3.9ethernet cfm loopback
命令功能
使用该命令发起以太网环回消息LBM到远端MEP以验证远端MEP是否可达。
命令语法
ethernet cfm loopback ( multicast | unicast rmepid RMEPID ) mepid MEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ( repeat COUNT | ) ( timeout TIMEOUT | ) ( priority PRIORITY | )
参数 |
参数说明 |
参数取值 |
multicast |
发给组播报文 |
- |
unicast |
发送单播报文 |
- |
RMEPID |
远端MEP标识 |
1-8191 |
MEPID |
MEP标识 |
1-8191 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级 |
0-7 |
vlan VLAN_ID |
Vlan id |
1-4094 |
repeat COUNT |
发送LB报文次数,默认次数是1 |
1-255 |
timeout TIMEOUT |
LB报文超时时间,默认5秒 |
1-65535秒 |
priority PRIORITY |
LB报文中的vlan优先级 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何发起以太网回环
Switch# ethernet cfm loopback multicast mepid 1 domain test vlan 2 repeat 3 timeout 5 priority 7
相关命令
ethernet cfm mep (down|up) mpid MEPID domain DOMAIN_NAME (vlan VLAN_ID |) interval (1 | 2 | 3 | 4 | 5 | 6 | 7)
ethernet cfm mep crosscheck mpid MEPID (vlan VLAN_ID |) mac MAC
14.3.10ethernet cfm loopback mac
命令功能
发送以太网环回消息LBM到远端MEP或MIP,验证MEP或MIP的可达性。
命令语法
ethernet cfm loopback mac MACADDRESS unicast mepid MEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ( repeat COUNT | ) ( timeout TIMEOUT | ) ( priority PRIORITY | )
参数 |
参数说明 |
参数取值 |
MACADDRESS |
远端MEP的mac地址 |
MAC地址 |
MEPID |
MEP标识,取值范围1-8191 |
1-8191 |
domain DOMAIN_NAME |
维护域名称 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级 |
0-7 |
vlan VLAN_ID |
Vlan id |
1-4094 |
repeat COUNT |
发送LB报文次数,取值范围1-255 |
1-255 |
timeout TIMEOUT |
LB报文超时时间,默认5秒 |
1-65535秒 |
priority PRIORITY |
LB报文中的vlan优先级 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何发起以太网回环
Switch# ethernet cfm loopback mac 0.0.1 unicast mepid 1 domain test vlan 2 repeat 3 timeout 5 priority 7
相关命令
ethernet cfm mep (down|up) mpid MEPID domain DOMAIN_NAME (vlan VLAN_ID |) interval (1 | 2 | 3 | 4 | 5 | 6 | 7)
ethernet cfm mep crosscheck mpid MEPID (vlan VLAN_ID |) mac MAC
14.3.11ethernet cfm errors enable domain
命令功能
使用该命令配置保存上报的CCM的错误信息,默认保存。
命令语法
ethernet cfm errors enable domain DOMAIN_NAME ( vlan VLAN_ID | )
no ethernet cfm errors enable domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan id |
1-4094 |
命令模式
全局配置模式
默认配置
无
使用说明
对于每一个MEP,最多保存最近的五条错误信息
举例说明
以下用例展示了如何开启错误缓存功能
Switch# configure terminal
Switch(config)# ethernet cfm errors enable domain test vlan 2
相关命令
无
14.3.12clear ethernet cfm errors
命令功能
使用该命令清空维护域中的错误信息。
命令语法
clear ethernet cfm errors ( domain DOMAIN_NAME | level LEVEL )
参数 |
参数说明 |
参数取值 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何清空错误信息
Switch# clear ethernet cfm errors domain test
相关命令
无
14.3.13ethernet cfm ais status enable
命令功能
使用该命令启动或关闭告警指示信号ais功能和配置相关参数。
命令语法
ethernet cfm ais status enable ( all | loc | mismerge | unexpected-mep | unexpected-meg-level | unexpected-period ) domain DOMAIN_NAME ( vlan VLAN_ID | )
level LEVEL ( unicast RMEP_MAC | multicast ) ( cvlan VLAN_LIST | )
no ethernet cfm ais status enable ( all | loc | mismerge | unexpected-mep | unexpected-meg-level | unexpected-period ) domain DOMAIN_NAME ( vlan VLAN_ID | )
level LEVEL ( unicast RMEP_MAC | multicast )
参数 |
参数说明 |
参数取值 |
all |
对所有error产生ais报文 |
- |
loc |
对CCM报文丢失关生ais报文 |
- |
mismerge |
当MD或MA不匹配时,产生ais报文 |
- |
unexpected-mep |
当MEP的ID不匹配时,产生ais报文 |
- |
unexpected-meg-level |
当报文的level不匹配时,产生ais报文 |
- |
unexpected-period |
当报文的发送周期不匹配时,产生ais报文 |
- |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan id |
1-4094 |
LEVEL |
发送ais报文的维护域等级 |
1-7 |
unicast |
发送单播报文 |
- |
RMEP_MAC |
远端MEP的mac地址 |
- |
multicast |
发送组播报文 |
- |
cvlan VLAN_LIST |
配置ais报文的cvlan |
1-4094 |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何配置AIS
Switch# configure terminal
Switch(config)# ethernet cfm ais status enable all domain test vlan 2 level 5 multicast
相关命令
无
14.3.14ethernet cfm ais suppress alarm enable domain
命令功能
使用该命令配置ais抑制告警。当启用该功能且已进入AIS状态时,LOC错误信息将不会再上报。
命令语法
ethernet cfm ais suppress alarm enable domain DOMAIN_NAME ( vlan VLAN_ID | )
no ethernet cfm ais suppress alarm enable domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan id |
1-4094 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何配置AIS抑制告警
Switch# configure terminal
Switch(config)# ethernet cfm ais suppress alarm enable domain test vlan 2
相关命令
无
14.3.15ethernet cfm server-ais status enable level
命令功能
使用该命令配置ais服务器和相关参数。
命令语法
ethernet cfm server-ais status enable level LEVEL ( interval ( 1 | 60 ) )
no ethernet cfm server-ais status enable
参数 |
参数说明 |
参数取值 |
LEVEL |
发送ais报文的维护域等级 |
1-7 |
interval (1|60) |
Ais报文的发送周期,发送ais报文的时间间隔默认值为1秒 |
1-60秒 |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何配置AIS服务器
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet cfm server-ais status enable level 5 interval 60
相关命令
无
14.3.16show ethernet cfm domain
命令功能
使用该命令显示维护域和服务的相关信息。
命令语法
show ethernet cfm domain DOMAIN_NAME
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示维护域的相关信息
Switch# show ethernet cfm domain test
相关命令
无
14.3.17show ethernet cfm maintenance-points
命令功能
使用该命令显示相关的MEP, 远端MEP和MIP的相关信息。
命令语法
show ethernet cfm maintenance-points
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示MEP,远端MEP和MIP的信息
Switch# show ethernet cfm maintenance-points
相关命令
无
14.3.18show ethernet cfm maintenance-points local
命令功能
使用该命令显示本地MEP和MIP的相关信息。
命令语法
show ethernet cfm maintenance-points local ( mep | mip ) ( interface IFNAME | domain DOMAIN_NAME | level LEVEL )
参数 |
参数说明 |
参数取值 |
mep |
维护域端节点 |
- |
mip |
维护域中间节点 |
- |
interface IFNAME |
端口名 |
支持物理口 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示MEP和MIP的信息
Switch# show ethernet cfm maintenance-points local mep interface eth-0-1
相关命令
无
14.3.19show ethernet cfm maintenance-points remote
命令功能
使用该命令显示远端MEP的相关信息。
命令语法
show ethernet cfm maintenance-points remote ( mpid MEPID | mac MAC | ) ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
mpid MEPID |
远端MEP标识 |
1-8191 |
mac MAC |
远端MEP的mac地址 |
MAC地址 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级,取值范围0-7 |
0-7 |
vlan VLAN_ID |
Vlan id |
1-4094 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示远端MEP的相关信息
Switch# show ethernet cfm maintenance-points remote mpid 1 domain test
相关命令
无
14.3.20show ethernet cfm cc config
命令功能
使用该命令显示连续性检查的配置。
命令语法
show ethernet cfm cc config
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示连续性检查的配置
Switch# show ethernet cfm cc config
相关命令
无
14.3.21show ethernet cfm errors
命令功能
使用该命令显示CFM的错误信息。
命令语法
show ethernet cfm errors ( domain DOMAIN_NAME | level LEVEL | )
参数 |
参数说明 |
参数取值 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级,取值范围0-7 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示错误信息
Switch# show ethernet cfm errors
相关命令
无
14.3.22show ethernet cfm ais mep
命令功能
使用该命令显示MEP的ais相关信息。
命令语法
show ethernet cfm ais mep MEPID domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
MEPID |
MEP标识,取值范围1-8191 |
1-8191 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan id |
1-4094 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示AIS的相关信息
Switch# show ethernet cfm ais mep 1 domain test vlan 2
相关命令
无
14.3.23show ethernet cfm
命令功能
该用该命令显示CFM的全局信息
命令语法
show ethernet cfm
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示CFM的全局信息
Switch# show ethernet cfm
相关命令
无
14.3.24ethernet cfm linktrace rmepid
命令功能
使用该命令发送链路跟踪LTM报文到远端MEP, 用于发现到达远端MEP的路径。
命令语法
ethernet cfm linktrace rmepid RMEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ( ttl TTL | timeout TIMEOUT | priority PRIORITY | ltm-egress-identifier-tlv | sender-id-tlv | organization-specific-tlv )
参数 |
参数说明 |
参数取值 |
RMEPID |
远端MEP标识 |
1-8191 |
MEPID |
MEP标识 |
1-8191 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级,取值范围0-7 |
0-7 |
vlan VLAN_ID |
Vlan id |
1-4094 |
ttl TTL |
最大跳数,默认值为64 |
1-255 |
timeout TIMEOUT |
超时时间,默认值为5 |
1-65535 |
priority PRIORITY |
Vlan优先级,取值范围0-7,默认值为7 |
0-7 |
ltm-egress-identifier-tlv |
是否携带LTM egress identifier TLV |
- |
sender-id-tlv |
是否携带Sender ID TLV |
- |
organization-specific-tlv |
是否携带Organization Specific TLV |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何发起链路追踪
Switch# ethernet cfm linktrace rmepid 1 mepid 2 domain test vlan 2 ttl 255 timeout 5 priority 7
相关命令
ethernet cfm mep (down|up) mpid MEPID domain DOMAIN_NAME (vlan VLAN_ID |) interval (1 | 2 | 3 | 4 | 5 | 6 | 7)
ethernet cfm mep crosscheck mpid MEPID (vlan VLAN_ID |) (mac MAC|)
14.3.25ethernet cfm linktrace mac
命令功能
使用该命令向远端MEP或MIP的mac地址发送LTM报文,用于发现到达远端MEP或MIP的路径。
命令语法
ethernet cfm linktrace mac MACADDRESS mepid MEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ( ttl TTL | timeout TIMEOUT | priority PRIORITY | )
参数 |
参数说明 |
参数取值 |
MACADDRESS |
远端MEP的mac地址 |
MAC地址 |
MEPID |
MEP标识 |
1-8191 |
domain DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
level LEVEL |
维护域等级,取值范围0-7 |
0-7 |
VLAN_ID |
Vlan id |
1-4094 |
ttl TTL |
最大跳数,默认值为64 |
1-255 |
timeout TIMEOUT |
超时时间,默认值为5 |
1-65535 |
priority PRIORITY |
Vlan优先级,默认值为7 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何发起链路追踪
Switch# ethernet cfm linktrace mac 7234.ef5a.2806 mepid 1 domain test vlan 2 ttl 255 timeout 5 priority 7
相关命令
ethernet cfm mep (down|up) mpid MEPID domain DOMAIN_NAME (vlan VLAN_ID |) interval (1 | 2 | 3 | 4 | 5 | 6 | 7)
ethernet cfm mep crosscheck mpid MEPID (vlan VLAN_ID |) (mac MAC|)
14.3.26ethernet cfm linktrace cache enable
命令功能
使用该命令缓存LT的信息,默认不缓存。
命令语法
ethernet cfm linktrace cache enable
no ethernet cfm linktrace cache enable
命令模式
全局配置模式
默认配置
不缓存
使用说明
无
举例说明
以下用例展示了如何缓存链路追踪的信息
Switch# configure terminal
Switch(config)# ethernet cfm linktrace cache enable
相关命令
无
14.3.27ethernet cfm linktrace cache size
命令功能
使用该命令配置LT缓存区的大小。
命令语法
ethernet cfm linktrace cache size ENTRIES
no ethernet cfm linktrace cache size
参数 |
参数说明 |
参数取值 |
ENTRIES |
缓存区的大小,默认100 |
1-65535 |
命令模式
全局配置模式
默认配置
100
使用说明
无
举例说明
以下用例展示了如何配置链路追踪信息缓存区的大小
Switch# configure terminal
Switch(config)# ethernet cfm linktrace cache size 200
相关命令
无
14.3.28ethernet cfm linktrace cache holdtime
命令功能
使用该命令配置LT缓存区保持时间。
命令语法
ethernet cfm linktrace cache holdtime MINUTES
参数 |
参数说明 |
参数取值 |
MINUTES |
缓存时间,默认值为60分钟 |
1-65535分钟 |
命令模式
全局配置模式
默认配置
60分钟
使用说明
无
举例说明
以下用例展示了如何配置链路追踪信息缓存的时间
Switch# configure terminal
Switch(config)# ethernet cfm linktrace cache holdtime 90
相关命令
无
14.3.29show ethernet cfm linktrace cache
命令功能
使用该命令显示LT缓存区条目
命令语法
show ethernet cfm linktrace cache
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示链路追踪缓存区的信息
Switch# configure terminal
Switch(config)# ethernet cfm linktrace cache holdtime 90
相关命令
无
14.3.30clear ethernet cfm linktrace cache
命令功能
使用该命令清空LT的缓存区。
命令语法
clear ethernet cfm linktrace cache
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何清除链路追踪缓存区的信息
Switch# show ethernet cfm linktrace cache
相关命令
无
14.3.31ethernet cfm mip ccm-database size
命令功能
使用该命令配置MIP转发表的数据库大小。
命令语法
ethernet cfm mip ccm-database size ENTRIES
no ethernet cfm mip ccm-database size
参数 |
参数说明 |
参数取值 |
ENTRIES |
缓存区的大小,取值范围1-65535,默认100条 |
1-65535 |
命令模式
全局配置模式
默认配置
100条
使用说明
无
举例说明
以下用例展示了如何配置MIP转发表的大小
Switch# configure terminal
Switch(config)# ethernet cfm mip ccm-database size 200
相关命令
无
14.3.32ethernet cfm mip ccm-database holdtime
命令功能
使用该命令配置MIP 转发表的数据库保持时间。
命令语法
ethernet cfm mip ccm-database holdtime MINUTES
no ethernet cfm mip ccm-database holdtime
参数 |
参数说明 |
参数取值 |
MINUTES |
MIP转发表保持时间,取值范围60-65535分钟,默认为60分钟 |
1-65535分钟 |
命令模式
全局配置模式
默认配置
60分钟
使用说明
无
举例说明
以下用例展示了如何配置MIP转发表保持的时间
Switch# configure terminal
Switch(config)# ethernet cfm mip ccm-database holdtime 90
相关命令
无
14.3.33show ethernet cfm mip ccm-database
命令功能
使用该命令显示MIP转发表。
命令语法
show ethernet cfm mip ccm-database
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示MIP转发表的信息
Switch# show ethernet cfm mip ccm-database
相关命令
无
14.3.34clear ethernet cfm mip ccm-database
命令功能
使用该命令清空MIP转发表。
命令语法
clear ethernet cfm mip ccm-database
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何清除MIP转发表
Switch# clear ethernet cfm mip ccm-database
相关命令
无
14.3.35ethernet cfm sf-reason
命令功能
使用该命令可配置信号失败的原因,这些原因将触发g8031/g8032切换。
命令语法
ethernet cfm sf-reason ( all | { loc | rdi-rx | ais-defect } | none )
no Ethernet cfm sf-reason
参数 |
参数说明 |
参数取值 |
all |
配置所有原因都触发g8031/g8032切换 |
- |
loc |
配置仅CCM报文丢失触发g8031/g8032切换 |
- |
rdi-rx |
配置仅远端MEP的RDI为0时触发g8031/g8032切换 |
- |
ais-defect |
配置仅MEP进入ais状态时触发g8031/g8032切换 |
- |
none |
无任何原因会触发g8031/g8032切换 |
- |
命令模式
全局配置模式
默认配置
Loc会触发g8031/g8032切换
使用说明
无
举例说明
以下用例展示了如何配置显示信息失败的原因
Switch# configure terminal
Switch(config)# ethernet cfm sf-reason all
相关命令
无
14.3.36ethernet cfm mode
命令功能
使用该命令配置CFM的全局模式,使用no命令将CFM的模式恢复成802.1ag。
命令语法
ethernet cfm mode ( dot1ag | y1731 )
no ethernet cfm mode
参数 |
参数说明 |
参数取值 |
dot1ag |
IEEE 802.1ag-2007 |
- |
y1731 |
ITU-T Y.1731 |
- |
命令模式
全局配置模式
默认配置
IEEE 802.1ag-2007
使用说明
无
举例说明
以下用例展示了如何配置CFM的模式
Switch# configure terminal
Switch(config)# ethernet cfm mode dot1ag
Switch(config)# no ethernet cfm mode
相关命令
无
14.3.37ethernet cfm raw-vlan
命令功能
使用该命令配置cfm的raw-vlan模式,使用no命令将cfm恢复到非raw-vlan模式。
命令语法
ethernet cfm raw-vlan
no ethernet cfm raw-vlan
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何配置CFM的bypass-scl模式
Switch# configure terminal
Switch(config)# ethernet cfm raw-vlan
Switch(config)# no ethernet cfm raw-vlan
相关命令
无
14.3.38ethernet cfm lm enable dual-ended
命令功能
使用该命令使能双端的帧丢失测量。
命令语法
ethernet cfm lm enable dual-ended ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) mepid MEPID ( all-cos | per-cos | cos COS_VALUE ) ( stats-interval INTERVAL_VALUE | ) ( cache-size CACHE_VALUE | )
no ethernet cfm lm enable dual-ended ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) mepid MEPID
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
LEVEL |
维护域等级 |
0-7 |
VLAN_ID |
Vlan id |
1-4094 |
MEPID |
MEP标识 |
1-8191 |
all-cos |
将带不同cos的所有报文一起统计 |
- |
per-cos |
将带不同cos的所有报文分别统计 |
- |
cos COS_VALUE |
统计带有特定cos的报文 |
0-7 |
stats-interval INTERVAL_VALUE |
每隔一个统计周期,系统会读取计数值,计算近端和远端的丢包和丢包率统计周期取值范围是1秒到10秒,默认1秒 |
1-10 秒 |
cache-size |
缓存统计结果的条数,默认值为128 |
1-512 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何使能双端的帧丢失测量
Switch# configure terminal
Switch(config)# ethernet cfm lm enable dual-ended domain md1 vlan 2 mepid 1 all-cos stats-interval 1 cache-count 256
相关命令
无
14.3.39ethernet cfm lm enable single-ended
命令功能
使用该命令使能单端的帧丢失测量。
命令语法
ethernet cfm lm enable single-ended ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) mepid MEPID ( all-cos | per-cos | cos COS_VALUE )
no ethernet cfm lm enable single-ended ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) mepid MEPID
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
LEVEL |
维护域等级 |
0-7 |
VLAN_ID |
Vlan id |
1-4094 |
MEPID |
本地MEP标识 |
1-8191 |
all-cos |
将带不同cos的所有报文一起统计 |
- |
per-cos |
将带不同cos的所有报文分别统计 |
- |
cos COS_VALUE |
统计带有特定cos的报文 |
0-7 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何使能单端的帧丢失测量
Switch# configure terminal
Switch(config)# ethernet cfm lm enable single-ended domain md1 vlan 2 mepid 1 all-cos
相关命令
无
14.3.40ethernet cfm lm single-ended
命令功能
使用该命令发送单端帧丢失测量消息。
命令语法
ethernet cfm lm single-ended ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) rmepid RMEPID mepid MEPID ( count COUNT | ) ( interval ( 1 | 2 | 3 | ) | )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
- |
LEVEL |
维护域等级 |
0-7 |
VLAN_ID |
Vlan id |
1-4094 |
RMEPID |
远端MEP标识 |
1-8191 |
MEPID |
本地MEP标识 |
1-8191 |
count COUNT |
发送报文数目,默认值为2 |
2-60 |
interval |
LMM报文发送间隔,默认值是1秒 |
- |
1 |
LMM报文发送间隔为100毫秒 |
- |
2 |
LMM报文发送间隔为1秒 |
- |
3 |
LMM报文发送间隔为10秒 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何发送单端帧丢失测量消息
Switch# ethernet cfm lm single-ended domain md1 vlan 2 rmepid 2 mepid 1 count 10 interval 1
相关命令
无
14.3.41show ethernet cfm lm
命令功能
使用该命令可以显示双端帧丢失测量的结果。
命令语法
show ethernet cfm lm domain DOMAIN_NAME ( vlan VLAN_ID | ) mepid MEPID ( cos COS_VALUE )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
VLAN_ID |
Vlan id |
1-4094 |
MEPID |
本地MEP标识 |
1-8191 |
cos COS_VALUE |
显示指定cos的测量结果,默认值为0 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示双端帧丢失测量的结果
Switch# show ethernet cfm lm domain md1 vlan 2 mepid 3
DOMAIN : md1
VLAN : 2
MEPID : 1
Start Time : 2013/07/15 9:00:09
End Time : 2013/07/15 9:00:09
Notes : 1. When the difference of Tx is less than the difference of Rx,
the node is invalid, loss and loss ratio should be "-";
2. When loc is reported for mep, the loss should be "-" and loss
ratio should be 100%;
3. When calculate average loss and loss ratio, invalid or loc nodes
will be excluded;
Latest dual-ended loss statistics:
--------------------------------------------------------------------------------
Index Cos Local-loss Local-loss ratio Remote-loss Remote-loss ratio Time
--------------------------------------------------------------------------------
1 all 4 050.0000% 4 050.0000% 09:00:09
2 all - - - - 09:00:09
3 all 0 000.0000% 100 100.0000% 09:00:09
4 all 0 000.0000% 99 099.0000% 09:00:09
5 all 0 000.0000% 90 090.0000% 09:00:09
6 all 0 000.0000% 1 001.0000% 09:00:09
7 all 0 000.0000% 0 000.0000% 09:00:09
8 all - - - - 09:00:09
9 all 0 000.0000% 4294967039 099.9999% 09:00:09
10 all 0 000.0000% 510 099.8043% 09:00:09
11 all - 100.0000% - 100.0000% 09:00:09
12 all 0 000.0000% 0 000.0000% 09:00:09
13 all 4 050.0000% 4 050.0000% 09:00:09
14 all 4 050.0000% 4 050.0000% 09:00:09
--------------------------------------------------------------------------------
Maximum Local-loss : 4 Maximum Local-loss Ratio : 100.0000%
Minimum Local-loss : 0 Minimum Local-loss Ratio : 000.0000%
Average Local-loss : 1 Average Local-loss Ratio : 013.6363%
Maximum Remote-loss : 4294967039 Maximum Remote-loss Ratio : 100.0000%
Minimum Remote-loss : 0 Minimum Remote-loss Ratio : 000.0000%
Average Remote-loss : 390451622 Average Remote-loss Ratio : 058.1640%
相关命令
无
14.3.42ethernet cfm sd-reason
命令功能
使用该命令配置信号缺陷原因(SD-Reason)。当双端帧丢包率超过门限,会打印日志。
命令语法
ethernet cfm sd-reason ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) mepid MEPID ratio RATIO_VALUE
no ethernet cfm sd-reason ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) mepid MEPID
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
LEVEL |
维护域等级 |
0-7 |
VLAN_ID |
Vlan id |
1-4094 |
MEPID |
本地MEP标识 |
1-8191 |
RATIO_VALUE |
双端帧丢包率门限取值范围是1-1000,单位是千分之一 |
1-1000 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何配置信号缺陷原因
Switch# configure terminal
Switch(config)# ethernet cfm sd-reason domain md1 vlan 2 mepid 1 ratio 100
相关命令
无
14.3.43ethernet cfm (1dm|dmm)
命令功能
使用该命令可以发送1dm 或dmm帧时延测量消息,并接收远端的回复,计算帧时延。
命令语法
ethernet cfm ( 1dm | dmm ) rmepid RMEPID mepid MEPID count COUNT ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ( priority PRIORITY | interval ( 1 | 2 | 3 | ) ) ( frame_size SIZE | )
参数 |
参数说明 |
参数取值 |
RMEPID |
远端MEP标识 |
1-8191 |
MEPID |
本地MEP标识 |
1-8191 |
COUNT |
发送报文数 |
1-60 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
VLAN_ID |
Vlan id |
1-4094 |
LEVEL |
维护域等级 |
0-7 |
priority PRIORITY |
Vlan优先级,默认值为7 |
0-7 |
interval |
发送DM的时间间隔,默认是1秒 |
- |
1 |
发送DM的时间间隔为100毫秒 |
- |
2 |
发送DM的时间间隔为1秒 |
- |
3 |
发送DM的时间间隔为10秒 |
- |
frame_size SIZE |
报文的大小,取值范围是64字节-9600字节,默认是64字节 |
64-9600字节 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了发送DMM消息
Switch# ethernet cfm dmm rmepid 1 mepid 2 count 5 domain md1 vlan 2 priority 3 interval 1
相关命令
无
14.3.44ethernet cfm (1dm|dmm) continual
命令功能
使用该命令可以周期性地发送1dm 或dmm帧时延测量消息,并接收远端的回复,计算帧时延。
命令语法
ethernet cfm ( 1dm | dmm ) continual rmepid RMEPID mepid MEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ( priority PRIORITY | interval ( 1 | 2 | 3 | 4 | 5 | ) ) ( frame_size SIZE | )
no ethernet cfm ( 1dm | dmm ) continual rmepid RMEPID mepid MEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
RMEPID |
远端MEP标识 |
1-8191 |
MEPID |
本地MEP标识 |
1-8191 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
VLAN_ID |
Vlan id |
1-4094 |
LEVEL |
维护域等级 |
0-7 |
priority PRIORITY |
Vlan优先级,默认值为7 |
0-7 |
interval |
发送周期DM的时间间隔,默认是30秒 |
- |
1 |
发送DM的时间间隔为100毫秒 |
- |
2 |
发送DM的时间间隔为1秒 |
- |
3 |
发送DM的时间间隔为10秒 |
- |
4 |
发送DM的时间间隔为30秒 |
- |
5 |
发送DM的时间间隔为60秒 |
- |
frame_size SIZE |
报文的大小,取值范围是64字节-9600字节,默认是64字节 |
64-9600字节 |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了周期性发送DMM消息
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ethernet cfm dmm continual rmepid 1 mepid 2 domain md1 vlan 2 priority 3 interval 1
相关命令
show ethernet cfm dmm continual mepid MEPID (domain DOMAIN_NAME | level LEVEL) (vlan VLAN_ID |)
14.3.45show ethernet cfm dmm continual
命令功能
使用该命令可以显示周期性帧时延测量结果。
命令语法
show ethernet cfm dmm continual ( ( rmepid RMEPID mepid MEPID ( domain DOMAIN_NAME | level LEVEL ) ( vlan VLAN_ID | ) ) | )
参数 |
参数说明 |
参数取值 |
RMEPID |
远端MEP标识 |
1-8191 |
MEPID |
本地MEP标识 |
1-8191 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
VLAN_ID |
Vlan id |
1-4094 |
LEVEL |
维护域等级 |
0-7 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示所有周期性帧时延测量的结果
Switch# show ethernet cfm dmm continual
相关命令
无
14.3.46ethernet cfm delaymeasurement cache enable
命令功能
使用该命令配置缓存帧时延测量的结果,默认是使能的。
命令语法
ethernet cfm delaymeasurement cache enable
no ethernet cfm delaymeasurement cache enable
命令模式
全局配置模式
默认配置
使能
使用说明
无
举例说明
以下用例展示了如何配置缓存帧时延测量的结果
Switch# configure terminal
Switch(config)# ethernet cfm delaymeasurement cache enable
相关命令
无
14.3.47ethernet cfm delaymeasurement cache size
命令功能
使用该命令配置帧时延测量缓存区的大小。
命令语法
ethernet cfm delaymeasurement cache size ENTRIES
no Ethernet cfm delaymeasurement cache size
参数 |
参数说明 |
参数取值 |
ENTRIES |
缓存条目数,默认值为1000 |
1-65535 |
命令模式
全局配置模式
默认配置
1000
使用说明
无
举例说明
以下用例展示了如何配置帧时延测量缓存区的大小
Switch# configure terminal
Switch(config)# ethernet cfm delaymeasurement cache size 100
相关命令
无
14.3.48show ethernet cfm delaymeasurement cache
命令功能
使用该命令可以显示帧时延测量的结果。
命令语法
show ethernet cfm delaymeasurement cache
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示帧时延测量的结果
Switch# show ethernet cfm delaymeasurement cache
相关命令
无
14.3.49clear ethernet cfm delaymeasurement cache
命令功能
使用该命令可以清空帧时延测量缓存区。
命令语法
clear ethernet cfm delaymeasurement cache
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何清空帧时延测量缓存区
Switch# clear ethernet cfm delaymeasurement cache
相关命令
无
14.3.50ethernet cfm csf
命令功能
使用该命令在客户MEP和服务器MEP间配置 客户信号失败(CSF)关系 。
命令语法
ethernet cfm csf client domain CLI_DOMAIN_NAME ( vlan CLI_VLAN_ID | ) mepid CLI_MEPID server domain SRV_DOMAIN_NAME ( vlan SRV_VLAN_ID | ) mepid SRV_MEPID ( tx-interval ( 1 | 60 ) | )
no ethernet cfm csf client domain CLI_DOMAIN_NAME ( vlan CLI_VLAN_ID | ) mepid CLI_MEPID server domain SRV_DOMAIN_NAME ( vlan SRV_VLAN_ID | ) mepid SRV_MEPID
参数 |
参数说明 |
参数取值 |
CLI_DOMAIN_NAME |
客户维护域名字 |
不超过43个字符的字符串 |
vlan CLI_VLAN_ID |
客户Vlan标识 |
1-4094 |
CLI_MEPID |
客户MEP标识 |
1-8191 |
SRV_DOMAIN_NAME |
服务器维护域名字 |
不超过43个字符的字符串 |
vlan SRV_VLAN_ID |
服务器Vlan标识 |
1-4094 |
SRV_MEPID |
服务器MEP标识 |
1-8191 |
tx-interval (1|60) |
发送CSF报文的时间间隔,默认是60秒 |
1或60秒 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何配置CSF关系
Switch# configure terminal
Switch(config)# ethernet cfm csf client domain cust vlan 30 mepid 88 server domain provid vlan 20 mepid 666 tx-interval 1
相关命令
无
14.3.51show ethernet cfm csf
命令功能
使用该命令显示CSF的关系和状态。
命令语法
show ethernet cfm csf
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示CSF
Switch# show ethernet cfm csf
CTR-Client Trigger reason, L(los)/F(fdi)/R(rdi)/N(null)
ECC-Enter CSF Condition, Y(Yes)/N(No)
SRR-Server Rx Reason, L(los)/F(fdi)/R(rdi)/D(dci)/N(null)
Tx-I, Transmit Interval
Rx-I, The period which is gotten from LCK packets
Client Mep Server Mep
MPID Cli-Domain VLAN CTR ECC MPID Srv-Domain VLAN SRR Tx-I Rx-I
1003 md1234567890 3001 L/F/R Y 1004 md1234567890 2001 L/F/R 1 1
相关命令
无
14.3.52ethernet cfm lck enable
命令功能
使用该命令锁定MEP,使数据报文无法通过。
命令语法
ethernet cfm lck enable mep MEPID domain DOMAIN_NAME ( vlan VLAN_ID | ) tx-level TX_LEVEL ( { tx-interval ( 1 | 60 ) | cvlan VLAN_LIST } | )
no ethernet cfm lck enable mep MEPID domain DOMAIN_NAME ( vlan VLAN_ID | )
参数 |
参数说明 |
参数取值 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan id |
1-4094 |
MEPID |
MEP标识 |
1-8191 |
TX_LEVEL |
指定LCK报文向哪个level发送 |
0-7 |
tx-interval (1|60) |
发送LCK报文的周期,默认是60 秒 |
1或60秒 |
cvlan VLAN_LIST |
配置LCK报文cvlan |
1-4094 |
命令模式
端口配置模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何锁定MEP
Switch# configure terminal
Switch(config)# ethernet cfm lck enable domain md1 vlan 2 mepid 1 tx-level 5 tx-interval 1
相关命令
无
14.3.53show ethernet cfm lck
命令功能
使用该命令显示LCK的信息。
命令语法
show ethernet cfm lck
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示LCK的信息:
Switch# show ethernet cfm lck
En-LCK Enable, Y(Yes)/N(No)
Rx-LC, Receive LCK packets and enter LCK condition, Y(Yes)/N(No)
Rx-I, The period which is gotten from LCK packets
Tx-Domain, frames with ETH-LCK information are sent to this Domain
Tx-I, Transmit Interval
MPID Domain VLAN En Rx-LC Rx-I Tx-Domain Tx-I
1001 md1234567890 3001 Y N N/A md1234567891 1
相关命令
无
14.3.54show ethernet cfm lm brief
命令功能
使用该命令显示所有使能了LM的mep信息。
命令语法
show ethernet cfm lm brief
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示了如何显示使能了LM的摘要信息
Switch# show ethernet cfm lm brief
------------------------------------------
MPID Domain VLAN LM-En
------------------------------------------
1 md1 2 dual-lm-enabled
5 md1 2 single-lm-enabled
相关命令
无
14.3.55ethernet cfm tst transmission enable
命令功能
使用该命令使能以太网测试信号(ETH-Test)发送功能。
命令语法
ethernet cfm tst transmission enable session SESSION_ID domain DOMAIN_NAME ( vlan VLAN_ID | ) mep MEPID tx-mode ( fixed pkt-num NUMBER | continuous ) ( { pattern-type ( repeat VALUE | random | increment-byte | decrement-byte ) | packet-size PACKET_SIZE | dest-mac ( multicast | MACADDRESS ) } | )
no ethernet cfm tst transmission enable session SESSION_ID domain DOMAIN_NAME ( vlan VLAN_ID | ) mepid MEPID
参数 |
参数说明 |
参数取值 |
SESSION_ID |
测试用会话ID |
1-4 |
DOMAIN_NAME |
客户维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
客户Vlan标识 |
1-4094 |
MEPID |
客户MEP标识 |
1-8191 |
NUMBER |
发送报文个数 |
1-65535 |
VALUE |
报文填充模式为重复固定值时,该固定值取值范围从0到0xFFFFFFFF |
0 - 0xFFFFFFFF |
PACKET_SIZE |
发送报文的大小,取值范围 从64字节到16027字节,默认512字节 |
64-16027字节 |
multicast |
tst报文的目的地址为组播地址,默认是组播地址 |
- |
MACADDRESS |
tst报文的目的地址为单播地址 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面举例说明如何使能维护域tst
Switch# configure terminal
Switch(config)# ethernet cfm tst transmission enable domain md1 vlan 2 mepid 1 tx-mode continuous pattern-type random packet-size 1518
相关命令
无
14.3.56ethernet cfm tst start/stop
命令功能
使用该命令启动或停止发送test报文。
命令语法
ethernet cfm tst start session SESSION_ID rate RATE time ( cos COS_VALUE | ) ( second SECOND | 1m | 15m | 2h | 24h ) ( tx_port TX_PORT | )
ethernet cfm tst stop
参数 |
参数说明 |
参数取值 |
SESSION_ID |
测试用会话ID |
1-4 |
RATE |
发送速率,取值范围是1mbps到10G |
1-10000 mbps |
cos COS_VALUE |
Vlan优先级,默认值为7 |
0-7 |
SECOND |
发送时长为从1秒钟到60秒钟 |
1-60秒 |
15m |
发送时长为15分钟 |
- |
2h |
发送时长为2小时 |
- |
24h |
发送时长为24小时 |
- |
TX_PORT |
发送TST报文的端口,仅对up mep有效 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示如何启动发送test报文
Switch# configure terminal
Switch(config)# ethernet cfm tst start session 2 rate 10 time second 1
Switch# configure terminal
Switch(config)# ethernet cfm tst start time second 1
相关命令
无
14.3.57ethernet cfm tst reception enable
命令功能
使用该命令使能接收test报文.
命令语法
ethernet cfm tst reception enable session SESSION_ID domain DOMAIN_NAME ( vlan VLAN_ID | ) mepid MEPID
no ethernet cfm tst reception enable session SESSION_ID domain DOMAIN_NAME ( vlan VLAN_ID | ) mepid MEPID
参数 |
参数说明 |
参数取值 |
session |
测试用会话ID |
1-4 |
DOMAIN_NAME |
客户维护域名字 |
不超过43个字符的字符串 |
vlan VLAN_ID |
Vlan id |
1-4094 |
MEPID |
客户MEP标识 |
1-8191 |
命令模式
全局配置模式
默认配置
无
使用说明
Test发送和接收只可以使能在同一个MEP上。
举例说明
以下用例展示如何使能接收test报文
Switch# configure terminal
Switch(config)# ethernet cfm tst reception enable session 1 domain md1 vlan 2 mep 1
Switch# configure terminal
Switch(config)# ethernet cfm tst reception enable domain md1 vlan 2 mepid 1
相关命令
无
14.3.58show ethernet cfm tst
命令功能
使用该命令显示test的信息
命令语法
show ethernet cfm tst
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下用例展示如何显示test的信息:
发送侧显示信息如下
Switch# show ethernet cfm tst
DOMAIN : md1
VLAN : 2
MEPID : 2
Transmission : Disabled
Reception : Enabled
Status : Non-Running
Start Time : null
End Time : null
Packet Type : null
Rate : null
Packet Size : null
Tx Number : 0
Tx Bytes : 0
Rx Number : 28
Rx Bytes : 1792
接收侧显示信息如下
Switch# show ethernet cfm tst
DOMAIN : md1
VLAN : 2
MEPID : 2
Transmission : Disabled
Reception : Enabled
Status : Non-Running
Start Time : null
End Time : null
Packet Type : null
Rate : null
Packet Size : null
Tx Number : 0
Tx Bytes : 0
Rx Number : 28
Rx Bytes : 1792
相关命令
无
14.3.59clear ethernet cfm tst counters
命令功能
使用该命令清空test计数器。
命令语法
clear ethernet cfm tst counters
命令模式
特权模式
默认配置
无
使用说明
当正在发送test报文时,不允许去清test的计数器。
举例说明
以下用例展示清空test计数器
Switch# clear ethernet cfm tst counters
相关命令
无
14.4CPU Traffic Limit命令
14.4.1cpu-traffic-limit total rate
命令功能
使用此命令配置所有进入CPU的流的总限速,使用此命令的no形式恢复到默认值。
命令语法
cpu-traffic-limit total rate RATE_RANGE
no cpu-traffic-limit total rate
参数 |
参数说明 |
参数取值 |
RATE_RANGE |
进入CPU的流的总限速,单位pps |
0-1000000 |
命令模式
全局配置模式
默认配置
2048 pps
使用说明
无
举例说明
如下的例子显示如何配置进入CPU的流的总限速
Switch# configure terminal
Switch(config)# cpu-traffic-limit total rate 3000
恢复默认的限速
Switch# configure terminal
Switch(config)# no cpu-traffic-limit total rate
相关命令
show cpu traffic-limit
14.4.2cpu-traffic-limit reason rate
命令功能
使用此命令配置进入CPU的各个reason的限速,使用此命令的no形式恢复到默认值。
命令语法
cpu-traffic-limit reason { bpdu | slow-protocol | eapol | erps | smart-link | arp | dhcp | rip | ldp | ospf | pim | vrrp | ssh | telnet | mlag | tcp | ipda | icmp-redirect | mcast-rpf-fail | macsa-mismatch | port-security-discard | vlan-security-discard | ip-mtu-fail | ip-option | ucast-ttl-fail | mpls-ttl-fail | igmp | sflow-ingress | sflow-egress | fwd-to-cpu | udld | bfd-learning | bgp | dot1x-mac-bypass | egress-ttl-fail | icmpv6 | l2protocol-tunnel | loopback-detection | mirror-to-cpu | ndp | tunnel-gre-keepalive } rate RATE_RANGE
no cpu-traffic-limit reason { bpdu | slow-protocol | eapol | erps | smart-link | arp | dhcp | rip | ldp | ospf | pim | vrrp | ssh | telnet | mlag | tcp | ipda | icmp-redirect | mcast-rpf-fail | macsa-mismatch | port-security-discard | vlan-security-discard | ip-mtu-fail | ip-option | ucast-ttl-fail | mpls-ttl-fail | igmp | sflow-ingress | sflow-egress | fwd-to-cpu | udld | bfd-learning | bgp | dot1x-mac-bypass | egress-ttl-fail | icmpv6 | l2protocol-tunnel | loopback-detection | mirror-to-cpu | ndp | tunnel-gre-keepalive } rate
参数 |
参数说明 |
参数取值 |
bpdu |
BPDU协议报文(包括 STP, RSTP, MSTP) |
- |
slow-protocol |
Slow协议报文.(包括 EFM, LACP,SYNCE) |
- |
eapol |
Dot1x协议报文 |
- |
erps |
ERPS协议报文 |
- |
arp |
ARP协议报文 |
- |
dhcp |
DHCP协议报文 |
- |
rip |
RIP协议报文 |
- |
bgp |
BGP协议报文 |
- |
ldp |
LDP协议报文 |
- |
ospf |
OSPF协议报文 |
- |
pim |
PIM协议报文 |
- |
vrrp |
VRRP协议报文 |
- |
ssh |
SSH协议报文 |
- |
telnet |
Telnet协议报文 |
- |
mlag |
MLAG协议报文 |
- |
tcp |
TCP协议报文 |
- |
ipda |
IPDA协议报文 |
- |
icmp-redirect |
ICMP重定向 |
- |
mcast_rpf_fail |
组播报文RPF检查失败 |
- |
macsa-mismatch |
与一个端口security entry不匹配时的学习报文 |
- |
port-security-discard |
端口security entry学满时的学习报文 |
- |
vlan-security-discard |
VLAN内学习的MAC达到限制是的学习报文 |
- |
ip-mtu-fail |
需要分片的报文 |
- |
ip-option |
带有可选字段的IP报文 |
- |
ucast-ttl-fail |
TTL失效的单播IP报文 |
- |
mpls-ttl-fail |
TTL失效MPLS报文 |
- |
igmp |
IGMP或者IGMP Snooping报文 |
- |
sflow-ingress |
在入口方向Sflow的采样报文 |
- |
sflow-egress |
在出口方向Sflow的采样报文 |
- |
fwd-to-cpu |
转发到CPU的报文 |
- |
udld |
单向链路检测协议报文 |
- |
bfd-learning |
Bfd学习报文 |
- |
bgp |
边界网关协议报文 |
- |
dot1x-mac-bypass |
Dot1x 旁路认证报文 |
- |
egress-ttl-fail |
出方向TTL失效的IP报文 |
- |
icmpv6 |
ICMPv6报文 |
- |
l2protocol-tunnel |
二层隧道协议报文 |
- |
loopback-detection |
环路检测报文 |
- |
mirror-to-cpu |
镜像到cpu的报文 |
- |
ndp |
邻居发现协议报文 |
- |
tunnel-gre-keepalive |
gre隧道持续回应报文 |
- |
RATE_RANGE |
进入CPU的各个Reason的限速值,单位kbps |
0-1000000 |
命令模式
全局配置模式
默认配置
Reason |
Rate(pps) |
Reason |
Rate(pps) |
bpdu |
64 |
icmp-redirect |
128 |
slow-protocol |
128 |
mcast-rpf-fail |
128 |
eapol |
128 |
macsa-mismatch |
128 |
erps |
128 |
port-security-discard |
128 |
smart-link |
128 |
vlan-security-discard |
128 |
arp |
640 |
udld |
128 |
dhcp |
128 |
ip-mtu-fail |
64 |
rip |
64 |
fwd-to-cpu |
64 |
ldp |
512 |
ip-option |
512 |
ospf |
256 |
ucast-ttl-fail |
64 |
pim |
128 |
mpls-ttl-fail |
64 |
vrrp |
512 |
igmp |
128 |
ssh |
64 |
telnet |
64 |
mlag |
1024 |
tcp |
64 |
ipda |
1024 |
sflow-ingress |
128 |
sflow-egress |
128 |
bfd-learning |
128 |
使用说明
ssh/telnet/mlag在使能了cpu-traffic-optimize之后才有效。
举例说明
如下的例子显示了如何配置reason bpdu的限速值为300kbps
Switch# configure terminal
Switch(config)# cpu-traffic-limit reason bpdu rate 300
Switch# configure terminal
Switch(config)# no cpu-traffic-limit reason bpdu rate
相关命令
show cpu traffic-limit
14.4.3cpu-traffic-limit reason class
命令功能
使用此命令配置各个进入CPU的reason的调度优先级类。使用此命令的no形式恢复到默认值。
命令语法
cpu-traffic-limit reason { bpdu | slow-protocol | eapol | erps | smart-link | arp | dhcp | rip | ldp | ospf | pim | vrrp | ssh | telnet | mlag | tcp | ipda | icmp-redirect | mcast-rpf-fail | macsa-mismatch | port-security-discard | vlan-security-discard | ip-mtu-fail | ip-option | ucast-ttl-fail | mpls-ttl-fail | igmp | sflow-ingress | sflow-egress | fwd-to-cpu | udld | bfd-learning | bgp | dot1x-mac-bypass | egress-ttl-fail | icmpv6 | l2protocol-tunnel | loopback-detection | mirror-to-cpu | ndp | tunnel-gre-keepalive } class CLASS_RANGE
no cpu-traffic-limit reason { bpdu | slow-protocol | eapol | erps | smart-link | arp | dhcp | rip | ldp | ospf | pim | vrrp | ssh | telnet | mlag | tcp | ipda | icmp-redirect | mcast-rpf-fail | macsa-mismatch | port-security-discard | vlan-security-discard | ip-mtu-fail | ip-option | ucast-ttl-fail | mpls-ttl-fail | igmp | sflow-ingress | sflow-egress | fwd-to-cpu | udld | bfd-learning | bgp | dot1x-mac-bypass | egress-ttl-fail | icmpv6 | l2protocol-tunnel | loopback-detection | mirror-to-cpu | ndp | tunnel-gre-keepalive } class
参数 |
参数说明 |
参数取值 |
CLASS_RANGE |
调度优先级类,3表示调度优先级最高 |
0-3 |
命令模式
全局配置模式
默认配置
Reason |
class |
Reason |
class |
bpdu |
3 |
icmp-redirect |
0 |
slow-protocol |
1 |
mcast-rpf-fail |
1 |
eapol |
0 |
macsa-mismatch |
0 |
erps |
2 |
port-security-discard |
0 |
smart-link |
2 |
vlan-security-discard |
0 |
arp |
1 |
udld |
3 |
dhcp |
0 |
mtu-dontfrag |
0 |
rip |
1 |
mtu-frag |
0 |
ldp |
1 |
sflow-ingress |
0 |
ospf |
1 |
ip-option |
0 |
pim |
1 |
ucast-ttl-fail |
0 |
vrrp |
1 |
mpls-ttl-fail |
0 |
igmp |
2 |
ssh |
3 |
telnet |
3 |
mlag |
1 |
tcp |
2 |
ipda |
0 |
igmp |
2 |
mld |
2 |
sflow-egress |
0 |
dot1x-mac-bypass |
2 |
fwd-to-cpu |
0 |
bfd-learning |
1 |
使用说明
Reason调度优先级越高,这种报文在调度时会优先被送入CPU。调度器采用的是严格优先级调度策略,只有当高优先级的流调度完才会调度低优先级的里。
ssh/telnet/mlag在使能了cpu-traffic-optimize之后才有效。
举例说明
如下例子显示了如何配置bpdu的调度优先级类
Switch# configure terminal
Switch(config)# cpu-traffic-limit reason bpdu class 3
恢复BPDU报文的默认限速
Switch# configure terminal
Switch(config)# no cpu-traffic-limit reason bpdu class
相关命令
show cpu traffic-limit
14.4.4cpu-traffic-limit linkup reason enable
命令功能
使用此命令使能进入CPU的协议联动reason。使用此命令的no形式去使能进入CPU的协议联动reason。
命令语法
cpu-traffic-limit reason linkup ( linkup-ftp | linkup-http ) enable
no cpu-traffic-limit reason linkup ( linkup-ftp | linkup-http ) enable
参数 |
参数说明 |
参数取值 |
linkup-ftp |
ftp协议联动报文 |
- |
linkup-http |
http协议联动报文 |
- |
命令模式
全局配置模式
默认配置
使能
使用说明
当协议联动会话建立连接后,基于协议的默认reason的限速就不再起作用,设备以协议联动设定的限速对建立会话连接的报文进行限速。
举例说明
如下例子显示了如何使能linkup-ftp
Switch# configure terminal
Switch(config)# cpu-traffic-limit linkup reason linkup-ftp enable
相关命令
show cpu traffic-limit
14.4.5cpu-traffic-limit linkup reason rate
命令功能
使用此命令配置进入CPU的各个协议联动reason的限速,使用此命令的no形式恢复到默认值。
命令语法
cpu-traffic-limit reason linkup ( linkup-ftp | linkup-http ) rate RATE_RANGE
no cpu-traffic-limit reason linkup ( linkup-ftp | linkup-http ) rate
参数 |
参数说明 |
参数取值 |
linkup-ftp |
ftp协议联动报文 |
- |
linkup-http |
http协议联动报文 |
- |
RATE_RANGE |
进入CPU的各个协议联动Reason的限速值,单位kbps |
0-1000000 |
命令模式
全局配置模式
默认配置
Reason |
Rate(pps) |
linkup-ftp |
1024 |
linkup-http |
1024 |
使用说明
无
举例说明
如下的例子显示了如何配置reason linkup-ftp的限速值为1500kbps
Switch# configure terminal
Switch(config)# cpu-traffic-limit linkup reason linkup-ftp rate 1500
Switch# configure terminal
Switch(config)# no cpu-traffic-limit linkup reason linkup-ftp
相关命令
show cpu traffic-limit
14.4.6cpu-traffic-limit linkup reason class
命令功能
使用此命令配置各个进入CPU的协议联动reason的调度优先级类。使用此命令的no形式恢复到默认值。
命令语法
cpu-traffic-limit reason linkup ( linkup-ftp | linkup-http ) class CLASS_RANGE
no cpu-traffic-limit reason linkup ( linkup-ftp | linkup-http ) class
参数 |
参数说明 |
参数取值 |
CLASS_RANGE |
调度优先级类,3表示调度优先级最高 |
0-3 |
命令模式
全局配置模式
默认配置
Reason |
class |
linkup-ftp |
0 |
linkup-http |
0 |
使用说明
Reason调度优先级越高,这种报文在调度时会优先被送入CPU。调度器采用的是严格优先级调度策略,只有当高优先级的流调度完才会调度低优先级的里。
协议联动reason在功能使能后才有效。
举例说明
如下例子显示了如何配置linkup-ftp的调度优先级类
Switch# configure terminal
Switch(config)# cpu-traffic-limit linkup reason linkup-ftp class 2
恢复linkup-ftp报文的默认限速
Switch# configure terminal
Switch(config)# no cpu-traffic-limit linkup reason linkup-ftp class
相关命令
show cpu traffic-limit
14.4.7show cpu traffic-limit
命令功能
使用此命令查看cpu traffic limit的配置。
命令语法
show cpu traffic-limit
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下例子显示了cpu traffic limit的默认配置
DUT2# show cpu traffic-limit
reason rate (pps) class
dot1x-mac-bypass 64 2
bpdu 64 3
slow-protocol 256 1
eapol 128 0
erps 128 3
smart-link 128 2
udld 128 3
loopback-detection 64 3
arp 256 1
dhcp 128 0
rip 64 1
ldp 512 1
ospf 256 1
pim 128 1
bgp 256 1
vrrp 512 1
ndp 64 2
icmpv6 64 2
ssh 64 3
telnet 64 3
mlag 1000 1
tcp 64 2
ipda 1000 0
icmp-redirect 128 0
mcast-rpf-fail 128 1
macsa-mismatch 128 0
port-security-discard 128 0
vlan-security-discard 128 0
egress-ttl-fail 64 0
ip-mtu-fail 64 0
bfd-learning 128 1
ptp 512 2
ip-option 512 0
tunnel-gre-keepalive 64 0
ucast-ttl-fail 64 0
mpls-ttl-fail 64 0
igmp 128 2
sflow-ingress 128 0
sflow-egress 128 0
fwd-to-cpu 64 0
l2protocol-tunnel 1000 0
mirror-to-cpu 1000 0
linkup-ftp 1024 0
linkup-http 1024 0
Total rate: 2048 (pps)
相关命令
cpu-traffic-limit total rate
cpu-traffic-limit reason rate
14.5CPU Traffic Statistics命令
14.5.1cpu-traffic-statistics time
命令功能
使用此命令配置上CPU报文或者CPU发出报文统计的间隔时间。
命令语法
cpu-traffic-statistics time RATE-TIME
参数 |
参数说明 |
参数取值 |
RATE-TIME |
统计报文的间隔时间 |
1-10 秒 |
命令模式
全局配置模式
默认配置
5 s
使用说明
无。
举例说明
如下的例子显示如何配置上CPU报文统计间隔时间
Switch# configure terminal
Switch(config)# cpu-traffic-statistics time 2
相关命令
N/A
14.5.2no cpu-traffic-statistics time
命令功能
使用此命令恢复上CPU报文或者CPU发出报文统计的间隔时间。
命令语法
no cpu-traffic-statistics time
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何恢复上CPU报文统计间隔时间
Switch# configure terminal
Switch(config)# no cpu-traffic-statistics time
相关命令
N/A
14.5.3show cpu traffic- statistics receive
命令功能
使用此命令配置显示上CPU报文数的统计。
命令语法
show cpu traffic-statistics receive ( bpdu | slow-protocol | eapol | erps | smart-link | arp | dhcp | rip | ldp | ospf | pim | bgp | vrrp | ssh | telnet | mlag | tcp | ipda | icmp-redirect | mcast-rpf-fail | macsa-mismatch | port-security-discard | vlan-security-discard | ip-mtu-fail | ip-option | ucast-ttl-fail | sflow-ingress | sflow-egress | igmp | udld | dot1x-mac-bypass | l2protocol-tunnel | mirror-to-cpu | tunnel-gre-keepalive | loopback-detection | rsvp | bfd-learning | mpls-ttl-fail | fwd-to-cpu | ptp | )
参数 |
参数说明 |
参数取值 |
bpdu |
BPDU协议报文(包括 STP, RSTP, MSTP) |
- |
slow-protocol |
Slow协议报文.(包括 EFM, LACP,SYNCE) |
- |
eapol |
Dot1x协议报文 |
- |
erps |
ERPS协议报文 |
- |
arp |
ARP协议报文 |
- |
dhcp |
DHCP协议报文 |
- |
rip |
RIP协议报文 |
- |
bgp |
BGP协议报文 |
- |
ldp |
LDP协议报文 |
- |
ospf |
OSPF协议报文 |
- |
pim |
PIM协议报文 |
- |
vrrp |
VRRP协议报文 |
- |
ssh |
SSH协议报文 |
- |
telnet |
Telnet协议报文 |
- |
mlag |
MLAG协议报文 |
- |
tcp |
TCP协议报文 |
- |
ipda |
IPDA协议报文 |
- |
icmp-redirect |
ICMP重定向 |
- |
learning-full |
MAC学习缓存已满 |
- |
mcast_rpf_fail |
组播报文RPF检查失败 |
- |
macsa-mismatch |
与一个端口security entry不匹配时的学习报文 |
- |
port-security-discard |
端口security entry学满时的学习报文 |
- |
vlan-security-discard |
VLAN内学习的MAC达到限制是的学习报文 |
- |
ip-mtu-fail |
需要分片的报文 |
- |
Ip-option |
带有可选字段的IP报文 |
- |
ucast-ttl-fail |
TTL失效的单播IP报文 |
- |
mpls-ttl-fail |
TTL失效MPLS报文 |
- |
Igmp |
IGMP或者IGMP Snooping报文 |
- |
sflow-ingress |
在入口方向Sflow的采样报文 |
- |
sflow-egress |
在出口方向Sflow的采样报文 |
- |
fwd-to-cpu |
转发到CPU的报文 |
- |
bfd-learning |
Bfd学习报文 |
- |
mld |
MLD或者MLD Snooping报文 |
- |
dot1x-mac-bypass |
Dot1x 旁路认证报文 |
- |
命令模式
特权模式
默认配置
无。
使用说明
不指定报文类型时,默认查看上CPU的报文数不为0的报文。
举例说明
如下的例子显示了如何查看BPDU报文上CPU的统计
Switch# show cpu traffic-statistics receive bpdu
statistics rate time is 5 second(s)
reason count(packets) rate(pps)
bpdu 0 0
相关命令
show cpu traffic-statistics receive all
14.5.4show cpu traffic-statistics receive all
命令功能
使用此命令配置显示所有上CPU报文数的统计。
命令语法
show cpu traffic-statistics receive all
命令模式
特权模式
默认配置
无。
使用说明
无。
举例说明
如下例子显示了如何显示所有上CPU报文数的统计
Switch# show cpu traffic-statistics receive all
statistics rate time is 5 second(s)
reason count(packets) rate(pps)
dot1x-mac-bypass 0 0
bpdu 0 0
slow-protocol 0 0
eapol 0 0
erps 0 0
smart-link 0 0
udld 0 0
loopback-detection 0 0
arp 0 0
dhcp 0 0
rip 0 0
ldp 0 0
ospf 0 0
pim 0 0
bgp 0 0
vrrp 0 0
rsvp 0 0
ssh 0 0
telnet 0 0
mlag 0 0
tcp 0 0
ipda 0 0
icmp-redirect 0 0
mcast-rpf-fail 0 0
macsa-mismatch 0 0
port-security-discard 0 0
vlan-security-discard 0 0
ip-mtu-fail 0 0
bfd-learning 0 0
ptp 0 0
ip-option 0 0
tunnel-gre-keepalive 0 0
ucast-ttl-fail 0 0
mpls-ttl-fail 0 0
igmp 0 0
sflow-ingress 0 0
sflow-egress 0 0
fwd-to-cpu 0 0
l2protocol-tunnel 0 0
mirror-to-cpu 0 0
mpls-tp-pwoam 0 0
other 0 0
Total 0 0
相关命令
N/A
14.5.5show cpu traffic-statistics transmit
命令功能
使用此命令配置显示所有CPU发出报文数的统计。
命令语法
show cpu-traffic -statistic transmit
命令模式
特权模式
默认配置
无
使用说明
CPU发出报文统计不区分类型。
举例说明
如下例子显示所有CPU发出报文数的统计
Switch# show cpu traffic-statistics transmit
statistics rate time is 5 second(s)
count(packets) rate(pps)
Total 0 0
相关命令
N/A
14.6CPU Traffic Protect命令
14.6.1cpu-traffic-protect
命令功能
使用此命令配置使能并进入cpu流量保护模式,使用此命令的no形式去使能cpu流量保护。
命令语法
cpu-traffic-protect ( arp | dhcp )
no cpu-traffic-protect ( arp | dhcp )
参数 |
参数说明 |
参数取值 |
arp |
ARP报文 |
- |
dhcp |
DHCP报文,使能端口级别dhcp的cpu流量保护 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
配置cpu流量保护arp后,将进入黑名单模式;配置cpu流量保护dhcp后,将开启端口级的dhcp报文上cpu的流量保护。
举例说明
如下的例子显示如何使能并进入cpu流量保护模式
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)#
相关命令
N/A
14.6.2trace enable
命令功能
使用此命令控制使能攻击溯源,使用此命令的no形式去使能攻击溯源。
命令语法
trace enable
no trace enable
命令模式
CPU流量保护配置模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何使能攻击溯源
Switch# configure terminal
Switch(config-cpu-traffic-protect)# trace enable
相关命令
N/A
14.6.3trace type
命令功能
使用此命令配置攻击溯源的溯源模式,使用此命令的no形式恢复默认的攻击溯源模式。
命令语法
trace type ( sender-ip | src-mac | target-ip | source-portvlan | src-interface )
no trace type
参数 |
参数说明 |
参数取值 |
sender-ip |
ARP报文发送端IP地址 |
- |
src-mac |
ARP报文源MAC地址 |
- |
target-ip |
ARP报文目的IP地址 |
- |
source-portvlan |
报文入口和所属VLAN |
- |
source-interface |
DHCP报文入口,只能用于cpu流量保护dhcp的情况。 |
- |
命令模式
CPU流量保护配置模式
默认配置
ARP溯源模式默认值 :src-mac;
DHCP溯源模式默认值: src-interface
使用说明
DHCP溯源目前只支持src-interface模式,ARP溯源支持除了src-interface模式外的其它模式。
举例说明
如下的例子显示如何使能攻击溯源的溯源模式为ARP报文发送端IP地址和ARP报文目的IP地址
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)# trace type sender-ip target-ip
相关命令
N/A
14.6.4trace sample
命令功能
使用此命令配置攻击溯源的采样比,使用此命令的no形式恢复默认的攻击溯源的采样比。
命令语法
trace sample SAMPLE-RATE
no trace sample
参数 |
参数说明 |
参数取值 |
SAMPLE-RATE |
攻击溯源采样比 |
1-1024 |
命令模式
CPU流量保护配置模式
默认配置
ARP攻击溯源采样比默认值:8;
DHCP攻击溯源采样比默认值:1
使用说明
无
举例说明
如下的例子显示如何攻击溯源的采样比为16
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)# trace sample 16
相关命令
无
14.6.5trace threshold
命令功能
使用此命令配置攻击溯源的检查阈值,使用此命令的no形式恢复默认的攻击溯源检查阈值。
命令语法
trace threshold THRESHOLD
no trace threshold
参数 |
参数说明 |
参数取值 |
THRESHOLD |
攻击溯源检查阈值 |
1-65535,单位:pps |
命令模式
CPU流量保护配置模式
默认配置
ARP攻击溯源检查阈值默认值:128;
DHCP攻击溯源检查阈值默认值:64
使用说明
无
举例说明
如下的例子显示如何攻击溯源的检查阈值为10
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)# trace threshold 10
相关命令
无
14.6.6trace timeout
命令功能
使用此命令配置攻击溯源的老化时间,使用此命令的no形式恢复默认的溯源老化时间。
命令语法
trace timeout AGING-TIMEOUT
no trace timeout
参数 |
参数说明 |
参数取值 |
AGING-TIMEOUT |
攻击溯源老化时间 |
30-1000000,单位:s |
命令模式
CPU流量保护配置模式
默认配置
ARP攻击溯源老化时间默认值:300s
使用说明
无
举例说明
如下的例子显示如何攻击溯源的老化时间为400
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)# trace timeout 400
相关命令
无
14.6.7trace action
命令功能
使用此命令配置攻击溯源的惩罚措施,使用此命令的no形式恢复默认的攻击溯源惩罚措施。
命令语法
trace action deny ( recover time RECOVER-TIME | )
no trace action
参数 |
参数说明 |
参数取值 |
RECOVER-TIME |
攻击溯源惩罚措施自动恢复时间 |
1-86400,单位:s |
命令模式
CPU流量保护配置模式
默认配置
默认惩罚措施:300s自动恢复
使用说明
只能用于cpu流量保护dhcp协议时,默认配置为丢弃dhcp报文并自动在300s后恢复
举例说明
如下的例子显示如何配置攻击溯源的惩罚措施为自动600s恢复
Switch# configure terminal
Switch(config)# cpu-traffic-protect dhcp
Switch(config-cpu-traffic-protect)# trace action deny recover time 600
相关命令
cpu-traffic-protect manual recover dhcp
14.6.8trace protect delay-time
命令功能
使用此命令配置攻击溯源的保护措施生效的延迟时间,使用此命令的no形式恢复默认的保护措施生效时间。
命令语法
trace protect delay-time DELAY-TIME
no trace delay-time
参数 |
参数说明 |
参数取值 |
DELAY-TIME |
保护措施生效的延迟时间 |
0-86400,单位:s |
命令模式
CPU流量保护配置模式
默认配置
10
使用说明
只能用于cpu流量保护dhcp协议时,代表连续多少秒受到攻击才在接口下启动cpu流量保护dhcp
举例说明
如下的例子显示如何配置延迟保护时间为15s
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)# trace protect delay-time 15
相关命令
无
14.6.9apply access-list
命令功能
使用此命令配置ARP保护过滤的规则,使用此命令的no形式删除该过滤规则。
命令语法
apply access-list NAME ( mode ( blacklist | whitelist ( rate RATE | ) ) | )
no apply access-list ACL-NAME
参数 |
参数说明 |
参数取值 |
ACL-NAME |
扩展IP访问控制列表名称 |
- |
blacklist |
黑名单模式 |
- |
whitelist |
白名单模式 |
- |
RATE |
限速速率 |
32-2048,单位:pps |
命令模式
CPU流量保护配置模式
默认配置
限速:32pps
模式:黑名单
使用说明
速率按照64B的报文计算
举例说明
如下的例子显示如何配置ARP保护过滤的规则应用扩展IP访问控制列表”2”,并进入白名单模式,设置限速为64pps
Switch# configure terminal
Switch(config)# cpu-traffic-protect arp
Switch(config-cpu-traffic-protect)# apply access-list 2 mode whitelist rate 64
相关命令
无
14.6.10cpu-traffic-protect manual recover dhcp
命令功能
使用此命令配置手动恢复被惩罚端口下的dhcp协议通道。
命令语法
cpu-traffic-protect manual recover dhcp ( interface ( IFPHYSICAL | IFAGG | IFVLAN ) | all )
参数 |
参数说明 |
参数取值 |
IFPHYSICAL |
物理接口名 |
- |
IFAGG |
汇聚链路接口 |
- |
IFVLAN |
VLAN接口 |
- |
all |
所有受惩罚的接口 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何手动恢复eth-0-1受cpu 流量保护惩罚的dhcp通道
Switch# cpu-traffic-protect manual recover dhcp interface eth-0-1
相关命令
trace action
14.6.11show cpu traffic-protect dhcp recover table
命令功能
使用此命令显示受流量保护惩罚的接口表项及其DHCP协议通道自动恢复时间。
命令语法
show cpu traffic-protect dhcp recover table
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何显示当前正在受惩罚的接口表项及其恢复时间。
Switch# show cpu traffic-protect dhcp recover table
Dhcp Recover State Table :
------------------------------------------------------------------------
Interface RecoverTime(s)
------------------------------------------------------------------------
eth-0-1 30
------------------------------------------------------------------------
Total: 1
相关命令
trace protect delay-time
14.6.12show cpu traffic-protect trace
命令功能
使用此命令配置显示攻击源信息。
命令语法
show cpu traffic-protect ( arp | dhcp ) trace ( history | )
参数 |
参数说明 |
参数取值 |
arp |
ARP报文 |
- |
dhcp |
DHCP报文 |
- |
histroy |
历史攻击溯源信息 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示了如何查看显示arp的攻击源信息
Switch# show cpu traffic-protect arp trace
Attack Source User Table :
------------------------------------------------------------------------
MacAddress Interface Vlan:O/I AttackTime TotalPackets
------------------------------------------------------------------------
0000.0b00.0200 eth-0-3 - 2019-01-02 15:18:21 1712
------------------------------------------------------------------------
Total: 1
Attack Source Port Table :
------------------------------------------------------------------------
Interface Vlan:O/I AttackTime TotalPackets
------------------------------------------------------------------------
------------------------------------------------------------------------
Total: 0
Attack Sender IP Table :
------------------------------------------------------------------------
IPAddress AttackTime TotalPackets
------------------------------------------------------------------------
1.2.3.4 2019-01-02 15:21:24 184
------------------------------------------------------------------------
Total: 1
Attack Target IP Table :
------------------------------------------------------------------------
IPAddress AttackTime TotalPackets
------------------------------------------------------------------------
4.3.2.1 2019-01-02 15:21:24 184
------------------------------------------------------------------------
Total: 1
相关命令
clear cpu traffic-protect trace
14.6.13show cpu traffic-protect trace config
命令功能
使用此命令配置显示攻击源配置信息。
命令语法
show cpu traffic-protect ( arp | dhcp ) trace config
参数 |
参数说明 |
参数取值 |
arp |
ARP报文 |
- |
dhcp |
DHCP报文 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示了如何查看显示arp的攻击溯源配置信息
Switch# show cpu traffic-protect arp trace config
Trace arp configuration:
Reason :16
Enable :1
Mode :0x1
Sample :18
Threshold :35
Aging timeout :300
相关命令
无
14.6.14show resource cpu traffic-protect
命令功能
使用此命令配置显示使用的资源。
命令语法
show resource cpu traffic-protect
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示了如何查看使用的资源
Switch# show resource cpu traffic-protect
Cpu traffic-protect
Resource Used Capability
=============================================================
ACEs 3 200
相关命令
show resource qos
14.6.15clear cpu traffic-protect trace
命令功能
使用此命令清除攻击源信息。
命令语法
clear cpu traffic-protect ( arp | dhcp ) trace ( history | )
参数 |
参数说明 |
参数取值 |
arp |
ARP报文 |
- |
dhcp |
DHCP报文 |
- |
histroy |
历史攻击溯源信息 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示了如何清除arp攻击源历史信息
Switch# clear cpu traffic-protect arp trace history
相关命令
无
14.7G.8031命令
14.7.1g8031 eps-id
命令功能
使用此命令进入EPS配置模式。如果g8031 EPS组不存在,系统将创建一个新的组。
使用该命令的no格式删除g8031 EPS组。
命令语法
g8031 eps-id EPS_ID ( working-port IFNAME-W protection-port IFNAME-P | )
no g8031 eps-id EPS_ID
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS 组号,唯一表示一个组,范围是1~2048 |
1-2048 |
working-port IFNAME-W |
工作链路的接口名 |
支持物理口 |
protection-port IFNAME-P |
保护链路的接口名 |
支持物理口 |
命令模式
全局配置模式
默认配置
无
使用说明
使用此命令进入EPS配置模式。
如果g8031 EPS组不存在,系统将创建一个新的组。在创建新组的时候,用户必须指定工作链路接口和保护链路接口。在组被创建以后,工作链路接口和保护链路接口不允许改变。
对于已经存在的g8031 eps组,用户可以仅指定组号进入EPS配置模式。
举例说明
以下例子创建了一个g8031 eps组
Switch# configure terminal
Switch(config)# g8031 eps-id 10 working-port eth-0-9 protection-port eth-0-10
相关命令
instance
domain
show g8031
14.7.2instance
命令功能
使用此命令在g8031 EPS组中绑定一个MSTP实例。
使用该命令的no格式解绑定mstp 实例。
命令语法
instance INSTANCE_ID
no instance INSTANCE_ID
参数 |
参数说明 |
参数取值 |
INSTANCE_ID |
指定MSTP实例号 |
0-4094 |
命令模式
EPS配置模式
默认配置
无
使用说明
使用此命令在g8031 EPS组中绑定一个mstp实例。实例必须在绑定之前创建。
用户可以在一个g8031 EPS组中绑定多个mstp实例。
举例说明
以下例子绑定了一个mstp实例
Switch# configure terminal
Switch(g8031-config-switching)# instance 10
相关命令
g8031 eps-id
show g8031
14.7.3domain
命令功能
使用此命令在g8031 EPS组中绑定cfm维护域和cfm服务。
使用该命令的no格式解绑定cfm维护域。
命令语法
domain MD_NAME working-service MA_NAME_W protection-service MA_NAME_P
no domain
参数 |
参数说明 |
参数取值 |
domain MD_NAME |
cfm维护域名字 |
不超过43个字符的字符串 |
working-service MA_NAME_W |
工作链路绑定的cfm服务名 |
与MD name(Maintenance domain)一起,字符串总长度不超过44字符。 |
protection-service MA_NAME_P |
保护链路绑定的cfm服务名 |
与MD name(Maintenance domain)一起,字符串总长度不超过44字符。 |
命令模式
EPS配置模式
默认配置
无
使用说明
使用此命令在g8031 EPS组中绑定cfm维护域和cfm服务。
cfm维护域和cfm服务必须在绑定之前创建。
举例说明
以下例子绑定了一个cfm维护域和cfm服务
Switch# configure terminal
Switch(g8031-config-switching)# domain test working-service test1 protetion-service test2
相关命令
g8031 eps-id
show g8031
14.7.4mode
命令功能
使用此命令设置g8031 EPS组的模式。
使用该命令的no格式将g8031 EPS组的模式恢复到默认值。
命令语法
g8031 mode ( revertive | non-revertive )
no mode
参数 |
参数说明 |
参数取值 |
revertive |
回切模式 |
- |
non-revertive |
非回切模式 |
- |
命令模式
EPS配置模式
默认配置
默认的模式是回切模式。
使用说明
使用此命令设置g8031 EPS组的模式。
如果改变一个g8031 EPS组的模式,这个组的状态机将会重启,恢复到初始状态。
举例说明
以下例子改变了g8031 EPS组的模式
Switch# configure terminal
Switch(g8031-config-switching)# mode non-revertive
相关命令
g8031 eps-id
show g8031
14.7.5timer
命令功能
使用此命令设置g8031 EPS组的回切等待定时器或切换延迟定时器。
使用该命令的no格式将g8031 EPS组的回切等待定时器或切换延迟定时器恢复到默认值。
命令语法
timer ( wait-to-restore TIME-VALUE | hold-off TIME-VALUE )
no timer ( wait-to-restore | hold-off )
参数 |
参数说明 |
参数取值 |
wait-to-restore TIME-VALUE |
g8031 EPS组的回切等待定时器,范围是5~12分钟 |
5-12分钟 |
hold-off TIME-VALUE |
g8031 EPS组的切换延迟定时器, |
范围是0-100,单位是100ms |
命令模式
EPS配置模式
默认配置
回切等待定时器的默认值是5分钟。
切换延迟定时器的默认值是0。
使用说明
使用此命令设置g8031 EPS组的回切等待定时器或切换延迟定时器。
回切等待定时器的范围在5-12分钟,步长一分钟。默认值是5分钟。
切换延迟定时器的范围在0-10秒钟,步长是100ms。可配置的值是0-100,以100ms为单位,默认值是0ms。
举例说明
以下例子改变了g8031 EPS组的回切等待定时器和切换延迟定时器
Switch# configure terminal
Switch(g8031-config-switching)# timer wait-to-restore 8
Switch(g8031-config-switching)# timer hold-off 5
相关命令
g8031 eps-id
show g8031
14.7.6g8031 force
命令功能
使用此命令触发g8031 EPS组进入强制切换状态。
命令语法
g8031 force eps-id EPS_ID
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS 组号,唯一表示一个组 |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
使用此命令触发g8031 EPS组进入强制切换状态。
如果g8031 EPS组的当前状态优先级高于强制切换,系统会拒绝完成该操作。
举例说明
以下例子触发了g8031 EPS组强制切换
Switch# g8031 force eps-id 10
相关命令
g8031 eps-id
show g8031
14.7.7g8031 manual
命令功能
使用此命令触发g8031 EPS组进入手工切换状态。
命令语法
g8031 manual eps-id EPS_ID
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS 组号,唯一表示一个组 |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
使用此命令触发g8031 EPS组进入手工切换状态。
如果g8031 EPS组的当前状态优先级高于手工切换,系统会拒绝完成该操作。
举例说明
以下例子触发了g8031 EPS组手工切换
Switch# g8031 manual eps-id 10
相关命令
g8031 eps-id
show g8031
14.7.8g8031 lockout
命令功能
使用此命令触发g8031 EPS组进入锁定状态。
命令语法
g8031 lockout eps-id EPS_ID
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS 组号,唯一表示一个组 |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
使用此命令触发g8031 EPS组进入锁定状态。
举例说明
以下例子触发了g8031 EPS组锁定
Switch# g8031 lockout eps-id 10
相关命令
g8031 eps-id
show g8031
14.7.9g8031 exercise
命令功能
使用此命令触发g8031 EPS组进入演习状态。
命令语法
g8031 exercise eps-id EPS_ID
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS 组号,唯一表示一个组 |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
使用此命令触发g8031 EPS组进入演习状态。
如果g8031 EPS组的当前状态优先级高于演习,系统会拒绝完成该操作。
举例说明
以下例子触发了g8031 EPS组演习
Switch# g8031 exercise eps-id 10
相关命令
g8031 eps-id
show g8031
14.7.10g8031 clear
命令功能
使用此命令触发g8031 EPS组清除g8031 EPS组的强制切换、手工切换、回切等待、锁定、演习状态。
命令语法
g8031 clear eps-id EPS_ID
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS组号,唯一表示一个组 |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
使用此命令触发g8031 eps组清除g8031 eps组的强制切换、手工切换、回切等待、锁定、演习状态。
工作链路失效、备用链路失效状态无法清除。
举例说明
以下例子触发g8031 eps组清除g8031 eps组的强制切换、手工切换、回切等待、锁定、演习状态
Switch# g8031 clear eps-id 10
相关命令
g8031 eps-id
show g8031
14.7.11show g8031
命令功能
使用此命令显示g8031 EPS组的配置和状态。
命令语法
show g8031 ( eps-id EPS_ID | )
参数 |
参数说明 |
参数取值 |
eps-id EPS_ID |
g8031 EPS组号,唯一表示一个组 |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
使用此命令显示g8031 eps组的配置和状态。
如果不指定g8031 eps组号,将显示系统全部的g8031 eps组。
举例说明
以下命令显示了g8031 eps组的配置和状态
Switch# show g8031
Codes: ID - Group id of G.8031
IF-W - Interface of working entity, IF-P - Interface of protection entity
MD - Maintenance domain
MA-W - Maintenance association of working entity
MA-W - Maintenance association of protection entity
CS - Current state, LS - Last state, LE - Last event, FS - Far end state
R/B - Request signal & bridged signal, MODE - Revertive or Non-revertive
WTR - Wait to restore, DFOP - Failure of protocol defects
=============================================================================
ID IF-W IF-P MD MA-W MA-P CS LS LE FS R/B MODE
-----------------------------------------------------------------------------
10 eth-0-9 eth-0-10 test test1 test2 NR NR NR NR null REV
APS Vid - 11
Active-Path - Working
DFOP State - Not in defect mode
Protected Instance - 10
=============================================================================
相关命令
g8031 eps-id
14.7.12debug g8031
命令功能
使用此命令打开g8031模块调试开关。
使用该命令的no格式关闭。
命令语法
debug g8031 ( rx | tx | event | all )
no debug g8031 ( rx | tx | event | all )
参数 |
参数说明 |
参数取值 |
rx |
使能接收报文相关调试信息 |
- |
tx |
使能发送报文相关调试信息 |
- |
event |
使能模块事件相关调试信息 |
- |
all |
使能全部调试信息 |
- |
命令模式
特权模式
默认配置
无
使用说明
使用此命令打开g8031模块调试开关
举例说明
以下例子打开了g8031模块全部调试信息开关
Switch# debug g8031 all
Switch# terminal monitor
相关命令
无
14.8G.8032命令
14.8.1g8032 ring-id
命令功能
使用此命令进入ring配置模式。如果g8032 ring不存在,系统将创建一个新的ring。
使用该命令的no格式删除g8032 ring。
命令语法
g8032 ring-id RING_ID (east-interface IFNAME-E west-interface IFNAME-W ( is-sub-ring | ) | )
g8032 ring-id RING_ID ( interface IFNAME major-ring-id MAJOR_RING_ID | )
no g8032 ring-id RING_ID
参数 |
参数说明 |
参数取值 |
ring-id RING_ID |
g8032 ring编号,唯一表示一个g8032 ring |
1-2048 |
east-interface IFNAME-E |
east接口名字 |
支持物理端口 |
west-interface IFNAME-W |
west接口名字 |
支持物理端口 |
interface IFNAME |
子环接口名字 |
支持物理端口 |
major-ring-id MAJOR_RING_ID |
g8032 ring编号,唯一表示一个g8032 ring 主环 |
1-2048 |
is-sub-ring |
指定为子环非相交节点 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
使用此命令进入ring配置模式。
如果g8032 ring不存在,系统将创建一个新的ring。用户必须在创建g8032 主环的时候指定east接口和west接口,在创建g8032子环的时候必须指定子环接口。主环east接口、west接口和子环接口在g8032 ring创建以后不允许修改。
对于已经存在的g8032 ring,用户可以仅指定编号进入ring配置模式。
举例说明
以下例子创建了一个g8032主环,并进入了ring配置模式
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1 east-interface eth-0-1 west-interface eth-0-2
Switch(g8032-config-switch)# exit
以下例子创建了一个g8032子环,并进入了ring配置模式
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 2 interface eth-0-3 major-ring-id 1
Switch(g8032-config-switch)# exit
以下例子仅指定编号进入ring配置模式
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# exit
Switch(config)# g8032 ring-id 2
Switch(g8032-config-switch)#
相关命令
domain
instance
timer
show g8032
14.8.2instance
命令功能
使用此命令在g8032 ring中绑定一个mstp实例。
使用该命令的no格式解绑定mstp 实例。
命令语法
instance INSTANCE_ID
no instance INSTANCE_ID
参数 |
参数说明 |
参数取值 |
INSTANCE_ID |
指定mstp实例号 |
0-4094 |
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令在g8032 ring中绑定一个mstp实例。实例必须在绑定之前创建。
用户可以在一个g8032 ring中绑定多个mstp实例。
举例说明
以下例子绑定了一个mstp实例
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# instance 1
Switch(g8032-config-switch)#
相关命令
domain
timer
show g8032
14.8.3domain
命令功能
使用此命令在g8032 ring中绑定cfm维护域和cfm服务。
使用该命令的no格式解绑定cfm维护域。
命令语法
domain MD_NAME service MA_NAME
no domain
参数 |
参数说明 |
参数取值 |
MD_NAME |
cfm维护域名字 |
不超过43个字符的字符串 |
MA_NAME |
cfm服务名 |
与MD name(Maintenance domain)一起,字符串总长度不超过44字符。 |
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令在g8032 ring中绑定cfm维护域和cfm服务。
cfm维护域和cfm服务必须在绑定之前创建。
举例说明
以下例子绑定了一个cfm维护域和cfm服务
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# domain md1 service ma1
Switch(g8032-config-switch)#
相关命令
instance
timer
show g8032
14.8.4control-vlan
命令功能
使用此命令配置g8032 ring控制报文(R-APS)专用Vlan。
使用该命令的no格式删除g8032 ring控制报文(R-APS)专用Vlan。
命令语法
control-vlan VID
no control-vlan
参数 |
参数说明 |
参数取值 |
VID |
8032 ring控制报文(R-APS)专用Vlan id |
2-4094 |
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令配置g8032 ring控制报文(R-APS)专用vlan。
注意该vlan专门用于转发g8032 ring控制报文(R-APS),静态动态fdb都会被删除,在该vlan用作g8032 ring控制报文(R-APS)专用vlan期间,无法配置静态fdb,无法学习动态fdb。
举例说明
以下例子配置了g8032 ring控制报文(R-APS)专用vlan
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# control-vlan 22
相关命令
domain
instance
timer
show g8032
14.8.5rpl owner
命令功能
使用此命令配置g8032 ring的环保护链路控制结点。
使用该命令的no格式删除g8032 ring的环保护链路控制结点。
命令语法
rpl owner ( EAST-INTERFACE | WEST-INTERFACE )
no rpl owner
参数 |
参数说明 |
参数取值 |
EAST-INTERFACE |
g8032 ring的east接口 |
- |
WEST-INTERFACE |
g8032 ring的west接口 |
- |
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令配置g8032 ring的环保护链路控制结点。在主环中,可以指定east接口或west接口为控制节点。子环只能指定east接口。
举例说明
以下例子配置了g8032 ring的环保护链路控制结点
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# rpl owner east-interface
相关命令
domain
instance
timer
show g8032
14.8.6timer
命令功能
使用此命令设置g8032 ring的回切等待定时器,切换延迟定时器,切换控制定时器。
使用该命令的no格式将g8032 ring的回切等待定时器,切换延迟定时器,切换控制定时器恢复到默认值。
命令语法
timer ( wait-to-restore TIMEVAL | hold-off TIMEVAL | guard-timer TIMEVAL )
no timer ( wait-to-restore | hold-off | guard-timer )
参数 |
参数说明 |
参数取值 |
wait-to-restore TIMEVAL |
g8032 ring 的回切等待定时器,范围是1~12分钟 |
1-12分钟 |
hold-off TIMEVAL |
g8032 ring 的切换延迟定时器 |
范围是0-10000,单位是ms,必须是100的整数倍 |
guard-timer TIMEVAL |
g8032 ring的切换控制定时器 |
范围是100-2000,单位是ms,必须是100的整数倍) |
命令模式
G8032配置模式
默认配置
回切等待定时器的默认值是5分钟。
切换延迟定时器的默认值是0ms。
切换控制定时器的默认值是500ms。
使用说明
使用此命令设置g8032 ring的回切等待定时器,切换延迟定时器,切换控制定时器。
回切等待定时器的范围在1-12分钟,步长一分钟。默认值是5分钟。
切换延迟定时器的范围在0-10秒钟,步长是100ms。可配置的值是0-10000,以ms为单位。必须是100的整数倍。默认值是0ms。
切换控制定时器的范围在100ms-2s,步长是100ms。可配置的值是100-2000,以ms为单位。必须是100的整数倍。默认值是500ms。
举例说明
以下例子改变了g8032 ring的回切等待定时器
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# timer wait-to-restore 6
以下例子改变了g8032 ring的切换延迟定时器
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# timer hold-off 100
以下例子改变了g8032 ring的切换控制定时器
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# timer guard-timer 200
相关命令
domain
instance
show g8032
14.8.7ring enable
命令功能
使用此命令启动g8032 ring以太环网保护功能。
命令语法
ring enable
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令启动g8032 ring以太环网保护功能。
在启动之前,需要绑定cfm服务域及mstp实例,配置协议报文专用vlan。启动以后不允许改变配置。
举例说明
以下例子启动了g8032 ring以太环网保护功能
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# ring enable
Switch(g8032-config-switch)#
相关命令
ring disable
show g8032
14.8.8ring disable
命令功能
使用此命令停止g8032 ring以太环网保护功能。
命令语法
ring disable
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令停止g8032 ring以太环网保护功能。
举例说明
以下例子停止了g8032 ring以太环网保护功能
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-config-switch)# ring disable
相关命令
ring enable
show g8032
14.8.9show g8032
命令功能
使用此命令显示g8032 ring的配置和状态。
命令语法
show g8032 ( ring-id RING_ID | interface IF_NAME )
参数 |
参数说明 |
参数取值 |
RING_ID |
g8032 ring编号,唯一表示一个g8032 ring |
1-2048 |
IF_NAME |
g8032环端口 |
- |
命令模式
特权模式
默认配置
无
使用说明
使用此命令显示g8032 ring的配置和状态。
如果不指定g8032 ring编号,将显示系统全部的g8032 ring。
举例说明
以下命令显示了g8032 ring的配置和状态
Switch# show g8032
RingID MajorRing State East Status West Status
-------------------------------------------------------------------------------
1 N/A Idle eth-0-9 Blocked eth-0-13 Forward
Control Vlan : 4094
MD Name : md1
Service Id : ma1
Is Enabled : Yes
Mode : Revertive
Node Role : Owner
Is Sub_ring : No
Protect Instance : 1-2
RPL : east-interface
Wait-to-restore : 05:00
Hold-off Timer : 0 (msecs)
Guard Timer : 500 (msecs)
WTB Timer : 5500 (msecs)
RAPS MEL : 7
Is Forward-to-cpu : 1
-------------------------------------------------------------------------------
如下示例,显示g8032 ring端口信息
Switch# show g8032 interface eth-0-1
Interface State : Up
==================================================
Ring ID : 1
Flush Logic
Remote Node ID : 92d5.b22e.cc00
Remote BPR : 0
==================================================
相关命令
g8032 ring-id
14.8.10debug g8032
命令功能
使用此命令打开g8032模块调试开关。
使用该命令的no格式关闭。
命令语法
debug g8032 ( rx | tx | event | all )
no debug g8032 ( rx | tx | event | all )
参数 |
参数说明 |
参数取值 |
rx |
使能接收报文相关调试信息 |
- |
tx |
使能发送报文相关调试信息 |
- |
event |
使能模块事件相关调试信息 |
- |
all |
使能全部调试信息 |
- |
命令模式
特权模式
默认配置
无
使用说明
使用此命令打开g8032模块调试开关
举例说明
以下例子打开了g8032模块全部调试信息开关
Switch# debug g8032 all
Switch# terminal monitor
相关命令
无
14.8.11g8032 force
命令功能
使用此命令触发g8032 ring端口进入强制切换状态。
命令语法
g8032 force ring-id RING_ID ( east-interface | west-interface )
参数 |
参数说明 |
参数取值 |
RING_ID |
g8032 ring编号,唯一表示一个g8032 ring |
1-2048 |
east-interface |
触发环的east-interface做强制切换 |
- |
west-interface |
触发环的west-interface做强制切换 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下示例,显示如何触发g8032 ring进入强制切换状态。
Switch# g8032 force ring-id 1 east-interface
相关命令
show g8032
14.8.12g8032 manual
命令功能
使用此命令触发g8032 ring端口进入手动切换状态。
命令语法
g8032 manual ring-id RING_ID ( east-interface | west-interface )
参数 |
参数说明 |
参数取值 |
RING_ID |
g8032 ring编号,唯一表示一个g8032 ring |
1-2048 |
east-interface |
触发环的east-interface做手动切换 |
- |
west-interface |
触发环的west-interface做手动切换 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下示例,显示如何触发g8032 ring进入手动切换状态。
Switch# g8032 manual ring-id 1 east-interface
相关命令
show g8032
14.8.13g8032 clear
命令功能
使用此命令清除g8032 ring端口强制切换或手动切换状态。
命令语法
g8032 clear ring-id RING_ID
参数 |
参数说明 |
参数取值 |
RING_ID |
g8032 ring编号,唯一表示一个g8032 ring |
1-2048 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下示例,显示如何清除g8032 ring强制切换状态。
Switch# g8032 clear ring-id 2
相关命令
无
14.8.14rpl neighbor
命令功能
使用此命令配置g8032 ring保护链路邻居结点。
使用该命令的no格式删除g8032 ring保护链路邻居结点。
命令语法
rpl neighbor ( east-interface | west-interface )
no rpl neighbor
参数 |
参数说明 |
参数取值 |
east-interface |
指定环的east接口作为RPL邻居 |
- |
west-interface |
指定环的west接口作为RPL邻居 |
- |
命令模式
G8032配置模式
默认配置
无
使用说明
无
举例说明
如下示例,配置g8032 ring的环保护链路邻居结点
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1 east-interface eth-0-1 west-interface eth-0-2
Switch(g8032-ring-1)# rpl neighbor east-interface
Switch(g8032-ring-1)#
如下示例,删除g8032 ring的环保护链路邻居结点
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1 east-interface eth-0-1 west-interface eth-0-2
Switch(g8032-ring-1)# rpl neighbor east-interface
Switch(g8032-ring-1)# no rpl neighbor
相关命令
show g8032
14.8.15virtual-channel enable
命令功能
使用此命令使能子环虚拟通道。
命令语法
virtual-channel enable
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令使能子环虚拟通道。配置后,g8032子环的R-APS报文不会在interconnection节点终结。
举例说明
如下示例,使能虚拟通道
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1 east-interface eth-0-1 west-interface eth-0-2
Switch(g8032-ring-1)# exit
Switch(config)# g8032 ring-id 2 interface eth-0-3 major-ring-id 1
Switch(g8032-ring-2)# virtual-channel enable
相关命令
show g8032
14.8.16virtual-channel disable
命令功能
使用此命令关闭子环虚拟通道。
命令语法
virtual-channel disable
命令模式
G8032配置模式
默认配置
无
使用说明
使用此命令关闭子环虚拟通道。配置后,g8032子环的R-APS报文不会在interconnection节点终结。
举例说明
如下示例,关闭虚拟通道
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 2 interface eth-0-3 major-ring-id 1
Switch(g8032-ring-2)# virtual-channel enable
Switch(g8032-ring-2)# virtual-channel disable
相关命令
show g8032
14.8.17mode
命令功能
使用此命令设置g8032 ring的回切模式。
使用该命令的no格式将g8032 ring的回切模式恢复到默认值。
命令语法
mode ( revertive | non-revertive )
参数 |
参数说明 |
参数取值 |
revertive |
回切模式 |
- |
non-revertive |
非回切模式 |
- |
命令模式
G8032配置模式
默认配置
回切模式
使用说明
无
举例说明
如下示例,改变g8032 ring的回切模式
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1 east-interface eth-0-1 west-interface eth-0-2
Switch(g8032-ring-1)# mode non-revertive
相关命令
show g8032
14.8.18raps-mel LEVEL-ID
命令功能
使用此命令设置R-APS报文level。
命令语法
raps-mel LEVEL-ID
no raps-mel
参数 |
参数说明 |
参数取值 |
LEVEL-ID |
维护域等级 |
- |
命令模式
G8032配置模式
默认配置
7
使用说明
无
举例说明
如下示例,显示如何配置R-APS的level
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# g8032 ring-id 1
Switch(g8032-ring-1)# ring-level 3
相关命令
show g8032
14.9UDLD命令
14.9.1udld enable
命令功能
使用此命令全局使能或者关闭UDLD功能。
命令语法
udld enable
no udld enable
命令模式
全局配置模式
默认配置
关闭
使用说明
无
举例说明
以下例子全局使能了UDLD功能
Switch# configure terminal
Switch(config)# udld enable
相关命令
show udld
14.9.2udld port
命令功能
使用此命令在指定接口上使能或者关闭UDLD功能。
命令语法
udld port ( aggressive | )
no udld port
参数 |
参数说明 |
参数取值 |
aggressive |
UDLD激进模式 |
- |
命令模式
端口配置模式
默认配置
关闭
使用说明
无
举例说明
以下例子在端口eth-0-9上使能了UDLD功能
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config)# udld port
相关命令
show udld
14.9.3udld message interval
命令功能
使用此命令设置UDLD消息间隔。使用no命令来恢复默认值。
命令语法
udld message interval INTERVAL
no udld message interval
参数 |
参数说明 |
参数取值 |
INTERVAL |
UDLD消息间隔(秒),范围是1~90 |
1-90 秒 |
命令模式
全局配置模式
默认配置
15秒
使用说明
无
举例说明
以下例子将UDLD消息间隔设置为5秒
Switch# configure terminal
Switch(config)# udld message interval 5
相关命令
show udld
14.9.4udld reset
命令功能
使用此命令重置被UDLD禁用的接口。
命令语法
udld reset
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下例子重置被UDLD禁用的接口
Switch# udld reset
相关命令
无
14.9.5show udld
命令功能
使用此命令显示接口的UDLD信息。
命令语法
show udld ( IFNAME | )
参数 |
参数说明 |
参数取值 |
IFNAME |
端口名 |
支持物理口 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下例子显示了端口eth-0-1的UDLD信息
Switch# show udld eth-0-1
Interface eth-0-1
---
UDLD mode : aggressive mode
Operational state : Bidirectional
Message interval : 15
Time out interval : 3
Neighbor 1
---
Device ID : 001e.0808.0360
Port ID : eth-0-2
Device Name : DUT2
Message Interval : 15
Timeout Interval : 3
Link status : Bidirectional
Expiration time : 40
相关命令
无
14.9.6show udld neighbors
命令功能
使用此命令显示UDLD邻居信息。
命令语法
show udld neighbors
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下例子显示了UDLD邻居的信息
Switch# show udld neighbor
Port Device Name Device ID Port ID Neighbor State
---- ----------- --------- ------- --------------
eth-0-9 DUT2 d4f2.489f.d100 eth-0-9 bidirectional
相关命令
无
14.9.7debug udld
命令功能
使用此命令使能UDLD调试信息。
命令语法
debug udld ( all | packet | events )
no debug udld ( all | packet | events )
参数 |
参数说明 |
参数取值 |
all |
使能全部调试信息 |
- |
packet |
使能报文调试信息 |
- |
events |
使能事件调试信息 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下例子使能UDLD的报文调试信息
Switch# debug udld packet
相关命令
无
14.9.8show debugging udld
命令功能
使用此命令显示UDLD调试状态。
命令语法
show debugging udld
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
以下例子显示了UDLD的调试功能状态
Switch# show debugging udld
相关命令
无
14.10ERPS命令
14.10.1erps
命令功能
使用此命令创建ERPS域。
使用此命令的no格式删除ERPS域。
命令语法
erps DOMAINID ( ERPS_NAME | )
no erps DOMAINID
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
ERPS_NAME |
ERPS域名 |
不超过15个字符的字符串 |
命令模式
全局配置模式
默认配置
无
使用说明
使用此命令创建或删除ERPS域.在配置ERPS之前必须先配置此命令。
ERPS域名是可选的,如果不指定,系统会根据域ID自动生成域名。例如“ERPS001”,其中001对应域ID1。
举例说明
这个例子讲述了如何创建名字为test11的ERPS域11
Switch# configure terminal
Switch(config)# erps 11 test11
相关命令
show erps list
14.10.2erps control vlan
命令功能
使用此命令指定ERPS主环或子环的控制VLAN。
使用此命令的no格式删除控制VLAN。
命令语法
erps DOMAINID ( primary | sub ) control vlan VLANID
no erps DOMAINID ( primary | sub ) control vlan
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
primary |
主环 |
- |
sub |
子环 |
- |
VLANID |
vlan id |
2-4094 |
命令模式
全局配置模式
默认配置
无
使用说明
ERPS协议用控制VLAN来传输协议包,不建议使用控制VLAN来传输数据报文,否则可能会影响协议报文的传输。
为了提高ERPS切换性能,建议将Control Vlan加入到Domain所保护的instance中。
举例说明
这个例子讲述了如何将ERPS域11的控制vlan设置为vlan 15
Switch# configure terminal
Switch(config)# vlan database
Switch(config-vlan)# vlan 15
Switch(config-vlan)# exit
Switch(config)# erps 11 primary control vlan 15
相关命令
show erps
14.10.3erps hellotime
命令功能
使用此命令设置ERPS的hello报文发送周期.
使用此命令的no格式,恢复默认的hello报文发送周期。
命令语法
erps DOMAINID hellotime HELLOTIME
no erps DOMAINID hellotime
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
HELLOTIME |
Hello 报文发送周期 |
1-150,单位是100毫秒 |
命令模式
全局配置模式
默认配置
默认的hellotime 是10(1秒),单位是100ms
使用说明
在同一个Ring里面必须设置相同的hellotime。
举例说明
下面例子讲述了如何设置ERPS11的hellotime时间
Switch# configure terminal
Switch(config)# erps 11 hellotime 20
相关命令
show erps
14.10.4erps failtime
命令功能
使用此命令将设置ERPS的超时周期。
使用此命令的no 形式恢复默认的超时周期。
命令语法
erps DOMAINID failtime FAILTIME
no erps DOMAINID failtime
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
FAILTIME |
Fail报文发送周期 |
3-450,单位是100毫秒 |
命令模式
全局配置模式
默认配置
默认的failtime是30(3秒),单位是100ms。
使用说明
在同一个Ring里面必须设置相同的failtime。
举例说明
下面例子讲述了如何设置ERPS11的failtime时间
Switch# configure terminal
Switch(config)# erps 11 failtime 60
相关命令
show erps
14.10.5erps mstp instance
命令功能
使用此命令将设置ERPS保护的instance。
使用此命令的no格式删除保护的instance。
命令语法
erps DOMAINID mstp instance INSTANCE_ID
no erps DOMAINID mstp instanc
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
INSTANCE_ID |
MSTP 保护实例 |
1-4094 |
命令模式
全局配置模式
默认配置
无
使用说明
默认不保护任何instance
举例说明
下面例子讲述了如何设置ERPS 11 保护的instace为1
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# erps 11 mstp instance 1
相关命令
show erps
14.10.6erps ring level
命令功能
使用此命令创建ERPS环。
使用此命令的no形式删除ERPS环。
命令语法
erps DOMAINID ring RINGID level ( primary | sub )
no erps DOMAINID ring RINGID
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
primary |
主环 |
- |
sub |
子环 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
ERPS域中的环又分为主环和子环
举例说明
下面例子讲述了如何创建ERPS域的环
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#erps 11 ring 1 level sub
相关命令
show erps
14.10.7erps ring mode
命令功能
使用此命令设置ERPS的节点模式。
使用此命令的no格式恢复默认的模式。
命令语法
erps DOMAINID ring RINGID mode ( master | transit )
no erps DOMAINID ring RINGID mode
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
master |
主节点 |
- |
transit |
传输节点 |
- |
命令模式
全局配置模式
默认配置
默认情况下没有设置节点的模式。
使用说明
主节点用于ERPS协议计算,发送协议hello报文
传输节点被用来传输协议包和链路事件给邻居交换机
举例说明
下面例子讲述如何创建传输节点
Switch# configure terminal
Switch(config)# erps 11 ring 1 mode transit
相关命令
show erps
14.10.8erps ring primary interface
命令功能
使用此命令设置ERPS 环中的主接口。
使用此命令的no格式删除主接口。
命令语法
erps DOMAINID ring RINGID primary interface ( IFPHYSICAL | IFAGG )
no erps DOMAINID ring RINGID primary interface
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
IFPHYSICAL |
物理口名称 |
- |
IFAGG |
AGG口名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
主节点中链路正常时副接口会被关闭,当某条链路出问题时才会打开副接口。传输节点中主接口和副接口的功能相同没有区别。
举例说明
下面例子讲述了如何设置ERPS11 ring1的主接口是eth-0-9
Switch# configure terminal
Switch(config)#interface eth-0-9
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan add 15
Switch(config-if)#exit
Switch(config)#erps 11 ring 1 primary interface eth-0-9
相关命令
show erps
14.10.9erps ring secondary interface
命令功能
使用此命令设置ERPS 环中的副接口。
使用此命令的no格式删除副接口。
命令语法
erps DOMAINID ring RINGID secondary interface ( IFPHYSICAL | IFAGG )
no erps DOMAINID ring RINGID secondary interface
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
IFPHYSICAL |
物理口名称 |
- |
IFAGG |
AGG口名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
主节点中链路正常时副接口会被关闭,当某条链路出问题时才会打开副接口。传输节点中主接口和副接口的功能相同没有区别。
举例说明
下面例子讲述了如何设置ERPS11ring1的主接口是eth-0-9
Switch# configure terminal
Switch(config)#interface eth-0-9
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan add 15
Switch(config-if)#exit
Switch(config)#erps 11 ring 1 secondary interface eth-0-9
相关命令
show erps
14.10.10erps ring interface
命令功能
使用此命令创建ERPS环的接口。
使用此命令的no格式删除ERPS环的接口。
命令语法
erps DOMAINID ring DOMAINID interface ( IFPHYSICAL | IFAGG )
no erps DOMAINID ring DOMAINID interface
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
IFPHYSICAL |
物理口名称 |
- |
IFAGG |
AGG口名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面例子讲述了如何设置eth-0-9为ERPS 11 ring 1的接口
Switch# configure terminal
Switch(config)#interface eth-0-9
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan add 15
Switch(config-if)#exit
Switch(config)#erps 11 ring 1 interface eth-0-9
相关命令
show erps
14.10.11erps ring edge-mode
命令功能
使用命令设置ERPS 环的边缘节点模式。
命令语法
erps DOMAINID ring DOMAINID edge-mode ( edge | assistant-edge )
no erps DOMAINID ring DOMAINID mode
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
edge |
边缘节点 |
- |
assistant-edge |
辅助边缘节点 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
边缘节点和辅助边缘节点都是特殊的传输节点。
注意一旦节点设置edge/assistant-edge 模式, 它将会被设置成特殊的传输节点。
举例说明
下面例子讲述了如何创建ERPS环的边缘节点模式
Switch# configure terminal
Switch(config)# erps 11 ring 1 edge-mode edge
相关命令
show erps
14.10.12erps ring edge interface
命令功能
使用名字指定ERPS环的边缘接口。
命令语法
erps DOMAINID ring DOMAINID edge interface ( IFPHYSICAL | IFAGG )
no erps DOMAINID ring DOMAINID edge interface
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
IFPHYSICAL |
物理口名称 |
- |
IFAGG |
AGG口名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
边缘节点(辅助边缘节点)包含2个端口,一个是边缘端口、另外一个是公共端口。公共端口是既属于主环也属于子环,而边缘端口只属于子环。
此命令只在边缘节点/辅助边缘节点上有效。
举例说明
下面例子讲述了如何创建ERPS环的边缘节点端口
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan add 15
Switch(config-if)# exit
Switch(config)# erps 11 ring 1 edge interface eth-0-9
相关命令
show erps
14.10.13erps ring common interface
命令功能
使用名字指定ERPS环的公共接口。
命令语法
erps DOMAINID ring RINGID common interface ( IFPHYSICAL | IFAGG )
no erps DOMAINID ring RINGID common interface
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
IFPHYSICAL |
物理口名称 |
- |
IFAGG |
AGG口名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
主环和子环的公共接口应该配置为公共端口,子环中的另一个端口则配置为公共接口。
举例说明
下面例子讲述了如何设置eth-0-9为ERPS环的边缘端口
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan add 15
Switch(config-if)# exit
Switch(config)# erps 11 ring 1 common interface eth-0-9
相关命令
show erps
14.10.14erps ring srpt
命令功能
使用此命令开启或关闭 srpt功能.srpt报文是边缘端口和辅助边缘端口在主环上传输的一种报文。
命令语法
erps DOMAINID ring RINGID srpt ( enable | disable )
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
enable |
启用SRPT |
- |
disable |
关闭SRPT |
- |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面例子讲述了如何在端口上启用srpt报文
Switch# configure terminal
Switch(config)# erps 11 ring 1 srpt enable
相关命令
show erps
14.10.15erps ring enable
命令功能
使用此命令启用ERPS环功能。
命令语法
erps DOMAINID ring RINGID enable
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面例子讲述如何启用ERPS 环
Switch# configure terminal
Switch(config)#erps 11 ring 1 enable
相关命令
show erps
14.10.16erps ring disable
命令功能
使用此命令启用或关闭ERPS环功能。
命令语法
erps DOMAINID ring RINGID disable
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
RINGID |
ERPS环ID |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面例子讲述如何关闭ERPS 环
Switch# configure terminal
Switch(config)#erps 11 ring 1 disable
相关命令
show erps
14.10.17erps enable
命令功能
使用此命令启用ERPS域
命令语法
erps DOMAINID enable
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
启用时会启用域下所有的ERPS环。
举例说明
下面例子讲述了如何启用ERPS域
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#erps 11 enable
相关命令
show erps
14.10.18erps disable
命令功能
使用此命令关闭ERPS域。
命令语法
erps DOMAINID disable
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
关闭时会关闭域下所有的ERPS环。
举例说明
下面例子讲述了如何禁用ERPS域
Switch# configure terminal
Switch(config)# erps 11 disable
相关命令
show erps
14.10.19erps mode rrpp
命令功能
该命令用于兼容RRPP协议。
命令语法
erps mode rrpp
no erps mode rrpp
命令模式
全局配置模式
默认配置
无
使用说明
使用此命令后,ERPS会兼容RRPP
举例说明
这个例子讲述了如何设置兼容RRPP
Switch# configure terminal
Switch(config)# erps mode rrpp
相关命令
无
14.10.20show erps
命令功能
使用此命令显示ERPS的配置。
命令语法
show erps DOMAINID
参数 |
参数说明 |
参数取值 |
DOMAINID |
ERPS域ID |
1-255 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面例子讲述了如何显示ERPS的配置
Switch# show erps 1
ERPS domain ID: 1
ERPS domain name: ERPS001
ERPS domain mode: normal
ERPS domain primary control VLAN ID: 0
ERPS domain sub control VLAN ID: 0
ERPS domain hello timer interval: 1 second(s)
ERPS domain fail timer interval: 3 second(s)
相关命令
无
14.10.21show erps list
命令功能
使用此命令显示ERPS列表。
命令语法
show erps list
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面例子讲述了如何显示ERPS列表
Switch# show erps list
ERPS Domain List
ID Name
==============================
11 ERPS0011
相关命令
无
14.10.22clear erps counters
命令功能
使用此命令清除ERPS domain或domain 内指定环的统计信息
命令语法
clear erps counters ( all | ( domain DOMAINID ( | ring RINGID ) ) )
参数 |
参数说明 |
参数取值 |
all |
所有ERPS域 |
- |
domain DOMAINID |
ERPS域ID |
1-255 |
ring RINGID |
ERPS环ID |
1-255 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面例子讲述了如何清除所有ERPS domain的统计信息
Switch# clear erps counters all
相关命令
无
14.10.23debug erps
命令功能
使用此命令打开ERPS的debug调试信息。
命令语法
debug erps ( all | dump | events )
no debug erps ( all | dump | events )
参数 |
参数说明 |
参数取值 |
all |
所有debug开关 |
- |
dump |
dump debug 开关 |
- |
events |
事件信息debug开关 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面例子讲述了如何打开ERPS所有调试信息
Switch# debug erps all
相关命令
无
14.11Smart-Link命令
14.11.1smart-link group
命令功能
此命令用来创建一个Smart-link组。
使用此命令的no形式删除smart-link组。
命令语法
smart-link group GROUP-ID
no smart-link group ( GROUP-ID | all )
参数 |
参数说明 |
参数取值 |
GROUP-ID |
smart-link组ID |
1-16 |
all |
所有的组 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
最多16个组可以使用
举例说明
创建一个Smart-link组
Switch# configure terminal
Switch(config)# smart-link group 1
相关命令
show smart-link group
14.11.2smart-link relay enable
命令功能
使用此命令允许设备转发Smart-link更新报文。
使用此命令的no格式关闭转发功能。
命令语法
smart-link relay enable
no smart-link relay enable
命令模式
全局配置模式
默认配置
开启
使用说明
默认情况下设备会在对应vlan中广播该报文。使用no命令关闭该转发功能。
举例说明
使能smart link的relay功能
Switch# configure terminal
Switch(config)# smart-link relay enable
关闭smart link的relay功能
Switch# configure terminal
Switch(config)# no smart-link relay enable
相关命令
无
14.11.3interface
命令功能
使用此命令为smart link组设置主端口或副端口。no命令删除主端口或副端口。
命令语法
interface ( IFPHYSICAL | IFAGG ) ( master | slave )
no interface ( master | slave | all )
参数 |
参数说明 |
参数取值 |
IFPHYSICAL |
物理接口名 |
- |
IFAGG |
汇聚链路接口 |
- |
master |
主接口 |
- |
slave |
副接口 |
- |
命令模式
Smart-link配置模式
默认配置
默认不指定任何端口
使用说明
每个Multi-link组都至少有两个端口。端口类型可以是物理接口或agg接口。
注意:端口必须关闭STP后才可以加入multi link组。
举例说明
创建一个Smart-link组
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# spanning-tree port disable
Switch(config-if)# exit
Switch(config)# interface eth-0-13
Switch(config-if)# spanning-tree port disable
Switch(config-if)# exit
Switch(config)# smart-link group 1
Switch(config-smlk-group)# interface eth-0-9 master
Switch(config-smlk-group)# interface eth-0-13 slave
Switch(config-smlk-group)# end
查看刚刚创建的smart link组
Switch# show smart-link group 1
Smart-link group 1 information:
The smart-link group was disabled.
============================================================
Auto-restore:
state time count Last-time
disabled 60 0 N/A
============================================================
Protected instance:
Load balance instance:
============================================================
INTERFACE:
Role Member DownCount Last-Down-Time FlushCount Last-Flush-Time
MASTER eth-0-9 0 N/A 0 N/A
SLAVE eth-0-13 0 N/A 0 N/A
相关命令
show smart-link group
14.11.4protected mstp instance
命令功能
此命令设置Smart-link组保护的MSTP实例。
命令语法
protected mstp instance INSTANCE-ID
no protected mstp instance ( all | INSTANCE-ID )
参数 |
参数说明 |
参数取值 |
INSTANCE-ID |
MSTP实例ID。范围是0~4094 |
0-4094 |
all |
所用的MSTP实例 |
- |
命令模式
Smart-link配置模式
默认配置
默认不保护任何组
使用说明
Multi-link只保护指定的MSTP instance。如果vlan没有加入任何MSTP instance则会默认加入instance 0。
注意:加入MSTP实例的vlan被删除了,那么在Multi-link组内被自动删除。
举例说明
创建Smart-link组内的MSTP实例
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# protected mstp instance 0
Switch(config-smlk-group)# protected mstp instance 10
Switch(config-smlk-group)# protected mstp instance 100
Switch(config-smlk-group)# end
Switch# show smart-link group 1
Smart-link group 1 information:
The smart-link group was disabled.
============================================================
Auto-restore:
state time count Last-time
disabled 60 0 N/A
============================================================
Protected instance: 0 100 10
Load balance instance:
============================================================
INTERFACE:
Role Member DownCount Last-Down-Time FlushCount Last-Flush-Time
MASTER eth-0-9 0 N/A 0 N/A
SLAVE eth-0-13 0 N/A 0 N/A
相关命令
show smart-link group
14.11.5load-balance instance
命令功能
此命令被Smart-link组用来实现负载均衡。
使用此命令的no格式删除负载均衡的实例。
命令语法
load-balance instance INSTANCE-ID
no load-balance instance ( all | INSTANCE-ID )
参数 |
参数说明 |
参数取值 |
INSTANCE-ID |
MSTP实例ID。范围是0~4094 |
0-4094 |
all |
所用的MSTP实例 |
- |
命令模式
Smart-link配置模式
默认配置
未启用
使用说明
负载均衡的实例的流量将走Multi-link组的对应优先级的端口。
举例说明
设置实例10为负载均衡实例
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# load-balance instance 10
相关命令
show smart-link group
14.11.6restore time
命令功能
此命令设置Smart-link组的自动切换时间。
使用此命令的no格式恢复默认的切换时间。
命令语法
restore time RESTORE-TIME
no restore time
参数 |
参数说明 |
参数取值 |
RESTORE-TIME |
链路自动切换时间 |
30-1200秒 |
命令模式
Smart-link配置模式
默认配置
默认恢复时间60秒
使用说明
当主接口恢复,链接不会立即切换,需要等待一段时间。这段时间就是切换时间。
举例说明
设置Smart-link组的切换时间为30秒
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# restore time 30
相关命令
show smart-link group
14.11.7restore enable
命令功能
此命令被用来启用切换时间
命令语法
restore enable
no restore enable
命令模式
Smart-link配置模式
默认配置
该功能默认不启用
使用说明
当高优先级接口出现故障时,链接将切换到次高优先级端口。如果高优先级接口恢复,链接不会被切换以保持流量稳定。如果启用恢复功能,链接将被切换。
注:如果配置了负载均衡实例,此功能强烈建议打开。
举例说明
在Smart-link组内启用恢复时间功能
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# restore enable
相关命令
show smart-link group
14.11.8flush send
命令功能
此命令配置是否发送smart link更新报文。
命令语法
flush send control-vlan VLAN-ID ( password simple PASSWORD | )
no flush send
参数 |
参数说明 |
参数取值 |
VLAN-ID |
允许发送泛洪报文的VLAN号。 |
1-4094 |
PASSWORD |
更新报文的密码 |
不超过15个字符的字符串 |
命令模式
Smart-link配置模式
默认配置
默认不发送
使用说明
当主(转发)链路出现故障,流量切换到副端口时发送flush fdb报文通知上游更新FDB。
举例说明
设置Smart-link的发送更新报文的密码
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# flush send control-vlan 4 password simple test
相关命令
show smart-link group
smart-link flush receive
14.11.9group enable
命令功能
使用此命令关闭或开启组。
命令语法
group enable
no group enable
命令模式
Smart-link配置模式
默认配置
无
使用说明
无
举例说明
启用Smart-link组
Switch# configure terminal
Switch(config)# smart-link group 1
Switch(config-smlk-group)# group enable
相关命令
show smart-link group
14.11.10smart-link flush receive
命令功能
此命令被用作是否接收更新报文.
命令语法
smart-link flush receive control-vlan VLAN_LIST ( password simple PASSWORD | ) ( vpls-notify | )
no smart-link flush receive ( control-vlan VLAN_LIST | )
参数 |
参数说明 |
参数取值 |
VLAN_LIST |
允许接收泛洪报文的VLAN号。 |
VLAN列表举例: 2-5,7,9-11, 范围1-4094 |
PASSWORD |
更新报文的密码 |
不超过15个字符的字符串 |
vpls-notify |
flush报文用于vpls |
- |
命令模式
端口配置模式
默认配置
默认不接收
使用说明
收到的更新包应该与接收设备有相同的VLAN ID和密码。否则,数据包将被丢弃。
举例说明
设置Smart-link组的接收更新报文的密码为test
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# smart-link flush receive control-vlan 4 password simple test
Switch(config-if)# end
Switch# show smart-link
Relay smart-link flush packet is enabled
Smart-link received flush packet number:0
Smart-link processed flush packet number:0
Smart link Group Number is 1.
Group-ID State MASTER SLAVE
1 disabled N/A N/A
相关命令
flush send
show smart-link
14.11.11smart-link tcn enable
命令功能
此命令用来使能Smart-link的tcn功能。
命令语法
smart-link tcn enable
no smart-link tcn enable
命令模式
全局配置模式
默认配置
未使能
使用说明
无
举例说明
Switch# configure terminal
Switch(config)# no smart-link tcn enable
使能smart link的tcn功能
Switch# configure terminal
Switch(config)# smart-link tcn enable
相关命令
show smart-link
14.11.12smart-link tcn query-count
命令功能
此命令用来设置Smart-link的tcn 发送的query报文的次数。
命令语法
smart-link tcn query-count QUERY-COUNT
no smart-link tcn query-count
参数 |
参数说明 |
参数取值 |
QUERY-COUNT |
Tcn发送的igmp query报文次数。 |
1-10 |
命令模式
全局配置模式
默认配置
2
使用说明
无
举例说明
设置smart link的tcn功能发送的query报文的次数为5
Switch# configure terminal
Switch(config)# smart-link tcn query-count 5
相关命令
show smart-link
14.11.13smart-link tcn query-interval
命令功能
此命令用来设置Smart-link的tcn 发送的query报文的间隔时间。
命令语法
smart-link tcn query-interval QUERY-INTERVAL
no smart-link tcn query-interval
参数 |
参数说明 |
参数取值 |
QUERY-INTERVAL |
Tcn发送的igmp query报文间隔时间。 |
1-255 秒 |
命令模式
全局配置模式
默认配置
10
使用说明
无
举例说明
设置smart link的tcn功能发送的query报文的间隔时间为50
Switch# configure terminal
Switch(config)# smart-link tcn query-interval 50
Switch# configure terminal
Switch(config)# no smart-link tcn query-interval
相关命令
show smart-link
14.11.14show smart-link
命令功能
使用此命令显示Smart-link的信息。
命令语法
show smart-link
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示Smart-link组的概要信息。
举例说明
Switch# show smart-link
Relay smart-link flush packet is enabled
Smart-link received flush packet number:7
Smart-link processed flush packet number:0
Smart link Group Number is 1.
Group-ID State MASTER SLAVE
1 enabled eth-0-1 eth-0-2
相关命令
无
14.11.15show smart-link group
命令功能
使用此命令显示Smart-link组的信息.
命令语法
show smart-link group ( GROUP-ID | )
参数 |
参数说明 |
参数取值 |
GROUP-ID |
Smart link组ID |
1-16 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示指定Smart-link组或者全部Smart-link组的详细信息。
举例说明
Switch# show smart-link group 1
相关命令
无
14.11.16clear smart-link statistic
命令功能
使用此命令清除Smart-link的统计。
命令语法
clear smart-link statistic
命令模式
特权模式
默认配置
无
使用说明
用作清除Smart-link的统计
举例说明
Switch# clear smart-link statistic
相关命令
无
14.11.17debug smart-link
命令功能
使用此命令打开smart link的debug信息。
命令语法
debug smart-link ( all | flush | instance | interface | restore )
参数 |
参数说明 |
参数取值 |
all |
打开所有smart link的日志 |
- |
flush |
打开所有smart link的FDB更新信息日志 |
- |
instance |
打开所有smart link的实例信息日志 |
- |
interface |
打开所有smart link的端口信息日志 |
- |
restore |
打开所有smart link的链路恢复信息日志 |
- |
mib |
打开所有smart-link 的snmp mib信息日志 |
- |
trap |
打开所有smart-link 的snmp trap信息日志 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
Switch# debug smart-link all
相关命令
无
14.12Multi-Link命令
14.12.1multi-link group
命令功能
此命令用来创建一个Multi-link组。
命令语法
multi-link group GROUP-ID
no multi-link group ( GROUP-ID | all )
参数 |
参数说明 |
参数取值 |
GROUP-ID |
Multi-link组ID |
1-16 |
all |
所有的组 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
最多16个组可以使用
举例说明
创建一个Multi-link组.
Switch# configure terminal
Switch(config)# multi-link group 1
相关命令
show multi-link group
14.12.2multi-link relay enable
命令功能
使用此命令允许设备转发Multi-link更新报文。
命令语法
multi-link relay enable
no multi-link relay enable
命令模式
全局配置模式
默认配置
开启
使用说明
默认情况下设备会在对应vlan中广播该报文。使用no命令关闭该转发功能。
举例说明
使能multi link的relay功能
Switch# configure terminal
Switch(config)# multi-link relay enable
关闭multi link的relay功能
Switch# configure terminal
Switch(config)# no multi-link relay enable
相关命令
无
14.12.3interface
命令功能
使用此命令为multi link组设置主端口或副端口。no命令删除主端口或副端口。
命令语法
interface ( IFPHYSICAL | IFAGG ) priority <1-4>
no interface ( priority <1-4> | all )
参数 |
参数说明 |
参数取值 |
IFPHYSICAL |
物理接口,例如eth-0-1 |
- |
IFAGG |
汇聚链路接口 |
- |
<1-4> |
接口优先级(越小优先级越高) |
1-4 |
all |
所有接口 |
- |
命令模式
Multi-link配置模式
默认配置
默认不指定任何端口
使用说明
每个Multi-link组都至少有两个端口。端口类型可以是物理接口或agg接口。
注意:端口必须关闭STP后才可以加入multi link组。
举例说明
创建一个Multi-link组
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# spanning-tree port disable
Switch(config-if)# exit
Switch(config)# interface eth-0-13
Switch(config-if)# spanning-tree port disable
Switch(config-if)# exit
Switch(config)# multi-link group 1
Switch(config-multilk-group)# interface eth-0-9 master
Switch(config-multilk-group)# interface eth-0-13 slave
Switch(config-multilk-group)# end
Switch# show multi-link group 1
Multi-link group 1 information:
The multi-link group was disabled.
============================================================
Auto-restore:
state time count Last-time
disabled 60 0 N/A
============================================================
Protected instance:
Load balance instance:
============================================================
INTERFACE:
Role Member DownCount Last-Down-Time FlushCount Last-Flush-Time
MASTER eth-0-9 0 N/A 0 N/A
SLAVE eth-0-13 0 N/A 0 N/A
相关命令
show multi-link group
14.12.4protected mstp instance
命令功能
此命令设置Multi-link组保护的MSTP实例。
命令语法
protected mstp instance INSTANCE-ID
no protected mstp instance ( all | INSTANCE-ID )
参数 |
参数说明 |
参数取值 |
INSTANCE-ID |
MSTP实例ID。范围是0~4094 |
0-4094 |
all |
所用的MSTP实例 |
- |
命令模式
Multi-link配置模式
默认配置
默认不保护任何组
使用说明
Multi-link只保护指定的MSTP instance。如果vlan没有加入任何MSTP instance则会默认加入instance 0。
注意:加入MSTP实例的vlan被删除了,那么在Multi-link组内被自动删除。
举例说明
创建Multi-link组内的MSTP实例
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# protected mstp instance 0
Switch(config-multilk-group)# protected mstp instance 10
Switch(config-multilk-group)# protected mstp instance 100
Switch(config-multilk-group)# end
Switch# show multi-link group 1
Multi-link group 1 information:
The multi-link group was enabled.
============================================================
Auto-restore:
state time count Last-time
disabled 60 0 N/A
============================================================
Protected instance: 0 10 100
Load balance instance:
============================================================
INTERFACE:
Role Member DownCount Last-Down-Time FlushCount Last-Flush-Time
PRI1 eth-0-9 0 N/A 0 N/A
PRI2 eth-0-10 0 N/A 0 N/A
PRI3 N/A 0 N/A 0 N/A
PRI4 eth-0-12 0 N/A 0 N/A
============================================================
Instance states in the member interfaces:
A - ACTIVE , B -BLOCK , D-The interface is link-down
Map-instance-ID P1(eth-0-9 ) P2(eth-0-10) P3(N/A ) P4(eth-0-12)
0 A B D B
10 A B D B
100 A B D B
相关命令
show multi-link group
14.12.5load-balance instance
命令功能
此命令被Multi-link组用来实现负载均衡。
命令语法
load-balance instance INSTANCE-ID priority <2-4>
no load-balance instance ( all | INSTANCE-ID )
参数 |
参数说明 |
参数取值 |
INSTANCE-ID |
MSTP实例ID。范围是0~4094 |
0-4094 |
<2-4> |
负载均衡对应的端口优先级 |
- |
all |
所用的MSTP实例 |
- |
命令模式
Multi-link配置模式
默认配置
未启用
使用说明
负载均衡的实例的流量将走Multi-link组的对应优先级的端口。
举例说明
设置实例10为负载均衡.
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# load-balance instance 10 priority 2
相关命令
show multi-link group
14.12.6restore time
命令功能
此命令设置Multi-link组的自动切换时间。
命令语法
restore time RESTORE-TIME
no restore time
参数 |
参数说明 |
参数取值 |
RESTORE-TIME |
链路自动切换时间(秒) |
30-1200秒 |
命令模式
Multi-link配置模式
默认配置
默认恢复时间60秒
使用说明
当主接口恢复,链接不会立即切换,需要等待一段时间。这段时间就是切换时间。
举例说明
设置Multi-link组的切换时间为30秒
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# restore time 30
相关命令
show multi-link group
14.12.7restore enable
命令功能
此命令被用来启用切换时间
命令语法
restore enable
no restore enable
命令模式
Multi-link配置模式
默认配置
该功能默认不启用
使用说明
当高优先级接口出现故障时,链接将切换到次高优先级端口。如果高优先级接口恢复,链接不会被切换以保持流量稳定。如果启用恢复功能,链接将被切换。
注:如果配置了负载均衡实例,此功能强烈建议打开。
举例说明
在Multi-link组内启用恢复时间功能
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# restore enable
相关命令
show multi-link group
14.12.8flush send
命令功能
此命令配置是否发送multi-link更新报文。
命令语法
flush send control-vlan VLAN-ID password simple PASSWORD
no flush send
参数 |
参数说明 |
参数取值 |
VLAN-ID |
允许发送泛洪报文的VLAN号。 |
1-4094 |
PASSWORD |
更新报文的密码 |
不超过15个字符的字符串 |
命令模式
Multi-link配置模式
默认配置
默认不发送
使用说明
当主(转发)链路出现故障,流量切换到副端口时发送flush fdb报文通知上游更新FDB。
举例说明
设置Multi-link的发送更新报文的密码
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# flush send control-vlan 4 password simple test
相关命令
show multi-link group
multi-link flush receive
14.12.9group enable
命令功能
使用此命令关闭或开启组。
命令语法
group enable
no group enable
命令模式
Multi-link配置模式
默认配置
无
使用说明
无
举例说明
启用Multi-link组
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# group enable
相关命令
show multi-link group
14.12.10multi-link flush receive
命令功能
此命令被用作是否接收更新报文.
命令语法
multi-link flush receive control-vlan VLAN-ID password simple PASSWORD
no multi-link flush receive
参数 |
参数说明 |
参数取值 |
VLAN-ID |
允许接收泛洪报文的VLAN号。 |
1-4094 |
PASSWORD |
更新报文的密码 |
不超过15个字符的字符串 |
命令模式
端口配置模式
默认配置
默认不接收
使用说明
收到的更新包应该与接收设备有相同的VLAN ID和密码。否则,数据包将被丢弃。
举例说明
设置Multi-link组的接收更新报文的密码为test
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# multi-link flush receive control-vlan 4 password simple test
Switch(config-if)# end
Switch# show multi-link
Relay multi-link flush packet is enabled
Multi-link received flush packet number:0
Multi-link processed flush packet number:0
Multi-link tcn is enabled
Multi-link tcn query count :2
Multi-link tcn query interval :3
Multi-link Group Number is 1.
Group-ID State Pri-1 Pri-2 Pri-3 Pri-4
1 enabled eth-0-9 eth-0-10 N/A eth-0-12
相关命令
flush send
show multi-link
14.12.11multi-link tcn enable
命令功能
此命令用来使能Multi-link的tcn功能。
命令语法
multi-link tcn enable
no multi-link tcn enable
命令模式
全局配置模式
默认配置
未使能
使用说明
无
举例说明
使能multi-link的tcn功能
Switch# configure terminal
Switch(config)# multi-link tcn enable
关闭multi-link的tcn功能
Switch# configure terminal
Switch(config)# no multi-link tcn enable
相关命令
show multi-link
14.12.12multi-link tcn query-count
命令功能
此命令用来设置Multi-link的tcn 发送的query报文的次数。
命令语法
multi-link tcn query-count QUERY-COUNT
no multi-link tcn query-count
参数 |
参数说明 |
参数取值 |
QUERY-COUNT |
Tcn发送的query报文次数。 |
1-10 |
命令模式
全局配置模式
默认配置
2
使用说明
无
举例说明
设置multi-link的tcn功能发送的query报文的次数为5
Switch# configure terminal
Switch(config)# multi-link tcn query-count 5
相关命令
show multi-link
14.12.13multi-link tcn query-interval
命令功能
此命令用来设置Multi-link的tcn 发送的query报文的间隔时间。
命令语法
multi-link tcn query-interval QUERY-INTERVAL
no multi-link tcn query-interval
参数 |
参数说明 |
参数取值 |
QUERY-INTERVAL |
Tcn发送的query报文间隔时间。 |
1-255 秒 |
命令模式
全局配置模式
默认配置
10
使用说明
无
举例说明
设置multi-link的tcn功能发送的query报文的间隔时间为50
Switch# configure terminal
Switch(config)# multi-link tcn query-interval 50
恢复默认的query报文时间间隔
Switch# configure terminal
Switch(config)# no multi-link tcn query-interval
相关命令
show multi-link
14.12.14show multi-link
命令功能
使用此命令显示Multi-link的信息。
命令语法
show multi-link
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示Multi-link组的概要信息。
举例说明
Switch# show multi-link
Relay multi-link flush packet is enabled
Multi-link received flush packet number:0
Multi-link processed flush packet number:0
Multi-link tcn is enabled
Multi-link tcn query count :2
Multi-link tcn query interval :3
Multi-link Group Number is 1.
Group-ID State Pri-1 Pri-2 Pri-3 Pri-4
1 enabled eth-0-9 eth-0-10 N/A eth-0-12
相关命令
无
14.12.15show multi-link group
命令功能
使用此命令显示Multi-link组的信息.
命令语法
show multi-link group ( GROUP-ID | )
参数 |
参数说明 |
参数取值 |
GROUP-ID |
Multi-link组ID |
1-16 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示指定Multi-link组或者全部Multi-link组的详细信息。
举例说明
Switch# show multi-link group 1
相关命令
无
14.12.16clear multi-link statistic
命令功能
使用此命令清除Multi-link的统计。
命令语法
clear multi-link statistic
命令模式
特权模式
默认配置
无
使用说明
用作清除Multi-link的统计
举例说明
Switch# clear multi-link statistic
相关命令
无
14.12.17debug multi-link
命令功能
使用此命令打开multi-link的debug信息。
命令语法
debug multi-link ( all | flush | instance | interface | restore )
参数 |
参数说明 |
参数取值 |
all |
打开所有multi-link的日志 |
- |
flush |
打开所有multi-link的FDB更新信息日志 |
- |
instance |
打开所有multi-link的实例信息日志 |
- |
interface |
打开所有multi-link的端口信息日志 |
- |
restore |
打开所有multi-link的链路恢复信息日志 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
Switch# debug multi-link all
相关命令
无
14.12.18multilink-enhance interface
命令功能
使用此命令配置发送enhance 增强报文的接口。
命令语法
multilink-enhance interface ( IFPHYSICAL | IFAGG )
no multilink-enhance interface
参数 |
参数说明 |
参数取值 |
IFPHYSICAL |
物理接口,例如eth-0-1 |
- |
IFAGG |
汇聚链路接口 |
- |
命令模式
Multi-link配置模式
默认配置
无
使用说明
配置的发送增强报文的接口一般为multilink 组外接口,在配置multilink 增强的发送接口时,需要配置flush send的control vlan 和password。
举例说明
启用Multi-link 增强功能,启用接口为eth-0-1
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# multilink-enhance interface eth-0-1
相关命令
show multi-link group
14.12.19multilink-enhance receive
命令功能
使用此命令配置接受multilink 增强报文的接口。
命令语法
multilink-enhance receive control-vlan VLAN-ID password simple PASSWORD interface ( IFPHYSICAL | IFAGG )
no multilink-enhance receive interface ( IFPHYSICAL | IFAGG )
参数 |
参数说明 |
参数取值 |
control-vlan VLAN-ID |
Multi-link控制vlan的ID |
1-4094 |
password simple PASSWORD |
密码 |
不超过15个字符的字符串 |
IFPHYSICAL |
物理接口,例如eth-0-1 |
- |
IFAGG |
汇聚链路接口 |
- |
命令模式
Multi-link配置模式
默认配置
无
使用说明
配置multilink group中接受增强报文的接口,该接口必须为multilink group 优先级最低成员且 已配。该接口不允许配置负载均衡。当配置增强接受接口,就允许往multilink组里面添加优先级更低的成员。
举例说明
启用Multi-link 接受增强报文的接口
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# multilink-enhance receive control-vlan 10 password b interface eth-0-2
相关命令
show multi-link group
14.12.20multilink-enhance send-interval
命令功能
使用此命令配置发送增强报文的间隔时间。
命令语法
multilink-enhance send-interval <1-255>
no multilink-enhance send-interval
参数 |
参数说明 |
参数取值 |
<1-255> |
发送增强报文的间隔时间 |
1-255 |
命令模式
Multi-link配置模式
默认配置
10s
使用说明
无。
举例说明
配置multilk 增强报文的发送时间间隔为20s
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# multilink-enhance send-interval 20
相关命令
show multi-link group
14.12.21multilink-enhance timeout
命令功能
使用此命令配置检测是否持续收到增强报文的时间间隔。
命令语法
multilink-enhance timeout <1-255>
no multilink-enhance timeout
参数 |
参数说明 |
参数取值 |
<1-255> |
持续收到增强报文的时间间隔 |
1-255 |
命令模式
Multi-link配置模式
默认配置
10s
使用说明
配置增强报文接受的超时时间,若在规定的时间内没有收到,则对应的multilink接口恢复到原样。
举例说明
配置multilk 增强报文的接受超时时间间隔为20s
Switch# configure terminal
Switch(config)# multi-link group 1
Switch(config-multilk-group)# multilink-enhance timeout 20
相关命令
show multi-link group
14.13Monitor Link命令
14.13.1monitor-link group
命令功能
该命令用于创建monitor link组。
命令语法
monitor link group GROUP-ID
no monitor link group GROUP-ID
参数 |
参数说明 |
参数取值 |
GROUP-ID |
Monitor link组编号 |
1-16 |
命令模式
全局配置模式
默认配置
默认没有任何组创建
使用说明
该命令用于创建monitor link 组。组编号范围是1~16。
举例说明
如何创建一个组
Switch# configure terminal
Switch(config)# monitor-link group 1
相关命令
no monitor-link group
14.13.2monitor-link uplink interface
命令功能
该命令为monitor link 组创建上联端口。
命令语法
monitor-link uplink interface ( IFPHYSICAL | IFAGG )
no monitor-link uplink interface ( IFPHYSICAL | IFAGG )
参数 |
参数说明 |
参数取值 |
IFPHYSICAL |
物理端口名称 |
- |
IFAGG |
AGG端口名称 |
- |
命令模式
Monitor-Link配置模式
默认配置
默认不指定端口
使用说明
各类端口中只有物理端口和AGG端口才可以作为monitor link的上联端口
举例说明
为monitor link组添加上联端口eth-0-1
Switch# configure terminal
Switch(config)# monitor-link group 1
Switch(config-mtlk-group)# monitor-link uplink interface eth-0-1
相关命令
show monitor-link group
14.13.3monitor-link uplink smart-link group
命令功能
该命令将一个smart link组加入到monitor link组并作为上联端口。
命令语法
monitor-link uplink smart-link group GROUP-ID
no monitor-link uplink smart-link group GROUP-ID
参数 |
参数说明 |
参数取值 |
GROUP-ID |
Smart link组编号 |
1-16 |
命令模式
Monitor-Link配置模式
默认配置
不指定任何smart link组
使用说明
只有正式启用(enable)的smart link组才可以作为monitor link组的上联端口
举例说明
将smart link组1做为monitor link组的上联端口
Switch# configure terminal
Switch(config)# monitor-link group 1
Switch(config-mtlk-group)# monitor-link uplink smart-link group 1
相关命令
show monitor-link group
14.13.4no monitor-link uplink
命令功能
该命令删除monitor-link组的所有上联端口。
命令语法
no monitor-link uplink
命令模式
Monitor-Link配置模式
默认配置
无
使用说明
该命令用于删除monitor-link组的所有上联端口,包括端口或smart link组
举例说明
删除本monitor-link组的所有上联端口
Switch# configure terminal
Switch(config-mtlk-group)# no monitor-link uplink
相关命令
show monitor-link group
14.13.5monitor-link downlink interface
命令功能
该命令为monitor link 组创建下联端口。
命令语法
monitor-link downlink interface ( IFPHYSICAL | IFAGG )
no monitor-link downlink interface ( IFPHYSICAL | IFAGG | )
参数 |
参数说明 |
参数取值 |
IFPHYSICAL |
物理端口名称 |
- |
IFAGG |
AGG端口名称 |
- |
命令模式
Monitor-Link配置模式
默认配置
默认不指定端口
使用说明
各类端口中只有物理端口和AGG端口才可以作为monitor link的下联端口
举例说明
为monitor link组添加下联端口eth-0-1
Switch# configure terminal
Switch(config)# monitor-link group 1
Switch(config-mtlk-group)# monitor-link downlink interface eth-0-1
相关命令
show monitor-link group
14.13.6monitor-link recover-time
命令功能
该命令用于指定下联端口恢复时间。
命令语法
monitor-link recover-time RECOVER_TIME
no monitor-link recover-time
参数 |
参数说明 |
参数取值 |
RECOVER_TIME |
Monitor link组下量端口恢复时间范围(秒) |
0-60秒 |
命令模式
全局配置模式
默认配置
默认是3秒
使用说明
该命令用于指定下联端口恢复时间。如果上联端口状态恢复为up,所有的下联端口状态也将在指定的恢复时间后改为up。以防止上联端口不停up/down导致下联端口频繁改变状态。
举例说明
全局将恢复时间改为1秒
Switch# configure terminal
Switch(config)# monitor-link recover-time 1
相关命令
show monitor-link group
14.13.7show monitor-link group
命令功能
该命令用于显示.指定monitor-link组的信息。
命令语法
show monitor-link group ( GROUP-ID | )
参数 |
参数说明 |
参数取值 |
GROUP-ID |
Monitor link组编号 |
1-16 |
命令模式
特权模式
默认配置
无
使用说明
该命令用于显示指定monitor link组的状态和信息。
举例说明
显示monitor link group的信息
Switch# show monitor-link group
Group Id: 1
Monitor link status: UP
Role Member Last-up-time Last-down-time upcount downcount
UpLk 1 eth-0-2 2011/07/15,01:34:17 2011/07/15,01:34:14 1 1
相关命令
无
14.13.8debug monitor-link
命令功能
该命令用于debug monitor-link信息。
命令语法
debug monitor-link
命令模式
特权模式
默认配置
无
使用说明
该命令用于debug monitor-link组触发事件的信息
举例说明
打开monitor-link组的debug信息
Switch# debug monitor-link
相关命令
无
14.14VRRP命令
14.14.1advertisement-interval
命令功能
使用该命令配置master虚拟路由器发送的一系列的宣告报文的时间间隔。可以用相应的no来配置成默认值。
命令语法
advertisement-interval interval
no advertisement-interval
参数 |
参数说明 |
参数取值 |
INTERVAL |
虚拟路由器发送的一系列的宣告报文的时间间隔。单位是秒, 默认值是1秒 |
VRRP v2: 1-255秒 |
命令模式
路由模式
默认配置
无
使用说明
master虚拟路由器发送的宣告用于向backup路由器通告它当前的优先权以及状态。
如果运行VRRP协议的路由器的通告时间没有设置的话, 它可以从master路由器那边学到。Master路由器上面的通告时间总是可以覆盖同一个VRRP组中所有其他路由器设备的通告时间,只要你配置了命令learnmaster-mode为TRUE。 同一个VRRP组中的通告时间必须保持一致。 如果路由器之间设定的通告时间不一致,那么这些路由器之间将不能互相通信,在经过一定的时间间隔后,各自都会成为master。
举例说明
设置Master路由器发送宣告报文的时间间隔为4秒
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# advertisement-interval 4
相关命令
advertisement-interval msec
14.14.2advertisement-interval msec
命令功能
使用该命令来配置master虚拟路由器发送的一系列的宣告报文的时间间隔(以毫秒为单位)。
命令语法
advertisement-interval msec interval
参数 |
参数说明 |
参数取值 |
INTERVAL |
路由器发送宣告报文的间隔,以毫秒为单位 |
100-900毫秒 |
命令模式
路由模式
默认配置
无
使用说明
以毫秒为单位的通告报文时间间隔必须是100的倍数。使用毫秒模式可以使系统更快的检测到网络状态变化,加快网络收敛速度。
举例说明
设置Master路由器发送宣告报文的时间间隔为100毫秒
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# advertisement-interval msec 100
相关命令
advertisement-interval
14.14.3compatible-version
命令功能
使用该命令配置VRRP v3 master发送advertisement报文的模式。可以用相应的no来配置成默认值。
命令语法
compatible-version ( 2 | 3 | all )
no compatible-version
参数 |
参数说明 |
参数取值 |
2 |
只发送VRRP v2版本的通告报文 |
- |
3 |
只发送VRRP v3版本的通告报文 |
- |
all |
同时发送VRRP v2和v3版本的通告报文 |
- |
命令模式
路由模式
默认配置
3
使用说明
仅支持对VRRP v3的IPv4路由进行配置。
举例说明
设置Master路由器同时发送v2和v3版本的通告报文
Switch# configure terminal
Switch(config)# vrrp version 3
Switch(config)# router vrrp 1
Switch(config-router)# compatible-version all
相关命令
vrrp version
14.14.4interface (VRRP)
命令功能
此命令用于在某个指定端口上启用VRRP。
使用关键字no在这个端口上删除VRRP。
命令语法
interface INTERFACE-ID
no interface
参数 |
参数说明 |
参数取值 |
INTERFACE-ID |
接口名 |
- |
命令模式
路由模式
默认配置
无
使用说明
在同一个接口上,启用VRRP的数量不要超过3。
举例说明
设置在端口eth-0-1上启动VRRP
Switch# configure terminal
Switch(config)#router vrrp 1
Switch(config-router)#interface eth-0-1
相关命令
router vrrp
14.14.5learnmaster-mode
命令功能
该命令开启备份路由器学习主路由器的发送通告报文时间间隔的功能。使用 learnmaster-mode false命令关闭学习功能。
命令语法
learnmaster-mode ( true | false )
参数 |
参数说明 |
参数取值 |
True |
开启备份路由器学习主路由器发送的时间间隔 |
- |
False |
关闭备份路由器学习主路由器发送的时间间隔 |
- |
命令模式
路由模式
默认配置
无
使用说明
由于所有在同一个VRRP组内通信的路由器的通告报文时间间隔必须设成一致,因此,为了确保主路由器和从路由器配置的时间间隔是一致的,您可以开启学习功能。
举例说明
设置备份路由学习主路由器发送的时间间隔
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# learnmaster-mode true
相关命令
router vrrp
14.14.6preempt-mode
命令功能
此命令设置交换机是否工作于抢占模式。
命令语法
preempt-mode ( true | false )
参数 |
参数说明 |
参数取值 |
True |
启用抢占模式 |
- |
False |
不启用抢占模式 |
- |
命令模式
路由模式
默认配置
无
使用说明
交换机缺省工作于抢占模式;
处于backup状态的路由器如果收到一个报文,并且自己的抢占模式设为FALSE或者收到的报文里的优先级比自己本地的优先级高,则路由器继续保持backup状态,否则将在master down 时间间隔后转为master。
注意:如果是交换机自己拥有该虚拟IP地址(即IP address owner),则抢占模式一定是TRUE的。
如果交换机工作于抢占模式,则当Master路由器的priority发生变化或者track端口Down掉时,此交换机会参与Master路由器的竞选。
如果交换机工作于非抢占模式,当Master路由器的priority发生变化或者track端口Down掉时,此交换机不会参与Master路由器的竞选;
如果Master路由器Down掉,则不论交换机的preempt-mode设置为true或者false,此交换机都会参与Master路由器的竞选。
举例说明
设置交换机工作于抢占模式且设置优先级为200
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# preempt-mode true
Switch(config-router)# priority 200
相关命令
preempt delay
14.14.7preempt delay
命令功能
配置Master路由器Down时候backup路由器的抢占延迟时间。
命令语法
preempt delay time
参数 |
参数说明 |
参数取值 |
TIME |
抢断延迟时间 |
0-3600秒 |
命令模式
路由模式
默认配置
默认0秒
使用说明
master路由器down时间的默认算法 =(3advt_interval) + skew_time。当配置了delay time后, 算法为 =(3advt_interval) + skew_time + preempt_delay。默认delay time为0。backup在经过master down时间还没有主路由器发布的通告报文,就认为主路由器出现故障,并将自己转变成master状态。
举例说明
设置VRRP为抢占模式,优先级200且抢占时间延迟为30秒
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# preempt-mode true
Switch(config-router)# priority 200
Switch(config-router)# preempt delay 30
相关命令
preempt-mode
14.14.8priority (VRRP)
命令功能
此命令设置本交换机在虚拟路由器组内的优先权。
使用关键字no恢复本交换机在虚拟路由器组内的优先权为默认值。
命令语法
priority level
no priority
参数 |
参数说明 |
参数取值 |
level |
本交换机在虚拟路由器组内的优先权,范围1-254。 |
1-254 |
命令模式
路由模式
默认配置
默认值为100
使用说明
虚拟路由器组使用竞选方式产生Master路由器,其他所有路由器作为Backup;其中,优先级高的将作为Master路由器;如果优先级相同,则会比较网络接口的主IP地址,其中,IP地址高的将作为Master路由器。缺省优先级为100。
举例说明
设置本交换机在虚拟路由器组内的优先权为254
Switch# configure terminal
Switch(config)#router vrrp 1
Switch(config-router)#priority 254
相关命令
router vrrp
14.14.9router vrrp
命令功能
此命令设置交换机加入指定的虚拟路由器组并进入VRRP配置模式。
使用关键字no退出指定的虚拟路由器组。
命令语法
router vrrp GROUP ( vrf NAME | ) ( uniform-mac | )
no router vrrp GROUP
参数 |
参数说明 |
参数取值 |
GROUP |
VRRP组标志符 |
1-255 |
NAME |
VRF名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
在同一个虚拟路由器组内的路由器,必须配置相同的虚拟路由器组标志符。在使用no退出指定的虚拟路由器之前,必须先disable VRRP,使其处于init状态。
举例说明
设置交换机加入虚拟路由器组1并进入其配置模式
Switch# configure terminal
Switch(config)# router vrrp 1
相关命令
无
14.14.10router ipv6 vrrp
命令功能
此命令设置交换机加入指定的虚拟路由器组并进入IPv6 VRRP配置模式。
使用关键字no退出指定的虚拟路由器组。
命令语法
router ipv6 vrrp GROUP ( vrf NAME | )
no router vrrp GROUP
参数 |
参数说明 |
参数取值 |
GROUP |
VRRP组标志符 |
1-255 |
NAME |
VRF名称 |
- |
命令模式
全局配置模式
默认配置
无
使用说明
在同一个虚拟路由器组内的路由器,必须配置相同的虚拟路由器组标志符。在使用no退出指定的虚拟路由器之前,必须先disable IPv6 VRRP,使其处于init状态。
举例说明
设置交换机加入IPv6虚拟路由器组1并进入其配置模式
Switch# configure terminal
Switch(config)# router ipv6 vrrp 1
相关命令
无
14.14.11track (VRRP)
命令功能
此命令设置在本交换机上运行的虚拟路由器组监视端口。
使用关键字no删除监视端口。
命令语法
track OBJ_ID ( decrement VALUE | increment VALUE | )
no track OBJ_ID
参数 |
参数说明 |
参数取值 |
OBJ_ID |
跟踪对象ID |
1-500 |
decrement VALUE |
优先级递减值 |
1-255 |
increment VALUE |
优先级增加值 |
1-255 |
命令模式
路由模式
默认配置
无
使用说明
使用track命令来绑定一个track对象,当track对象切换到down的时候, master路由器的优先级将会随配置变化优先级。
一个特定的VRRP组中可以配置8个track对象。
举例说明
配置在本交换机上运行的虚拟路由器组监视端口为eth-0-1
Switch# configure terminal
Switch(config)# track 10 interface eth-0-1 linkstate
Switch(config)# router vrrp 1
Switch(config-router)# track 10
相关命令
router vrrp
14.14.12enable /disable
命令功能
此命令启用或关闭VRRP路由协议。
命令语法
enable
disable
命令模式
路由模式
默认配置
无
使用说明
无
举例说明
设置交换机开启VRRP功能
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# enable
设置交换机关闭VRRP功能
Switch# configure terminal
Switch(config)# router vrrp 1
Switch(config-router)# disable
相关命令
无
14.14.13virtual-ip
命令功能
此命令设置虚拟VRRP路由器的虚拟IP地址,使用关键字no删除该虚拟IP。
命令语法
virtual-ip IP-ADDRESS
no virtual-ip
参数 |
参数说明 |
参数取值 |
IP-ADDRESS |
虚拟路由器的IP地址 |
IPv4地址 |
命令模式
路由模式
默认配置
无
使用说明
VRRP组中的所有路由器都必须与这个虚拟路由器使用相同的主网络地址。否则的话, VRRP组中的成员就无法相互通信, 并且错误配置的将会导致同一个VRRP组中的所有路由器都变成master路由器。 虚拟IP地址和VRRP接口必须在同一个子网内, 如果虚拟IP地址跟接口的IP地址一致,它被称为IP地址拥有者。
举例说明
设置本设备的虚拟IP地址为10.0.1.20
Switch# configure terminal
Switch(config)#interface eth-0-1
Switch(config-if)#no switchport
Switch(config-if)#ip address 10.0.1.1/24
Switch(config)#router vrrp 1
Switch(config-router)#interface eth-0-1
Switch(config-router)#virtual-ip 10.0.1.20
Switch(config-router)#enable
相关命令
router vrrp
14.14.14virtual-ipv6
命令功能
此命令设置虚拟VRRP路由器的虚拟IPv6地址,使用关键字no删除该虚拟IPv6地址。
命令语法
virtual-ip IPv6-ADDRESS ( link-local | )
no virtual-ip IPv6-ADDRESS ( link-local | )
参数 |
参数说明 |
参数取值 |
IPv6-ADDRESS |
虚拟路由器的IPv6地址 |
IPv6地址 |
命令模式
路由模式
默认配置
无
使用说明
VRRP组中的所有路由器都必须与这个虚拟路由器使用相同的虚IPv6地址。 虚拟IPv6地址和VRRP接口必须在同一个子网内, 如果虚拟IPv6地址跟接口的IPv6地址一致,它被称为IP地址拥有者,并且响应路由器的优先级会被设置为255。在配置全球单播的IPv6虚地址前必须先配置Link-local的IPv6虚地址。
举例说明
设置本设备的虚拟IPv6地址
Switch# configure terminal
Switch(config)#interface eth-0-1
Switch(config-if)#no switchport
Switch(config-if)#ipv6 address 2000::1/64
Switch(config)#router ipv6 vrrp 1
Switch(config-router)#interface eth-0-1
Switch(config-router)#virtual-ipv6 fe80::1 link-local
Switch(config-router)#virtual-ipv6 2000::1
Switch(config-router)#enable
相关命令
router ipv6 vrrp
14.14.15vrrp version
命令功能
此命令设置虚拟VRRP版本,使用关键字no恢复VRRP版本为默认值。
命令语法
vrrp version ( 2 | 3 )
no vrrp version
参数 |
参数说明 |
参数取值 |
2 |
VRRP版本2 |
- |
3 |
VRRP版本3 |
- |
命令模式
全局配置模式
默认配置
VRRP版本2
使用说明
无
举例说明
设置本设备运行VRRP版本3
Switch# configure terminal
Switch(config)# vrrp version 3
相关命令
router vrrp
14.14.16show vrrp
命令功能
使用此命令查看VRRP协议的配置信息。
命令语法
show vrrp ( GROUP | )
参数 |
参数说明 |
参数取值 |
GROUP |
VRRP组编号;如果未指定,则查看所有VRRP组配置信息 |
1-255 |
命令模式
特权模式
默认配置
无
使用说明
假如没有指定VRRP组,那么显示所有的VRRP组
举例说明
显示交换机配置的所有VRRP信息
Switch# show vrrp
VRID <1>
State : Master
Virtual IP : 10.0.20.254(Not IP owner)
Interface : eth-0-10
VMAC : 0000.5e00.0101
Advt timer : 1
Preempt mode : TRUE
Conf pri : 200 Run pri : 200
Master router ip : 10.0.20.1
Master priority : 200
Master advt timer : 1
Master down timer : 3
Preempt delay : 100 second(s)
Learn master mode : FALSE
相关命令
router vrrp
14.14.17show ipv6 vrrp
命令功能
使用此命令查看IPv6 VRRP协议的配置信息。
命令语法
show ipv6 vrrp ( GROUP | )
参数 |
参数说明 |
参数取值 |
GROUP |
IPv6 VRRP组编号;如果未指定,则查看所有IPv6 VRRP组配置信息 |
1-255 |
命令模式
特权模式
默认配置
无
使用说明
假如没有指定IPv6 VRRP组,那么显示所有的IPv6 VRRP组
举例说明
显示交换机配置的所有IPv6 VRRP信息
Switch# show ipv6 vrrp
IPv6 vrrp session count: 1
VRID <1>
State : Master
Virtual IP : fe80::1(Not IP owner)
2000::2(Not IP owner)
Interface : eth-0-9
VMAC : 0000.5e00.0201
VRF : Default
Advt timer : 1 second(s)
Preempt mode : TRUE
Conf pri : Unset Run pri : 100
Track Object : 1 Decre pri : 20
Master router ip : fe80::48cc:69ff:fec8:5b00
Master priority : 100
Master advt timer : 100 centi-second(s)
Master down timer : 4 second(s)
Preempt delay : 0 second(s)
相关命令
router ipv6 vrrp
14.15Track命令
14.15.1delay up
命令功能
在track模式下,使用delay up命令,来指定一个track对象的通信状态迁移的延迟时间(s)。 返回默认值, 使用相应的no命令。
命令语法
delay up SECONDS
no delay up
参数 |
参数说明 |
参数取值 |
SECONDS |
延迟将状态切换到up的时间,以秒为单位。 |
1-180秒 |
命令模式
Track实例配置模式
默认配置
默认不延迟
使用说明
无
举例说明
下面是一个例子,用于表示,检测eth-0-1端口的端口状态迁移(从down->up),设定延迟时间为30s
Switch# configure terminal
Switch(config)# track 1 interface eth-0-1 linkstate
Switch(config-track)# delay up 30
相关命令
delay down
14.15.2delay down
命令功能
在track模式下,使用delay up命令,来指定一个track对象的通信状态迁移的延迟时间(s)。 使用相应的no命令来恢复默认值。
命令语法
delay down SECONDS
no delay down
参数 |
参数说明 |
参数取值 |
SECONDS |
延迟将状态切换到down的时间,以秒为单位。 |
1-180秒 |
命令模式
Track实例配置模式
默认配置
默认不延迟
使用说明
无
举例说明
下面是一个例子,用于表示,检测eth-0-1端口的端口状态迁移(从up->down),设定延迟时间为30s
Switch# configure terminal
Switch(config)# track 1 interface eth-0-1 linkstate
Switch(config-track)# delay down 30
相关命令
delay up
14.15.3frequency
命令功能
使用此命令设定IP SLA操作的频率。
使用相应的no命令来恢复默认值。
命令语法
frequency SECONDS
no frequency
参数 |
参数说明 |
参数取值 |
SECONDS |
设定IP SLA操作的频率 |
1-4800秒 |
命令模式
IP服务等级协议配置模式
默认配置
默认值是60s
使用说明
频率值遵循以下规则:
frequency > interval * ( packets-per-test - 1 ) + timeout
举例说明
下面的例子讲IP SLA操作的频率设置成了10秒一次
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# frequency 10
相关命令
show ip sla monitor
14.15.4ip sla monitor
命令功能
在CONFIG模式使用IP SLA monitor来创建一个IP SLA并进入IP SLA配置模式。删除这个IP SLA的话用它相应的no命令。
命令语法
ip sla monitor ENTRY-NUMBER
no ip sla monitor ENTRY-NUMBER
参数 |
参数说明 |
参数取值 |
ENTRY-NUMBER |
ip sla的标识 |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
在下面的例子中, ip sla monitor命令创建了一个IP SLA, 并进入了IP SLA配置模式
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)#
相关命令
show ip sla monitor
14.15.5description string
命令功能
使用此命令配置IP SLA的描述信息。
使用此命令的no格式删除这个IP SLA的描述信息。
命令语法
description STRING
no description
参数 |
参数说明 |
参数取值 |
STRING |
IP SLA的描述信息 |
不超过255个字符的字符串 |
命令模式
IP服务等级协议配置模式
默认配置
无
使用说明
无
举例说明
在下面的例子中,设置IP SLA的描述信息
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)#description thisisanexampler
相关命令
无
14.15.6ip sla monitor schedule
命令功能
使用此命令来启用一个IP SLA的条目。
使用此命令的no格式删除这个IP SLA条目。
命令语法
ip sla monitor schedule ( ENTRY-NUMBER )
参数 |
参数说明 |
参数取值 |
ENTRY-NUMBER |
ip sla的标识 |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面是一个如何启用一个IP SLA监测的例子
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# exit
Switch(config)# ip sla monitor schedule 1
相关命令
show ip sla monitor
14.15.7timeout
命令功能
使用此命令设定IP SLA操作等待其请求响应的超时时间。
使用此命令的no格式恢复默认值。
命令语法
timeout SECONDS
no timeout
参数 |
参数说明 |
参数取值 |
SECONDS |
超时时间。时间范围 1 - 4800. ( frequency > interval * ( packets-per-test - 1 ) + timeout) |
1-4800秒 |
命令模式
IP服务等级协议配置模式
默认配置
5秒
使用说明
超时时间值值遵循以下规则:
frequency > interval * ( packets-per-test - 1 ) + timeout)
举例说明
下面的例子描述了如何设定IP SLA的超时时间
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# timeout 10
相关命令
show ip sla monitor
14.15.8threshold
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的上限阈值。
使用此命令的no格式恢复默认值。
命令语法
threshold MILLISECONDS
no threshold
参数 |
参数说明 |
参数取值 |
MILLISECONDS |
IP SLA操作进行网络监测统计时的上限阈值 |
1 - 4800000 毫秒 |
命令模式
IP服务等级协议配置模式
默认配置
5000毫秒
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA的阈值时间
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# threshold 10000
相关命令
show ip sla monitor
14.15.9interval
命令功能
使用此命令设定IP SLA操作一次检测中两次icmp请求的时间间隔。
使用此命令的no格式恢复默认值。
命令语法
interval SECONDS
no interval
参数 |
参数说明 |
参数取值 |
SECONDS |
IP SLA操作一次检测中两次icmp请求的时间间隔 |
1-4800秒 |
命令模式
IP服务等级协议配置模式
默认配置
6
使用说明
间隔时间遵循以下规则:
( frequency > interval * ( packets-per-test - 1 ) + timeout)
举例说明
下面的例子描述了如何设定IP SLA的超时时间
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# interval 10
相关命令
show ip sla monitor
14.15.10ttl
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的icmp请求报文的ttl。
使用此命令的no格式恢复默认值。
命令语法
ttl VALUE
no ttl
参数 |
参数说明 |
参数取值 |
VALUE |
TTL值 |
1-255 |
命令模式
IP服务等级协议配置模式
默认配置
64
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA的ttl
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# ttl 100
相关命令
show ip sla monitor
14.15.11tos
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的icmp请求报文的tos。
使用此命令的no格式恢复默认值。
命令语法
tos VALUE
no tos
参数 |
参数说明 |
参数取值 |
VALUE |
tos值 |
0-255 |
命令模式
IP服务等级协议配置模式
默认配置
0
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA的tos
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# tos 100
相关命令
show ip sla monitor
14.15.12data-size
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的icmp请求报文数据大小。
使用此命令的no格式恢复默认值。
命令语法
data-size SIZE
no data-size
参数 |
参数说明 |
参数取值 |
SIZE |
报文数据大小 |
0-9172 |
命令模式
IP服务等级协议配置模式
默认配置
28
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA的icmp报文数据大小
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# data-size 100
相关命令
show ip sla monitor
14.15.13data-pattern
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的icmp请求报文携带字段内容。
使用此命令的no格式恢复默认值。
命令语法
data-pattern HEX_STRING
no data-pattern
参数 |
参数说明 |
参数取值 |
HEX_STRING |
填充报文用的十六进制字符串 |
0-0xFFFFFFFF |
命令模式
IP服务等级协议配置模式
默认配置
ABCDABCD
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA的icmp报文携带数据
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# data-pattern abababab
相关命令
show ip sla monitor
14.15.14set-df
命令功能
使用此命令设定IP SLA发出的ICMP报文置上DF标记,确保报文不会被分片。
使用此命令的no格式恢复默认值。
命令语法
set-df
no set-df
命令模式
IP服务等级协议配置模式
默认配置
去使能
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA报文置上DF标记
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# set-df
相关命令
show ip sla monitor
14.15.15fail-percent
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的fail百分比。
使用此命令的no格式恢复默认值。
命令语法
fail-percent PERCENT
no fail-percent
参数 |
参数说明 |
参数取值 |
PERCENT |
IP SLA操作进行网络监测统计时的fail百分比 |
1-100 |
命令模式
IP服务等级协议配置模式
默认配置
100
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA的fail百分比
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# fail-percent 100
相关命令
show ip sla monitor
14.15.16packets-per-test
命令功能
使用此命令设定IP SLA操作进行网络监测统计时的单次检测发送icmp请求的次数,使用相应的no命令来让它返回默认值。
命令语法
packets-per-test NUMBER
no packets-per-test
参数 |
参数说明 |
参数取值 |
NUMBER |
IP SLA操作进行网络监测统计时的单次检测发送icmp请求的次数 |
1-10 |
命令模式
IP服务等级协议配置模式
默认配置
3
使用说明
packets-per-test值遵循以下规则:
( frequency > interval * ( packets-per-test - 1 ) + timeout)
举例说明
下面的例子描述了如何设定IP SLA一次检测发送5次icmp请求
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# packets-per-test 5
相关命令
show ip sla monitor
14.15.17statistics (packet |test)
命令功能
使用此命令设定IP SLA统计信息总的个数以及显示最近几次test记录。
使用此命令的no格式恢复默认值。
命令语法
statistics ( packet PKT_CNT | test TEST_CNT )
no statistics packet
no statistics test
参数 |
参数说明 |
参数取值 |
PKT_CNT |
统计的报文个数 |
0-1000 |
TEST_CNT |
统计的测试的次数 |
1-10 |
命令模式
IP服务等级协议配置模式
默认配置
packet: 50; test: 5
使用说明
无
举例说明
下面的例子描述了如何设定IP SLA总记录数为60,记录最近6次检测结果
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# statistics packet 60
Switch(config-ipsla)# statistics test 6
相关命令
show ip sla monitor
14.15.18clear ip sla statistics
命令功能
使用此命令清空某个ipsla entry的所有统计信息。
命令语法
clear ip sla statistics ENTRY_ID
参数 |
参数说明 |
参数取值 |
ENTRY_ID |
IP SLA监视条目的标识符 |
1-255 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了如何清空ipsla monitor 1的统计信息
Switch# clear ip sla statistics 1
相关命令
show ip sla monitor
14.15.19track
命令功能
使用此命令创建track对象
命令语法
track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
Track对象的标识符 |
1-500 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面例子描述了如何创建track对象
Switch# configure terminal
Switch(config)# track 1 interface eth-0-1 linkstate
Switch(config-track)#
相关命令
show track
14.15.20track interface linkstate
命令功能
在全局配置模式下,使用track interface linkstate命令来创建一个track接口状态的track对象。使用相应的no命令来删除这个track对象。
命令语法
track OBJECT_ID interface IFNAME linkstate
no track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
track对象的标识 |
1-500 |
IFNAME |
接口名 |
支持物理端口,聚合端口,环回端口,VLAN端口,隧道端口 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了如何在端口eth-0-1上创建一个track对象
Switch# configure terminal
Switch(config)# track 1 interface eth-0-1 linkstate
Switch(config-track)#
相关命令
show track
14.15.21track rtr reachability
命令功能
在全局配置模式下,使用track rtr reachability 命令,来创建一个用于track IP SLA条目的track对象。使用相应的no命令来删除这个track对象。
当IP SLA条目的状态为OK或者超出阈值时,track对象处于up状态;否则的话track对象就处于down状态。
命令语法
track OBJECT_ID rtr ENTRY_ID reachability
no track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
Track对象的标识符 |
1-500 |
ENTRY_ID |
IP SLA监视条目的标识符 |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了如何创建一个用于track IP SLA监视条目的track对象
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# exit
Switch(config)# track 1 rtr 1 reachability
Switch(config-track)#
相关命令
show track
14.15.22track rtr state
命令功能
在全局配置模式下,使用track rtr state命令,来创建一个用于track IP SLA条目的track对象。使用相应的no命令来删除这个track对象。
当IP SLA条目的状态为OK时,track对象处于up状态;否则的话track对象就处于down状态。
命令语法
track OBJECT_ID rtr ENTRY_ID state
no track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
Track对象的标识符 |
1-500 |
ENTRY_ID |
IP SLA监视条目的标识符 |
1-255 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了如何创建一个用于track IP SLA监视条目的track对象
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# exit
Switch(config)# track 1 rtr 1 state
Switch(config-track)#
相关命令
show track
14.15.23track bfd
命令功能
在全局配置模式下,使用track bfd命令,来创建一个用于bfd会话的track对象。使用相应的no命令来删除这个track对象。
当bfd会话的状态为up时,track对象处于up状态;否则的话track对象就处于down状态。
命令语法
track OBJECT_ID bfd source interface IFNAME destination IP_ADDR
no track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
Track对象的标识符 |
1-500 |
IFNAME |
接口名 |
支持物理端口,聚合端口,VLAN端口 |
IP_ADDR |
BFD会话的目的地址 |
IPv4 地址 |
命令模式
全局配置模式
默认配置
无
使用说明
源端口必须是一个三层接口,且配置好ip地址。
目的ip必须和源端口的ip地址在同一网段内。
举例说明
下面的例子描述了如何创建一个用于track bfd监视条目的track对象
Switch# configure terminal
Switch(config)# interface eth-0-9
Switch(config-if)# no switchport
Switch(config-if)# no shutdown
Switch(config-if)# ip address 9.9.9.1/24
Switch(config-if)# quit
Switch(config)# track 1 bfd source interface eth-0-9 destination 9.9.9.2
Switch(config-track)#
相关命令
show track
14.15.24track bfd session
命令功能
在全局配置模式下,使用track bfd session命令,来创建一个用于bfd会话的track对象。使用相应的no命令来删除这个track对象。
当bfd会话的状态为up时,track对象处于up状态;否则的话track对象就处于down状态。
命令语法
track OBJECT_ID bfd session SESSION_NAME
no track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
Track对象的标识符 |
1-500 |
SESSION_NAME |
BFD会话名称 |
不超过16个字符的字符串 |
命令模式
全局配置模式
默认配置
无
使用说明
配置这条命令前需要先创建bfd会话
举例说明
下面的例子描述了如何创建一个用于track bfd session监视条目的track对象
Switch# configure terminal
Switch(config)# bfd test peer-ip 9.9.9.2 source 10.10.10.1 local 10 remote 20
Switch(config)# track 1 bfd session test
Switch(config-track)#
相关命令
show track
14.15.25track cfm
命令功能
在全局配置模式下,使用track cfm命令,来创建一个用于cfm的track对象。使用相应的no命令来删除这个track对象。
当cfm的状态为up时,track对象处于up状态;否则的话track对象就处于down状态。
如果设置了关心rdi的状态,那么当收到rdi置为1的CCM报文时,track对象的状态也会置为down。
命令语法
track OBJECT_ID cfm domain DOMAIN_NAME service CSI_ID ( rmepid MEPID | ) ( rdi-trigger | )
no track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
Track对象的标识符 |
1-500 |
DOMAIN_NAME |
维护域名字 |
不超过43个字符的字符串 |
CSI_ID |
服务名 |
以字母开头,取值为”0-9A-Za-z.-_“, 不超过43个字符的字符串。与MD name(Maintenance domain)一起,字符串总长度不超过44字符。 |
MEPID |
远端mep标识 |
1-8191 |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了如何创建一个用于track cfm监视条目的track对象
Switch# configure terminal
Switch(config)# track 1 cfm domain tst service tst
相关命令
show track
14.15.26type icmp-echo
命令功能
使用此命令定义icmp-echo报文的参数。
使用此命令的no格式删除该配置。
命令语法
type icmp-echo IP_ADDR ( source-interface IFNAME | ) ( source-ip SRC_IP_ADDR | )
type icmp-echo IPv6_ADDR ( source-interface IFNAME | ) ( source-ip SRC_IPv6_ADDR | )
no type icmp-echo
参数 |
参数说明 |
参数取值 |
IP_ADDR |
目的IP的地址 |
IPv4 地址 |
IPv6_ADDR |
目的IPv6的地址 |
IPv6 地址 |
source-interface IFNAME |
源端口名 |
支持物理端口,聚合端口,VLAN端口 |
SRC_IP_ADDR |
源IP地址 |
IPv4 地址 |
命令模式
IP服务等级协议配置模式
默认配置
无
使用说明
如果源端口号与实际路由不相符,则不发送报文。
举例说明
下面例子描述了如何设置IPv4 echo报文的参数
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# type icmp-echo 192.168.0.1
下面例子描述了如何设置IPv6 echo报文的参数
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# type icmp-echo 3000::3
相关命令
show ip sla monitor
14.15.27show ip sla monitor
命令功能
在特权模式下,使用show ip sla monitor命令,来显示IP SLA条目以及该entry的所有统计信息,以及最近几次的检测结果。
命令语法
show ip sla monitor ( ENTRY_ID ) ( statistics ( packet | test ) | )
参数 |
参数说明 |
参数取值 |
ENTRY_ID |
IP SLA监视条目的标识符,范围1-255 |
1-255 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了应该如何显示IP SLA监视条目
Switch# show ip sla monitor
Entry 1
Type : Echo
Admin state : Enable
Destination address : 192.168.0.1
Frequency : 3 seconds
Timeout : 2 seconds
Threshold : 1 seconds
Running Frequency : 3 seconds
Vrf : vpn1
Return code : OK
相关命令
ip sla monitor
14.15.28show track
命令功能
在特权模式使用show track命令来显示track对象:
命令语法
show track OBJECT_ID
参数 |
参数说明 |
参数取值 |
OBJECT_ID |
track对象的标识 |
1-500 |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
下面的例子描述了应该如何显示track对象
Switch# show track
Track 2
Type : Response Time Reporter(RTR) Reachability
Interface : eth-0-2
State : down
Delay up : 30 seconds
Delay down : 30 seconds
相关命令
track
14.15.29vrf
命令功能
在IP服务等级协议配置模式下,使用vrf命令,来在VPN下使用IP SLA操作,使用相应的no命令来返回默认。
命令语法
vrf NAME
no vrf
参数 |
参数说明 |
参数取值 |
NAME |
VRF名 |
不超过31个字符的字符串 |
命令模式
IP服务等级协议配置模式
默认配置
无
使用说明
无
举例说明
下面的例子模式了如何在VPN下使用IP SLA操作
Switch# configure terminal
Switch(config)# ip sla monitor 1
Switch(config-ipsla)# vrf vpn1
相关命令
show ip sla monitor
14.16VARP命令
14.16.1ip virtual-router mac
命令功能
使用该命令配置配置交换机虚拟MAC。
使用此命令的no格式删除虚拟MAC。
命令语法
ip virtual-router mac mac-addr
no ip virtual-router mac
参数 |
参数说明 |
参数取值 |
mac-addr |
虚拟MAC地址 |
MAC地址 |
命令模式
全局配置模式
默认配置
无
使用说明
虚拟MAC地址为相应的虚拟IP地址提供对应的二层地址。这个地址只有在接收报文的时候使用,对于交换机发出或转发的普通报文不会使用该地址。对于ARP报文,只有在回复虚拟IP地址的请求时会使用虚拟MAC地址。
举例说明
设置交换机的虚拟MAC地址为1.1.1
Switch# configure terminal
Switch(config)# ip virtual-router mac 1.1.1
相关命令
ip virtual-router address
14.16.2ip virtual-router address
命令功能
使用该命令来配置虚拟IP地址。
使用此命令的no格式删除虚拟IP 。
命令语法
ip virtual-router address ( A.B.C.D | A.B.C.D/M )
no ip virtual-router address
参数 |
参数说明 |
参数取值 |
A.B.C.D |
不带掩码的虚IP地址,与接口主IP地址在同一个网段 |
IPv4地址 |
A.B.C.D/M |
带掩码的虚IP地址,与接口主IP地址在不同网段 |
IPv4地址和掩码长度 |
命令模式
端口配置模式
默认配置
无
使用说明
本命令配置端口上的虚拟IP地址。如果配置虚IP地址没有指定掩码,那么该虚IP地址需要和端口上的主IP地址在同一网段。如果配置虚IP地址指定掩码,那么该虚IP地址需要和端口上的主IP地址在不同网段。带掩码的虚IP地址和不带掩码的虚IP地址只能配置其中一种情况。如果虚拟MAC没有配置,系统不会回复虚拟IP地址的ARP请求。
举例说明
设置端口上的虚拟地址为1.1.1.1
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ip virtual-router address 1.1.1.1
相关命令
ip virtual-router mac
14.16.3ipv6 virtual-router address
命令功能
使用该命令来配置虚拟IPv6地址。
使用此命令的no格式删除虚拟IPv6地址 。
命令语法
ipv6 virtual-router address IPv6-ADDRESS
no ipv6 virtual-router address ( IPv6-ADDRESS | )
参数 |
参数说明 |
参数取值 |
IPv6-ADDRESS |
虚拟IPv6地址 |
IPv6地址,不能是链路本地地址 |
命令模式
端口配置模式
默认配置
无
使用说明
本命令配置端口上的虚拟IPv6地址。虚拟IPv6地址需要和端口上的IPv6地址在同一网段。如果虚拟MAC没有配置,系统不会回复虚拟IPv6地址的NS请求。
举例说明
设置端口上的虚拟IPv6地址为2000::2
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ipv6 address 2000::1/64
Switch(config-if)# ipv6 virtual-router address 2000::2
相关命令
ip virtual-router mac
14.17IP BFD命令
14.17.1bfd interval
命令功能
使用该命令配置期望的BFD收发包速率及检测倍数。
使用该命令的“no”格式恢复默认值。
命令语法
bfd interval { tx MINTX | rx MINRX | multiplier MULTIPLIER }
no bfd interval
参数 |
参数说明 |
参数取值 |
MINTX |
配置BFD发包速率 |
3-1000 毫秒 |
MINRX |
配置BFD收包速率 |
3-1000 毫秒 |
MULTIPLIER |
配置BFD检测间隔倍数 |
2-15 |
命令模式
端口配置模式
默认配置
默认发送速率和接收速率为20毫秒。
默认检测间隔倍数为3。
使用说明
使用该命令配置期望的BFD收发包速率及检测倍数。
这个配置将影响接口上所有的BFD会话。实际的收发包速率需要和会话的对端协商决定。
举例说明
这个例子将接口期望的收包速率和发包速率都设置为3毫秒,将检测间隔倍数设置为3
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# bfd interval mintx 3 minrx 3 multiplier 3
相关命令
无
14.17.2bfd NAME peer-ip A.B.C.D interface
命令功能
使用该命令配置一条单跳BFD会话。
使用该命令的“no”格式删除这条会话。
命令语法
bfd NAME peer-ip A.B.C.D ( vrf NAME | ) interface ( IFPHYSICAL | IFVLAN | IFAGG ) ( source-ip A.B.C.D | ) ( auto | local LDISR remote RDISR )
no bfd NAME
参数 |
参数说明 |
参数取值 |
peer-ip A.B.C.D |
指定bfd session的目的ip地址 |
IPv4 地址 |
vrf NAME |
bfd session的vrf 域 |
- |
interface |
单跳bfd session绑定的接口 |
- |
Source-ip A.B.C.D |
指定bfd的源ip 地址 |
IPv4 地址 |
auto |
自动分配bfd session的本地标识符 |
- |
LDISR |
指定bfd本地标识符 |
257-8191 |
RDISR |
指定bfd源端标识符 |
1-4294967295 |
命令模式
全局配置模式
默认配置
默认情况下系统不会创建bfd session。
使用说明
使用此命令创建静态单跳bfd ,如果创建的bfd 配置参数满足条件,即可以创建bfd session。当不满足条件时,配置保存,但是不会创建bfd session。用户需要自己检测创建bfd 不满足条件。配置时不做合法性检查,用户可以通过show bfd static configurations查看配置的bfd 信息。
满足条件:
1.目的ip地址与绑定接口的ip地址在同网段内。
2.若配置vrf信息,则vrf要与绑定的接口在同一个vrf内。若没有配置,则bfd在默认VRF内
3.若指定源ip地址,则该指定的源ip地址要为绑定接口上的ip地址。若没有指定,则获取与目的ip地址同网段的ip地址,如果有多个同网段ip地址,则主ip地址优先,次之是ip地址较小者。
若指定本地和源端标识符,则使用指定的。若没有指定,则系统自动分配本地标识符
举例说明
这个例子创建了一个名为test的单跳bfd session
Switch# configure terminal
Switch(config)# bfd test peer-ip 9.9.9.2 interface eth-0-9 local 10 remote 20
相关命令
ip route
14.17.3bfd NAME peer-ip A.B.C.D source-ip
命令功能
使用该命令配置一条多跳BFD会话。
使用该命令的“no”格式删除这条会话。
命令语法
bfd NAME peer-ip A.B.C.D source-ip A.B.C.D ( auto | local LDISR remote RDISR )
no bfd NAME
参数 |
参数说明 |
参数取值 |
NAME |
bfd session的名称 |
不超过16个字符的字符串 |
peer-ip A.B.C.D |
指定bfd session的目的ip地址 |
IPv4 地址 |
Source-ip A.B.C.D |
指定bfd的源ip 地址 |
IPv4 地址 |
auto |
自动分配bfd session的本地标识符 |
- |
LDISR |
指定bfd本地标识符 |
257-8191 |
RDISR |
指定bfd源端标识符 |
1-4294967295 |
命令模式
全局配置模式
默认配置
默认情况下系统不会创建bfd session。
使用说明
使用此命令创建静态多跳bfd ,如果创建的bfd 配置参数满足条件,即可以创建bfd session。当不满足条件时,配置保存,但是不会创建bfd session。用户需要自己检测创建bfd 不满足条件。配置时不做合法性检查,用户可以通过show bfd static configurations查看配置的bfd 信息。
满足条件:
1.指定源ip地址,则该指定的源ip地址要为本地三层接口上的ip地址。
若指定本地和源端标识符,则使用指定的。若没有指定,则系统自动分配本地标识符
举例说明
这个例子创建了一个名为test的多跳bfd session
Switch# configure terminal
Switch(config)# bfd test peer-ip 9.9.9.2 source 10.10.10.1 local 10 remote 20
相关命令
ip route
14.17.4bfd set interval
命令功能
使用该命令配置bfd session的收发包间隔时间。
使用该命令的“no”格式删除这条配置。
命令语法
bfd set interval mintx MINTX minrx MINRX multiplier MULTIPLIER
no bfd set interval
参数 |
参数说明 |
参数取值 |
MINTX |
bfd session支持最小的发包时间 |
3-1000 毫秒 |
MINRX |
bfd session 支持最小的收包时间 |
3-1000 毫秒 |
MULTIPLIER |
检测倍数 |
2-15 |
命令模式
BFD配置模式
默认配置
默认情况下BFD 收发包时间来源于接口上的收发配置时间,接口默认收发包时间为20ms。
使用说明
使用此命令为该bfd session配置最小支持的收包和发包时间以及检测倍数,per-session控制。
举例说明
这个例子为名为”test”的bfd session 配置收发包时间
Switch# configure terminal
Switch(config)# bfd test
Switch(config-ip-bfd)bfd set interval mintx 30 minrx 30 multiplier 5
相关命令
show bfd session detail
14.17.5bfd global dscp
命令功能
使用该命令全局配置多跳的DSCP值。
使用该命令的“no”格式删除这条配置。
命令语法
bfd set dscp DSCP
no bfd global dscp
参数 |
参数说明 |
参数取值 |
DSCP |
多跳报文IP头携带的DSCP字段值,报文优先级 |
0-63 |
命令模式
全局配置模式
默认配置
默认情况下多跳BFD DSCP值为56
使用说明
使用此命令为多跳bfd session全局配置DSCP值
举例说明
这个例子表明全局模式下配置多跳的DSCP值为63
Switch# configure terminal
Switch(config)# bfd global dscp 63
相关命令
show bfd session detail
14.17.6bfd set dscp
命令功能
使用该命令配置单个多跳bfd session的dscp值。
使用该命令的“no”格式删除这条配置。
命令语法
bfd set dscp DSCP
no bfd set dscp
参数 |
参数说明 |
参数取值 |
DSCP |
多跳报文IP头携带的DSCP字段值,报文优先级 |
0-63 |
命令模式
BFD配置模式
默认配置
默认情况下多跳BFD的IP头DSCP值为56,如果配置全局模式且又为每个session配置了DSCP,则以BFD session上配置的DSCP值为标准。
使用说明
在全局配置DSCP和bfd sesison上都配置了DSCP时,bfd session上配置的DSCP生效,如果删除bfd session配置,则恢复到全局配置的DSCP值。
举例说明
这个例子表明为bfd test配置DSCP值为63
Switch# configure terminal
Switch(config)bfd test
Switch(config-ip-bfd)# bfd set dscp 63
相关命令
show bfd session detail
14.17.7show bfd
命令功能
使用该命令显示BFD模块运行状态。
命令语法
show bfd
命令模式
特权模式
默认配置
无
使用说明
使用该命令显示BFD模块运行状态。
举例说明
这个例子是该命令的显示结果
Switch# show bfd
BFD ID: 00 Start Time:Thu May 2 03:09:41 2013
Number of Sessions: 2
Slow Timer: 1000 Image type: DISTRIBUTED
Echo Mode: Disabled BFD Notifications disabled
Next Session Discriminator: 10
BFD Clients:
STATIC -> Client ID: 1
OSPF-> Client ID: 4
相关命令
无
14.17.8show bfd static configurations
命令功能
使用该命令显示BFD的静态配置。
命令语法
show bfd static configurations ( word | )
命令模式
特权模式
默认配置
无
使用说明
使用该命令显示BFD的静态配置信息。
后面跟参数为bfd session的名称,指定名称,只显示这个bfd的静态配置
举例说明
这个例子是该命令的显示结果
Switch# show bfd static configurations
--------------------------------------------------------------------------------------------------------------------------------
Name Type VRF LocalDiscr RemoteDiscr Src Ip Dst Ip interface Status
test1 single-hop default - - 10.10.10.1 10.10.10.2 vlan10 active
test2 single-hop test - - 9.9.9.1 9.9.9.2 vlan4094 active
test3 single-hop default 8191 4294967295 10.10.10.1 10.10.10.3 vlan10 active
相关命令
无
14.17.9show bfd session
命令功能
使用该命令显示BFD的会话。
命令语法
show bfd session ( detail | )
show bfd session SRC DST interface IFNAME ( detail | )
show bfd session SRC DST ( detail | )
show bfd session discriminator SESS ( detail | )
参数 |
参数说明 |
参数取值 |
detail |
显示会话详细信息 |
- |
SRC |
源端IP地址 |
IPv4 地址 |
DST |
对端IP地址 |
IPv4 地址 |
IFNAME |
BFD接口 |
支持物理端口,聚合端口,VLAN端口 |
discriminator SESS |
BFD 会话ID |
1-4294967295 |
命令模式
特权模式
默认配置
无
使用说明
使用该命令显示BFD的会话。
使用关键字“detail”显示详细信息。
可以通过指定源端、目的端IP地址和会话所在的接口过滤显示结果。
举例说明
这个例子是该命令的显示结果
DUT1# show bfd session
Abbreviation:
LD: Local Discriminator. RD: Remote Discriminator
S: Single hop session. M: Multi hop session.
SD: Static Discriminator. DD: Dynamic Discriminator
A: Admin down. D:Down. I:Init. U:Up.
============================================================================
LD RD TYPE ST UP-Time Remote-Addr VRF
8191 4294967295 S-SD D 00:00:00 10.10.10.3 default
8192 0 S-DD D 00:00:00 11.11.11.2 yoush
8193 0 S-DD D 00:00:00 10.10.10.2 default
8194 0 S-DD D 00:00:00 9.9.9.2 test
Number of Sessions: 4
DUT1# show bfd session detail
======================================================
Session Interface : vlan10 Session Name : test3
Lower Layer : IPv4 Version : 1
Session Type : Single Hop Session State : Down
Discriminator Type : Static DSCP : 0
Local Discriminator : 8191 Local Address : 10.10.10.1
Remote Discriminator: 4294967295 Remote Address: 10.10.10.3
Local Port : 49155 Remote Port : 3784
vrf : default
Diagnostics : None
Timers in Milliseconds :
Min Tx: 20 Min Rx: 20 Multiplier: 3
Neg Tx: 4 Neg Rx: 20 Neg detect mult: 3
Sess up time : 00:00:00
Sess down time : 00:00:00
Bind Application : -
----------------------------------------------------------
Session Interface : vlan11 Session Name : -
Lower Layer : IPv4 Version : 1
Session Type : Single Hop Session State : Down
Discriminator Type : Dynamic DSCP : 0
Local Discriminator : 8192 Local Address : 11.11.11.1
Remote Discriminator: 0 Remote Address: 11.11.11.2
Local Port : 49152 Remote Port : 3784
vrf : yoush
Diagnostics : None
Timers in Milliseconds :
Min Tx: 20 Min Rx: 20 Multiplier: 3
Neg Tx: 4 Neg Rx: 20 Neg detect mult: 3
Sess up time : 00:00:00
Sess down time : 00:00:00
Bind Application : VRRP
----------------------------------------------------------
相关命令
无
14.17.10show resource bfd static configurations
命令功能
使用此命令显示静态配置BFD的资源数量
命令语法
show resource bfd static configurations
命令模式
用户模式
默认配置
无
使用说明
该命令显示静态配置BFD的数量和资源数量
举例说明
这个例子是该命令的显示结果
Switch# show resource bfd static configurations
Switch# show resource bfd static configurations
BFD (Static-BFD, Vrrp-BFD)
Resource Used Capability
=============================================================
BFD static configuration
相关命令
无
14.17.11show bfd interface
命令功能
使用该命令显示BFD在接口上的配置状态。
命令语法
show bfd interface ( IFNAME | all | )
参数 |
参数说明 |
参数取值 |
IFNAME |
BFD接口 |
支持物理端口,聚合端口,VLAN端口 |
命令模式
特权模式
默认配置
无
使用说明
使用该命令显示BFD在接口上的配置状态。
可显示指定接口,或显示全部接口。
举例说明
这个例子是该命令的显示结果
Switch# show bfd interface eth-0-9
Interface: eth-0-9 ifindex: 9 state: UP
Interface level configuration: NO ECHO, NO SLOW TMR
Timers in Milliseconds
Min Tx: 1 Min Rx: 1 Multiplier: 3
----------------------------------------------------------
Number of Sessions: 2
BFD discriminator: 8193 BFD state: DOWN
BFD discriminator: 8191 BFD state: DOWN
相关命令
无
14.17.12sbfd NAME
命令功能
使用该命令配置一条SBFD会话。
使用该命令的“no”格式删除这条会话。
命令语法
sbfd NAME peer-ip A.B.C.D interface ( IFPHYSICAL | IFVLAN | IFAGG ) ( source-ip A.B.C.D | )
no bfd NAME
参数 |
参数说明 |
参数取值 |
NAME |
sbfd session的名称 |
长度为1-16个字符的字符串 |
peer-ip A.B.C.D |
指定sbfd session的目的ip地址 |
IP地址 |
interface |
单跳sbfd session绑定的接口 |
Physical/vlan/agg 端口 |
Source-ip A.B.C.D |
指定sbfd的源ip 地址 |
IP地址 |
命令模式
全局配置模式
默认配置
默认情况下系统不会创建sbfd session。
使用说明
使用此命令创建sbfd ,如果创建的sbfd 配置参数满足条件,即可以创建sbfd session。当不满足条件时,配置保存,但是不会创建sbfd session。用户需要自己检测创建sbfd 不满足条件。配置时不做合法性检查,用户可以通过show bfd static configurations查看配置的sbfd 信息。
满足条件:
1.目的ip地址与绑定接口的ip地址在同网段内。
2.若配置vrf信息,则vrf要与绑定的接口在同一个vrf内。若没有配置,则bfd在默认VRF内
3.若指定源ip地址,则该指定的源ip地址要为绑定接口上的ip地址。若没有指定,则获取与目的ip地址同网段的ip地址,如果有多个同网段ip地址,则主ip地址优先,次之是ip地址较小者。
若指定本地和源端标识符,则使用指定的。若没有指定,则系统自动分配本地标识符。
举例说明
这个例子表明创建一个名为test的sbfd session
Switch (config)# sbfd test peer-ip 9.9.9.2 interface eth-0-9
相关命令
ip route
14.17.13sbfd-initiator
命令功能
使用该命令来创建并进入sbfd initiator模式。
使用该命令的”no”格式删除该模式。
命令语法
sbfd-initiator
no sbfd-initiator
命令模式
全局配置模式
默认配置
无
使用说明
如果sbfd initiator模式不存在,使用该命令可以创建该模式并进入模式;如果该模式已经存在,则进入该模式。
举例说明
下面这个例子创建并进入sbfd initiator模式
Switch(config)# sbfd-initiator
Switch(config-sbfd-initiator)#
相关命令
无
14.17.14sbfd-reflector
命令功能
使用该命令来创建并进入sbfd reflector模式。
使用该命令的”no”格式删除该模式。
命令语法
sbfd- reflector
no sbfd- reflector
命令模式
全局配置模式
默认配置
无
使用说明
如果sbfd initiator模式不存在,使用该命令可以创建该模式并进入模式;如果该模式已经存在,则进入该模式。
举例说明
下面这个例子创建并进入sbfd initiator模式
Switch(config)# sbfd-reflector
Switch(config-sbfd-reflector)#
相关命令
无
14.17.15remote-target
命令功能
使用该命令来配置sbfd initiator中的远端描述符。
使用该命令的”no”格式删除该配置。
命令语法
remote-target ipv4 A.B.C.D DISCRIMINATOR
no remote-target ipv4 A.B.C.D
参数 |
参数说明 |
参数取值 |
A.B.C.D |
远端ipv4地址 |
IP地址 |
DISCRIMINATOR |
对应上述地址的远端描述符 |
1-4294967295 |
命令模式
Sbfd-initiator 配置模式
默认配置
无
使用说明
使用该命令来配置sbfd initiator中的远端描述符。这个描述符相当于对端sbfd reflector的local discriminator。这个描述符也可以通过ospf或者isis等动态协议进行分发,这里是通过静态命令行进行配置。
举例说明
下面这个例子创建sbfd initiator中的远端描述符
Switch(config-sbfd-initiator)# remote-target ipv4 12.1.1.2 1
相关命令
local-discriminator
14.17.16local-discriminator
命令功能
使用该命令来配置sbfd reflector中的本地描述符。
使用该命令的”no”格式删除该配置。
命令语法
local-discriminator ( dynamic | DISCRIMINATOR )
no local-discriminator
参数 |
参数说明 |
参数取值 |
dynamic |
动态分配sbfd reflector的本地描述符 |
- |
DISCRIMINATOR |
静态配置sbfd reflector的本地描述符 |
1-256 |
命令模式
Sbfd-reflector 配置模式
默认配置
无。
使用说明
使用该命令来配置sbfd reflector中的本地描述符。这个描述符和sbfd initiator中的remote-target里配置的描述符应该是对应的。
举例说明
下面这个例子创建sbfd reflector中的本地描述符
Switch(config-sbfd-reflector)# local-discriminator 1
相关命令
remote-target
14.17.17show sbfd target
命令功能
使用该命令来显示sbfd initiator中配置的远端描述符。
命令语法
show sbfd target ( ipv4 | )
命令模式
特权模式
默认配置
无。
使用说明
使用该命令来显示sbfd initiator中配置的远端描述符。
举例说明
下面这个例子来显示sbfd initiator中的远端描述符
Switch# show sbfd target ipv4
Static SBFD target status:
Target Address Remote Discriminator
----------------------------------------
12.1.1.2 1
13.1.1.3 2
相关命令
remote-target
14.17.18bfd NAME peer-ip X:X::X:X interface
命令功能
使用该命令配置一条单跳IPv6 BFD会话。
使用该命令的“no”格式删除这条会话。
命令语法
bfd NAME peer-ip X:X::X:X ( vrf NAME | ) interface ( IFPHYSICAL | IFVLAN | IFAGG ) ( source-ip X:X::X:X | ) ( auto | local LDISR remote RDISR )
no bfd NAME
参数 |
参数说明 |
参数取值 |
NAME |
bfd session的名称 |
不超过16个字符的字符串 |
peer-ip X:X::X:X |
指定bfd session的目的ipv6地址 |
IPv6 地址 |
vrf NAME |
bfd session的vrf 域 |
- |
interface |
单跳bfd session绑定的接口 |
- |
Source-ip X:X::X:X |
指定bfd的源ipv6 地址 |
IPv6 地址 |
auto |
自动分配bfd session的本地标识符 |
- |
LDISR |
指定bfd本地标识符 |
257-8191 |
RDISR |
指定bfd源端标识符 |
1-4294967295 |
命令模式
全局配置模式
默认配置
默认情况下系统不会创建ipv6 bfd session。
使用说明
使用此命令创建静态单跳ipv6 bfd ,如果创建的bfd 配置参数满足条件,即可以创建bfd session。当不满足条件时,配置保存,但是不会创建bfd session。用户需要自己检测创建bfd 不满足条件。配置时不做合法性检查,用户可以通过show bfd static configurations查看配置的bfd 信息。
满足条件:
1.目的ipv6地址与绑定接口的ipv6地址在同网段内。
2.若配置vrf信息,则vrf要与绑定的接口在同一个vrf内。若没有配置,则bfd在默认VRF内
3.若指定源ipv6地址,则该指定的源ipv6地址要为绑定接口上的ipv6地址。若没有指定,则获取与目的ipv6地址同网段的ipv6地址,如果有多个同网段ipv6地址,则ipv6地址较小者优先。
若指定本地和源端标识符,则使用指定的。若没有指定,则系统自动分配本地标识符
举例说明
这个例子创建了一个名为test的单跳ipv6 bfd session
Switch# configure terminal
Switch(config)# bfd test peer-ip 2001:1::2 interface eth-0-9 local 10 remote 20
相关命令
ipv6 route
14.17.19bfd NAME peer-ip X:X::X:X source-ip
命令功能
使用该命令配置一条多跳IPv6 BFD会话。
使用该命令的“no”格式删除这条会话。
命令语法
bfd NAME peer-ip X:X::X:X source-ip X:X::X:X ( auto | local LDISR remote RDISR )
no bfd NAME
参数 |
参数说明 |
参数取值 |
NAME |
bfd session的名称 |
不超过16个字符的字符串 |
peer-ip X:X::X:X |
指定bfd session的目的ipv6地址 |
IPv6 地址 |
Source-ip X:X::X:X |
指定bfd的源ipv6 地址 |
IPv6 地址 |
auto |
自动分配bfd session的本地标识符 |
- |
LDISR |
指定bfd本地标识符 |
257-8191 |
RDISR |
指定bfd源端标识符 |
1-4294967295 |
命令模式
全局配置模式
默认配置
默认情况下系统不会创建ipv6 bfd session。
使用说明
使用此命令创建静态多跳ipv6 bfd ,如果创建的bfd 配置参数满足条件,即可以创建bfd session。当不满足条件时,配置保存,但是不会创建bfd session。用户需要自己检测创建bfd 不满足条件。配置时不做合法性检查,用户可以通过show bfd static configurations查看配置的bfd 信息。
满足条件:
1.指定源ipv6地址,则该指定的源ipv6地址要为本地三层接口上的ipv6地址。
若指定本地和源端标识符,则使用指定的。若没有指定,则系统自动分配本地标识符
举例说明
这个例子创建了一个名为test的多跳ipv6 bfd session
Switch# configure terminal
Switch(config)# bfd test peer-ip 2001:1::2 source 1234:5::6 local 10 remote 20
相关命令
ipv6 route
14.17.20show bfd add-fail-session
命令功能
使用这条命令查看被加入fail_list中的bfd session
命令语法
show bfd add-fail-session
命令模式
特权模式
默认配置
无。
使用说明
使用这条命令查看加入fail_list中的bfd session
举例说明
下面这个例子来显示fail_list中的bfd session
Switch# show bfd add-fail-session
DUT1# show bfd add-fail-session
========================================================
Name Type Src Ip Dst Ip
ccc single-hop 4.4.4.1 4.4.4.2
相关命令
无
14.17.21wtr
命令功能
使用该命令配置期望的BFD变为up时延迟上报的间隔时间。
使用该命令的“no”格式恢复默认值。
命令语法
wtr VALUE
no wtr
参数 |
参数说明 |
参数取值 |
VALUE |
配置BFD延迟上报时间间隔 |
30-3600 秒 |
命令模式
BFD配置模式
默认配置
无
使用说明
使用该命令配置期望的BFD变为up时延迟上报的间隔时间。
举例说明
这个例子将延迟上报时间设置为120秒
Switch# configure terminal
Switch(config)# bfd test1
Switch(config-if)# wtr 120
相关命令
无
14.18UDP Helper命令
14.18.1ip udp-helper enable
命令功能
使用此命令配置使能udp-helper功能。
命令语法
ip udp-helper enable
命令模式
全局配置模式
默认配置
不使能
使用说明
udp-helper一旦使能,默认的6种udp目的端口37, 49, 53, 69, 137, 138将会配置好。
举例说明
如下的例子显示如何使能udp-helper
Switch# configure terminal
Switch(config)# ip udp-helper enable
相关命令
无
14.18.2ip udp-helper disable
命令功能
使用此命令配置不使能udp-helper功能。
命令语法
ip udp-helper disable
命令模式
全局配置模式
默认配置
不使能
使用说明
udp-helper一旦去使能,所有配置好的udp目的端口将会被清除。
举例说明
如下的例子显示如何去使能udp-helper
Switch# configure terminal
Switch(config)# ip udp-helper disable
相关命令
无
14.18.3ip udp-helper port
命令功能
使用此命令配置udp-helper的端口号,使用此命令的no形式清除配置好的udp-helper端口号。
命令语法
ip udp-helper port ( NUM | dns | netbios-ds | netbios-ns | tacacs | tftp | time )
no ip udp-helper port ( NUM | dns | netbios-ds | netbios-ns | tacacs | tftp | time )
参数 |
参数说明 |
参数取值 |
NUM |
UDP报文目的端口号 |
<1-65535> |
dns |
Domain Name Service(53) |
- |
netbios-ds |
NetBios datagram service(138) |
- |
netbios-ns |
NetBios name service(137) |
- |
tacacs |
TAC Access Control System(49) |
- |
tftp |
Trivial File Transfer Protocol(69) |
- |
time |
Time service(37) |
- |
命令模式
全局配置模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何配置udp-helper的port
Switch# configure terminal
Switch(config)# ip udp-helper port 30
如下的例子显示如何清除udp-helper的port
Switch# configure terminal
Switch(config)# no ip udp-helper port 30
相关命令
无
14.18.4ip udp-helper server
命令功能
使用此命令在端口上配置udp-helper的server ip,使用此命令的no形式清除端口上udp-helper的server ip。
命令语法
ip udp-helper server IP_ADDR
ip udp-helper server ( IP_ADDR | )
参数 |
参数说明 |
参数取值 |
IP_ADDR |
IPv4地址 |
- |
命令模式
端口配置模式
默认配置
无
使用说明
UDP-Helper server只能在三层物理口上、三层agg口上、vlanifterface上配置。
AGG member口上也不允许配置。
举例说明
如下的例子显示如何配置udp-helper server是1.1.1.1
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no switchport
Switch(config-if)# ip udp-helper server 1.1.1.1
如下的例子显示如何清除udp-helper server是1.1.1.1
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# no switchport
Switch(config-if)# no ip udp-helper server 1.1.1.1
相关命令
无
14.18.5show ip udp-helper server
命令功能
使用此命令查看udp-helper的server配置信息。
命令语法
show ip udp-helper server (interface IFMANE | )
参数 |
参数说明 |
参数取值 |
IFMANE |
端口名称 |
- |
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何显示udp-helper的server信息
Switch# show ip udp-helper server
Switch# show ip udp-helper server
Interface Server IP Packet Received Packet Dropped
--------------+----------------+---------------+---------------
eth-0-1 1.1.1.1 0 0
相关命令
无
14.18.6show resource udp-helper
命令功能
使用此命令查看udp-helper的port的资源信息。
命令语法
show resource udp-helper
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何查看udp-helper port的资源信息
Switch# show resource udp-helper
Switch# show resource udp-helper
Udp-Helper
Resource Used Capability
=============================================================
Udp-Helper Port 6 184
相关命令
无
14.18.7clear ip udp-helper statistics
命令功能
使用此命令清除端口上udp-helper的统计信息。
命令语法
clear ip udp-helper statistics
命令模式
特权模式
默认配置
无
使用说明
无
举例说明
如下的例子显示如何清除端口上udp-helper的统计信息
Switch# clear ip udp-helper statistics
相关命令
无