VLT 对等交换机上的生成树
生成树默认处于启用状态,建议用于防止 VLT 域中出现环路。VLT 端口支持快速每 VLAN 生成树 (RPVST)(默认)和快速生成树协议 (RSTP) 模式。
OS10# configure terminal
OS10(config)# spanning-tree mode rstp [or] rapid-pvst
创建 VLT 域并配置 VLT 互连 (VLTi)
|----------------------------------------------------------------|---------------------------------|
| OS10# configure terminal | 输入配置模式。 |
| OS10(config)# interface range ethernet 1/1/1-1/1/2 | 进入接口配置模式 |
| OS10(conf-range-eth1/1/1-1/1/2)# no switchport | 从 VLTi 端口删除交换机端口。 |
| OS10(config)# vlt-domain 1 | 通过在每个对等交换机上配置相同的域 ID 来创建 VLT 域。 |
| OS10(conf-vlt-1)# discovery-interface ethernet 1/1/1 | 设置 VLTi 接口。 |
| OS10(conf-vlt-1)# discovery-interface ethernet 1/1/2 | 设置 VLTi 接口。 |
配置 VLT 优先级、VLT MAC 地址和 VLT 备份链路
|-------------------------------------------------------------------------------------------------------------------------------------|---------------------------------|
| OS10# configure terminal | 输入配置模式。 |
| OS10(config)# vlt-domain 1 | 进入 VLT 域配置模式。 |
| OS10(conf-vlt-1)# primary-priority 4096 (primary peer) OS10(conf-vlt-1)# primary-priority 8192 (secondary peer) | 为每个对等交换机指定 VLT 优先级。 |
| OS10(conf-vlt-1)# vlt-mac 00:11:22:33:44:55 | 使用唯一 MAC 地址指定 VLT MAC 地址。 |
| OS10(conf-vlt-1)# backup destination 1.1.1.2 (primary peer) OS10(conf-vlt-1)# backup destination 1.1.1.1 (secondary peer) | 指定对等交换机的管理IP地址。 此操作设置监控系统的检测信号。 |
**提醒:**网络中的每个 VLT 域都必须使用单独的唯一 MAC 地址。此 MAC 地址在 VLT 域中的两台交换机上必须相同。
为已连接的终端设备配置 LAG
以下示例使用 LACP 端口通道中两个 VLT 对等节点上的以太网 1/1/10 连接到一个终端设备。
|--------------------------------------------------------------|---------------------------------|
| OS10# configure terminal | 输入配置模式。 |
| OS10(config)# interface port-channel 5 | 指定终端设备的 LAG。在两个对等上使用相同的 LAG 编号。 |
| OS10(conf-if-po-5)# vlt-port-channel 5 | 将 LAG 指定为 VLT。 |
| OS10(conf-if-po-5)# exit | 退出 |
| OS10(config)# interface ethernet 1/1/10 | 进入接口配置模式。 |
| OS10(conf-if-eth1/1/10)# channel-group 5 mode active | 指定端口上的 LAG。 |
验证端口通道是否正常运行:
OS10# show vlt 1 vlt-port-detail
VLT port channel ID : 5
VLT Unit ID Port-Channel Status Configured ports Active ports
----------------------------------------------------------------------------------
*1 port-channel5 up 1 1
2 port-channel5 up 1 1
验证和监控
OS10# show vlt 1
Domain ID : 1
Unit ID : 1
Role : primary
Version : 1.0
Local System MAC address : 90:b1:1c:f4:xx:xx
VLT MAC address : 00:11:22:33:44:55
IP address : fda5:74c8:xxxx:1::1
Delay-Restore timer : 1000 seconds
Peer-Routing : Disabled
Peer-Routing-Timeout timer : 0 seconds
VLTi Link Status
port-channel1000 : up
VLT Peer Unit ID System MAC Address Status IP Address Version
--------------------------------------------------------------------------
2 90:b1:1c:f4:xx:xx up fda5:74c8:xxxx:1::2 1.0
OS10# show vlt 1 mismatch
Peer-routing mismatch:
No mismatch
VLAN mismatch:
No mismatch
VLT VLAN mismatch:
No mismatch
OS10# show running-configuration vlt
!
vlt domain 1
discovery-interface ethernet 1/1/1
discovery-interface ethernet 1/1/2
primary-priority 4096
vlt-mac 00:11:22:33:44:55
backup destination 1.1.1.2
!
interface port-channel 5
vlt-port-channel 5