关于我的链路聚合有两张,首先对于链路聚合,在不同网段且不同vlan的时候需要在三层交换机上配置虚拟IP,且该IP地址为该网段的网关地址,

 

下面我仅仅使用了一个链路聚合,我曾做过这样的实验,如果主机在相同网段相同网段。则不需要在交换机上配置IP地址,如果主机在不同网段且不同vlan下的时候,则需要在交换机上配置IP地址

 

实验如下:

 

 

确保pc1、pc2、pc3能够相互通信,且不在相同网段和不同vlan

 

华为链路聚合实验

 

 

实验如下:

 

sw5配置:

[s1]vlan batch 10 20 30                 //需要在三层交换机上面操作,创建三个vlan
[s1]int Vlanif 10                       //虚接口
[s1-Vlanif10]ip add 192.168.1.1 24      //配置IP,IP地址为网关地址
[s1]int Vlanif 20
[s1-Vlanif20]ip add 192.168.2.1 24
[s1]int Vlanif 30
[s1-Vlanif30]ip add 192.168.3.1 24
[s1]int Eth-Trunk 1                     //配置Eth-Trunk
[s1-Eth-Trunk1]int g0/0/1               //捆绑物理接口
[s1-Eth-Trunk1]int g0/0/2
[s1-Eth-Trunk1]int g0/0/3                 
[s1-Eth-Trunk1] port link-type trunk    //使用trunk接口
[s1-Eth-Trunk1] port trunk allow-pass vlan 10 20 30     //放行vlan10、20、30的流量

 

sw4配置:

[s2]vlan batch 10 20 30                 //需要在三层交换机上面操作,创建三个vlan
[s2]int Vlanif 10                       //虚接口
[s2]int Vlanif 20
[s2]int Vlanif 30
[s2]int Eth-Trunk 1                     //配置Eth-Trunk
[s2-Eth-Trunk1]int g0/0/1               //捆绑物理接口
[s2-Eth-Trunk1]int g0/0/2
[s2-Eth-Trunk1]int g0/0/3                 
[s2-Eth-Trunk1] port link-type trunk    //使用trunk接口
[s2-Eth-Trunk1] port trunk allow-pass vlan 10 20 30     //放行vlan10、20、30的流量

 

配置access端口

[s2]int g0/0/4
[s2-GigabitEthernet0/0/4] port link-type access         //使用access接口
[s2-GigabitEthernet0/0/4] port default vlan 10          //放行vlan10流量
[s2]int g0/0/5
[s2-GigabitEthernet0/0/5] port link-type access
[s2-GigabitEthernet0/0/5] port default vlan 20
[s2]int g0/0/6
[s2-GigabitEthernet0/0/6] port link-type access
[s2-GigabitEthernet0/0/6] port default vlan 30

 

 

 

 

 

 

 

相关文章:

  • 2022-12-23
  • 2021-05-01
  • 2021-08-25
  • 2021-09-19
  • 2021-11-19
  • 2021-08-06
  • 2021-12-18
  • 2021-12-11
猜你喜欢
  • 2021-09-21
  • 2021-10-15
  • 2021-04-09
  • 2021-05-04
  • 2021-07-16
  • 2021-10-12
相关资源
相似解决方案