第二部分:DHS-3209MP 3218MP 3226MP软件配置手册 下载本文

内容发布更新时间 : 2024/5/22 3:49:26星期一 下面是文章的全部内容请认真阅读。

软件配置手册

show l2-tunnel interface [ interface-list ] 例如:

!显示所有端口的l2-tunnel开启状态 D-Link(config)#show l2-tunnel interface

3.8.5 配置/取消l2-tunnel丢弃门限

配置二层协议隧道报文送往cpu的速率,请在全局配置模式下进行下列配置: ? 配置l2-tunnel报文送往cpu的速率

l2-tunnel drop-threshold [ cdp | pagp | lacp | stp | udld | vtp ] target-rate ? 取消l2-tunnel报文送往cpu的速率限制

no l2-tunnel drop-threshold [ cdp | pagp | lacp | stp | udld | vtp ] 参数说明:

cdp:对cisco 的cdp报文进行tunnel pagp:对cisco 的pagp报文进行tunnel lacp: 对lacp报文进行tunnel stp: 对stp报文进行tunnel

udld:对cisco 的udld报文进行tunnel vtp:对cisco 的vtp报文进行tunnel

3-21

软件配置手册

target-rate:对报文进行控制的目标速率 例如:

!配置cpu接收stp报文的速率为10pps D-Link(config)#l2-tunnel drop-threshold stp 10

3.8.6 显示l2-tunnel丢弃门限信息

在任意模式下显示:

? 显示二层协议隧道报文送往cpu的速率 show l2-tunnel drop-threshold 例如:

!显示l2-tunnel drop-threshold的配置信息 D-Link(config)#show l2-tunnel drop-threshold

3.9 VPRB配置

3.9.1 VPRB简介

VPRB(vlan port redundancy backup)功能是VLAN端口的备份功能,若vlan中有多个端口时,可以指定其中一个端口为主端口,另一个端口为主端口的备份端口。在主备端口都正常的情况下,主端口为forwarding状态,备份端口为discarding状态,该vlan的所有业务报文从主端口发送。当主端口出现故障而不能转发报文时,

3-22

软件配置手册

立即把备份端口置为forwarding状态,之前在主端口上转发的报文就会切换到备份端口上,若主端口恢复正常则立即把业务报文再切换回主端口上,从而达到vlan端口备份的目的。

为了实现批量vlan的端口备份和链路的负载分担,VPRB需要和MSTP功能配合使用,首先把需要备份的vlan添加到MSTP实例中,然后再配置该MSTP实例的主端口和备份端口。

3.9.2 VPRB配置任务列表

? 配置/删除VPRB端口备份 ? 显示VPRB配置信息

3.9.3 配置/删除VPRB端口备份

对MSTP实例中的vlan端口进行备份,请在全局配置模式下进行下列配置: ? 配置VPRB端口备份

vprb major-port ethernet port-id bak-port ethernet port-id instance inst-id ? 删除VPRB端口备份

no vprb major-port ethernet port-id 参数说明:

port-id:vlan端口备份的主端口或备份端口 inst-id:vlan所在的MSTP实例号

3-23

软件配置手册

例如:

!先把需要进行端口备份的vlan 1-10添加到MSTP实例1中 D-Link(config)#spanning-tree mst instance 1 vlan 1-10

!再对MSTP实例1中的vlan端口进行备份,指定主端口为1备份端口为2 D-Link(config)#vprb major-port ethernet 0/0/1 bak-port ethernet 0/0/2 instance 1

3.9.4 显示VPRB配置信息

在任意模式下显示: ? 显示VPRB配置信息 show vprb 例如:

!显示VPRB配置信息 D-Link(config)#show vprb

3-24

软件配置手册

3-1