链路汇聚代码
Posted yolenly
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了链路汇聚代码相关的知识,希望对你有一定的参考价值。
LSW1:
system-view
vlan batch 30 40
system-view
vlan batch 30 40
interface Ethernet 0/0/1
port link-type access
port default vlan 30
port link-type access
port default vlan 30
interface Ethernet 0/0/2
port link-type access
port default vlan 30
port link-type access
port default vlan 30
interface Ethernet 0/0/3
port link-type access
port default vlan 40
port link-type access
port default vlan 40
interface Ethernet 0/0/4
port link-type access
port default vlan 40
port link-type access
port default vlan 40
interface GigabitEthernet 0/0/2
port link-type trunk
port trunk allow-pass vlan 30 40
port link-type trunk
port trunk allow-pass vlan 30 40
LSW2:
system-view
vlan batch 30 40
system-view
vlan batch 30 40
interface GigabitEthernet 0/0/1
port link-type trunk
port trunk allow-pass vlan 30 40
quit
port link-type trunk
port trunk allow-pass vlan 30 40
quit
interface Eth-Trunk 1
mode lacp-static
quit
mode lacp-static
quit
interface GigabitEthernet 0/0/24
eth-trunk 1
interface GigabitEthernet 0/0/23
eth-trunk 1
interface GigabitEthernet 0/0/22
eth-trunk 1
quit
eth-trunk 1
interface GigabitEthernet 0/0/23
eth-trunk 1
interface GigabitEthernet 0/0/22
eth-trunk 1
quit
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 30 40
port link-type trunk
port trunk allow-pass vlan 30 40
LSW3:
system-view
vlan batch 30 40
system-view
vlan batch 30 40
interface Vlanif 30
ip address 192.168.30.254 24
quit
interface Vlanif 40
ip address 192.168.40.254 24
quit
ip address 192.168.30.254 24
quit
interface Vlanif 40
ip address 192.168.40.254 24
quit
interface Eth-Trunk 1
mode lacp-static
quit
mode lacp-static
quit
interface GigabitEthernet 0/0/1
eth-trunk 1
interface GigabitEthernet 0/0/2
eth-trunk 1
interface GigabitEthernet 0/0/3
eth-trunk 1
quit
eth-trunk 1
interface GigabitEthernet 0/0/2
eth-trunk 1
interface GigabitEthernet 0/0/3
eth-trunk 1
quit
interface Eth-Trunk 1
port link-type trunk
port trunk allow-pass vlan 30 40
port link-type trunk
port trunk allow-pass vlan 30 40
以上是关于链路汇聚代码的主要内容,如果未能解决你的问题,请参考以下文章