sysname qingcloud-SJZXGL # 时区处理 clock timezone UTC add 08:00:00 clock protocol none # vlan 配置 vlan 250 interface Vlan-interface250 ip address 172.1.1.254 255.255.255.0 # 带外管理口配置 ip vpn-instance MGT interface M-GigabitEthernet0/0/0 ip binding vpn-instance MGT ip address 172.3.1.250 24 ip route-static vpn-instance MGT 0.0.0.0 0 172.3.1.254 # 开启telnet server telnet server enable # 远程telnet 用户配置 line vty 0 4 authentication-mode scheme user-role network-admin user-role network-operator local-user LBMY class manage password simple ********* service-type telnet authorization-attribute user-role level-15 authorization-attribute user-role network-operator # 堆叠 # 第一台 interface Twenty-FiveGigE 1/0/47 shutdown interface Twenty-FiveGigE 1/0/48 shutdown irf-port 1/2 port group interface Twenty-FiveGigE 1/0/47 port group interface Twenty-FiveGigE 1/0/48 interface Twenty-FiveGigE 1/0/47 no shutdown interface Twenty-FiveGigE 1/0/48 no shutdown irf mac-address persistent always irf auto-update enable undo irf link-delay irf member 1 priority 31 # 第二台 irf member 1 renumber 2 quit reboot interface Twenty-FiveGigE 2/0/47 shutdown interface Twenty-FiveGigE 2/0/48 shutdown irf-port 2/1 port group interface Twenty-FiveGigE 2/0/47 port group interface Twenty-FiveGigE 2/0/48 interface Twenty-FiveGigE 2/0/47 no shutdown interface Twenty-FiveGigE 2/0/48 no shutdown save force # 两台都执行 irf-port-configuration active # 主 display irf
服务器聚合口配置
# 生成配置脚本 for i in {1..26} #几台服务器 把26 改成几 do echo "interface Bridge-Aggregation $i" echo "int Twenty-FiveGigE 1/0/$i " echo "port link-mode bridge " echo "port link-aggregation group $i " echo "lacp period short" echo "int Twenty-FiveGigE 2/0/$i " echo "port link-mode bridge" echo "port link-aggregation group $i " echo "lacp period short" echo " " echo "interface Bridge-Aggregation $i" echo " description to_server" echo " port link-type trunk" echo " port trunk permit vlan all" echo " link-aggregation mode dynamic" done ## 配置模版 interface Bridge-Aggregation 1 int Twenty-FiveGigE 1/0/1 port link-mode bridge port link-aggregation group 1 lacp period short int Twenty-FiveGigE 2/0/1 port link-mode bridge port link-aggregation group 1 lacp period short interface Bridge-Aggregation 1 description to_server port link-type trunk port trunk permit vlan all link-aggregation mode dynamic
上集连口配置
interface Bridge-Aggregation 46 int Twenty-FiveGigE 1/0/46 port link-mode bridge port link-aggregation group 46 force lacp period short int Twenty-FiveGigE 2/0/46 port link-mode bridge port link-aggregation group 46 force lacp period short interface Bridge-Aggregation 46 description to_HX port link-type trunk port trunk permit vlan 360 no po tr pe vlan 1 link-aggregation mode dynamic