交换机堆叠及聚合
- 2台交换机实现IRF 虚拟化配置
配置Device A
[Sysname] interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50
[Sysname-if-range] shutdown
[Sysname-if-range] quit #
配置 IRF 端口 1/2,并将它与物理端口 Ten-GigabitEthernet1/0/49 和 Ten-GigabitEthernet1/0/50 绑定
[Sysname] irf-port 1/1
[Sysname-irf-port1/1] port group interface Ten-GigabitEthernet 1/0/49
[Sysname-irf-port1/1] port group interface Ten-GigabitEthernet 1/0/50
[Sysname-irf-port1/1] quit
开启 Ten-GigabitEthernet1/0/49~Ten-GigabitEthernet1/0/50 端口,并保存配置。
[Sysname] interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50
[Sysname-if-range] undo shutdown
[Sysname-if-range] quit
[Sysname] save
激活 IRF 端口下的配置。
[Sysname] irf-port-configuration active
配置 Device B
将 Device B 的成员编号配置为 2,并重启设备使新编号生效。
[Sysname] irf member 1 renumber 2 Renumbering the member ID may result in configuration change or loss. Continue? [Y/N]:y
[Sysname] quit
根据 图 1-14 选定IRF物理端口并进行物理连线。
重新登录到设备,关闭选定的所有 IRF 物理端口
[Sysname] interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
[Sysname-if-range] shutdown
[Sysname-if-range] quit
配置 IRF 端口 2/1,并将它与物理端口 Ten-GigabitEthernet2/0/51 和 Ten-GigabitEthernet2/0/50 绑定。
[Sysname] irf-port 2/1
[Sysname-irf-port2/1] port group interface Ten-GigabitEthernet 2/0/51
[Sysname-irf-port2/1] port group interface Ten-GigabitEthernet 2/0/52
[Sysname-irf-port2/1] quit
[Sysname] interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50
[Sysname-if-range] undo shutdown
[Sysname-if-range] quit
[Sysname] save
激活 IRF 端口下的配置。
[Sysname] irf-port-configuration active
<QC_ACC_SW_1F_1C> dis cu
sysname QC_ACC_SW_1F_1C
telnet server enable
local-user admin class manage
password admin
service-type telnet
authorization-attribute user-role level-15
authorization-attribute user-role network-operator
dhcp snooping enable
dhcp snooping binding database filename dhcp
vlan 1
vlan 21
description R&D pvsclient
interface Bridge-Aggregation1 //上行聚合虚端口
port link-type trunk
port trunk permit vlan 1 21
link-aggregation mode dynamic
dhcp snooping trust
interface Ten-GigabitEthernet1/0/52 //上行聚合子接口
port link-aggregation group 1
interface Ten-GigabitEthernet2/0/52 //上行聚合子接口
port link-aggregation group 1
interface Vlan-interface1 //交换机管理地址
ip address 10.110.1.61 255.255.255.0
interface GigabitEthernet1/0/1 //业务端口
port access vlan 21
stp edged-port
ip verify source ip-address mac-address //源IP地址检测
loopback-detection enable vlan 21
dhcp snooping binding record //DHCP地址记录
ip route-static 0.0.0.0 0 10.110.1.254
snmp-agent
snmp-agent community write private
snmp-agent community read public
snmp-agent sys-info version v2c v3
return
聚合
interface Bridge-Aggregation1
port link-type trunk
port trunk permit vlan 1 22 31
link-aggregation mode dynamic
dhcp snooping trust
[QC_VCORE_L3SW-Bridge-Aggregation71]dis th
interface Bridge-Aggregation71
description TO_QC_ACC_SW_1F_2C
port link-type trunk
port trunk permit vlan 1 21 to 22 31
link-aggregation mode dynamic
[QC_VCORE_L3SW-Bridge-Aggregation72]dis th
interface Bridge-Aggregation72
description TO_QC_ACC_SW_1F_2D
port link-type trunk
port trunk permit vlan 1 21 to 22 31
link-aggregation mode dynamic