E-trunk(链路聚合)

E-trunk(链路聚合)_第1张图片

PC1(IP地址)

IP地址:192.168.1.1
子网掩码:255.255.255.0

PC2(IP地址)

IP地址:192.168.1.2
子网掩码:255.255.255.0

SW1(基本配置)

system-view     //进入系统视图
[Huawei]undo info-center enable     //关闭信息告警提示
[Huawei]sysname SW1     //改名
[SW1]

SW2(基本配置)

system-view     //进入系统视图	
[Huawei]undo  info-center enable     //关闭信息告警提示 
[Huawei]sysname SW2     //改名
[SW2]dis stp brief     //查看那个接口转发数据     
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE     //链路在转发数据     
   0    GigabitEthernet0/0/2        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/3        ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/4        DESI  FORWARDING      NONE
[SW2]

PC1(测试)

PC>ping 192.168.1.2     //测试是否可以ping通PC2

Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
From 192.168.1.2: bytes=32 seq=1 ttl=128 time=62 ms     //ping通
From 192.168.1.2: bytes=32 seq=2 ttl=128 time=62 ms
From 192.168.1.2: bytes=32 seq=3 ttl=128 time=62 ms
From 192.168.1.2: bytes=32 seq=4 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=5 ttl=128 time=63 ms

--- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 47/59/63 ms

PC>

SW1(创建捆绑链路)

[SW1]int Eth-Trunk 1     //创建逻辑捆绑接口组1
[SW1-Eth-Trunk1]interface g0/0/1     //进入接口
[SW1-GigabitEthernet0/0/1]eth-trunk 1     //加入捆绑接口组1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-GigabitEthernet0/0/1]interface g0/0/2     //进入接口	
[SW1-GigabitEthernet0/0/2]eth-trunk 1     //加入捆绑接口组1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-GigabitEthernet0/0/2]interface g0/0/3     //进入接口	
[SW1-GigabitEthernet0/0/3]eth-trunk 1     //加入捆绑接口组1
Info: This operation may take a few seconds. Please wait for a moment...done.	
[SW1-GigabitEthernet0/0/3]quit     //退出	
[SW1]dis stp brief     //查看STP信息
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/4        DESI  FORWARDING      NONE
   0    Eth-Trunk1                  DESI  FORWARDING      NONE     //创建的链路接口组1
[SW1]

SW2(创建捆绑链路)

[SW2]int Eth-Trunk 1     //创建逻辑捆绑接口组1     //创建逻辑捆绑接口组1
[SW2-Eth-Trunk1]interface g0/0/1     //进入接口	
[SW2-GigabitEthernet0/0/1]eth-trunk 1     //加入捆绑接口组1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-GigabitEthernet0/0/1]interface g0/0/2     //进入接口	
[SW2-GigabitEthernet0/0/2]eth-trunk 1     //加入捆绑接口组1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-GigabitEthernet0/0/2]interface g0/0/3     //进入接口	
[SW2-GigabitEthernet0/0/3]eth-trunk 1     //加入捆绑接口组1
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-GigabitEthernet0/0/3]quit     //退出
[SW2]dis stp brief     //查看STP信息
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/4        DESI  DISCARDING      NONE
   0    Eth-Trunk1                  ROOT  FORWARDING      NONE     //创建的链路接口组1
[SW2]

PC1(测试)

PC>ping 192.168.1.2     //测试是否可以ping通PC2

Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
From 192.168.1.2: bytes=32 seq=1 ttl=128 time=62 ms     //ping通
From 192.168.1.2: bytes=32 seq=2 ttl=128 time=62 ms
From 192.168.1.2: bytes=32 seq=3 ttl=128 time=62 ms
From 192.168.1.2: bytes=32 seq=4 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=5 ttl=128 time=63 ms

--- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 47/59/63 ms

PC>

E-trunk(链路聚合)_第2张图片

PC1(测试)

PC>ping 192.168.1.2      //测试是否可以ping通PC2

Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
From 192.168.1.2: bytes=32 seq=1 ttl=128 time=47 ms     //ping通
From 192.168.1.2: bytes=32 seq=2 ttl=128 time=46 ms
From 192.168.1.2: bytes=32 seq=3 ttl=128 time=62 ms
From 192.168.1.2: bytes=32 seq=4 ttl=128 time=62 ms
From 192.168.1.2: bytes=32 seq=5 ttl=128 time=78 ms

--- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 46/59/78 ms

PC>

你可能感兴趣的:(#,链路聚合)