admin 发表于 2021-7-12 09:34:50

华为交换机配置truck

5.2 网络配置
以华为交换机为例。
5.2.1 创建vlan:
apache
vlan batch 3 to 5
5.2.2 创建vlan-if(网关):
apache
interface Vlanif1      //vlan1,管理网络网关
ip address 10.1.1.254 255.255.255.0
interface Vlanif3      //vlan3,业务网络网关
ip address 10.1.3.254 255.255.255.0
interface Vlanif4      //vlan4,业务网络网关
ip address 10.1.4.254 255.255.255.0
interface Vlanif5      //vlan5,业务网络网关
ip address 10.1.5.254 255.255.255.0
5.2.3 创建聚合接口(eth-trunk):
apache
interface Eth-Trunk101    //用于节点1管理口
description to-pve1-mgmt
port link-type access
mode lacp
#
interface Eth-Trunk102    //用于节点2管理口
description to-pve2-mgmt
port link-type access
mode lacp
#
interface Eth-Trunk103    //用于节点3管理口
description to-pve3-mgmt
port link-type access
mode lacp
#
interface Eth-Trunk104    //用于节点1业务口
description to-pve1-yewu
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp
#
interface Eth-Trunk105    //用于节点2业务口
description to-pve2-yewu
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp
#
interface Eth-Trunk106    //用于节点3业务口
description to-pve3-yewu
port link-type trunk
port trunk allow-pass vlan 2 to 4094
mode lacp
5.2.4 物理接口加入聚合接口
apache
interface GigabitEthernet0/0/10    //连接节点1管理口eno1
description pve1-mgmt-eno1
eth-trunk 101
#
interface GigabitEthernet0/0/11    //连接节点1管理口eno2
description pve1-mgmt-eno2
eth-trunk 101
#
interface GigabitEthernet0/0/12    //连接节点2管理口eno1
description pve2-mgmt-eno1
eth-trunk 102
#
interface GigabitEthernet0/0/13    //连接节点2管理口eno2
description pve2-mgmt-eno2
eth-trunk 102
#
interface GigabitEthernet0/0/14    //连接节点3管理口eno1
description pve3-mgmt-eno1
eth-trunk 103
#
interface GigabitEthernet0/0/15    //连接节点3管理口eno2
description pve3-mgmt-eno2
eth-trunk 103
#
interface GigabitEthernet0/0/16    //连接节点1业务口eno3
description pve1-data-eno3
eth-trunk 104
#
interface GigabitEthernet0/0/17    //连接节点1业务口eno4
description pve1-data-eno4
eth-trunk 104
#
interface GigabitEthernet0/0/18    //连接节点2业务口eno3
description pve2-data-eno3
eth-trunk 105
#
interface GigabitEthernet0/0/19    //连接节点2业务口eno4
description pve2-data-eno4
eth-trunk 105
#
interface GigabitEthernet0/0/20    //连接节点3业务口eno3
description pve3-data-eno3
eth-trunk 106
#
interface GigabitEthernet0/0/21    //连接节点3业务口eno4
description pve3-data-eno4
eth-trunk 106
页: [1]
查看完整版本: 华为交换机配置truck