链路聚合 E-trunk 实验

文章目录

  • 实验目的
  • 配置
    • CE
    • PE1
    • PE2
    • PE3

链路聚合 E-trunk 实验_第1张图片

实验目的

  • 配置练习 E-trunk 配置命令
  • 配置E-trunk两台PE之间必须是可以互通的(需要IGP互通)
  • 学习跨设备链路聚合
  • 熟悉CE设备和PE设备的应用和部署方式

配置

CE

vlan 10
inter vlan 10
ip ad 192.168.1.1 24
lacp priority 100

interface Eth-Trunk1
mode lacp-static
trunkport g0/0/1
trunkport g0/0/2
trunkport g0/0/3
trunkport g0/0/4
port link-type trunk
port trunk allow-pass vlan 10

PE1

vlan batch 10 20

interface Vlanif10
 ip address 192.168.1.2 255.255.255.0

interface Vlanif20
 ip address 10.1.1.1 255.255.255.0
 
inter loop0
ip add 1.1.1.1 32

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 20
 
 ospf 10 router-id 1.1.1.1
 area 0.0.0.0
  network 192.168.1.0 0.0.0.255
  network 1.1.1.1 0.0.0.0
  network 10.1.1.0 0.0.0.255
  
interface Eth-Trunk1
 mode lacp-static
 trunkport g0/0/2
 trunkport g0/0/3
 port link-type trunk
 port trunk allow-pass vlan 10


lacp e-trunk system-id 0001-0001-0001
lacp e-trunk priority 100

e-trunk 1
 priority 100
 peer-address 3.3.3.3 source-address 1.1.1.1
 timer hello 5
 timer hold-on-failure multiplier 3
 
inter eth-trunk 1
e-trunk 1

PE2

vlan batch 20 30

interface Vlanif20
 ip address 10.1.1.2 255.255.255.0

interface Vlanif30
 ip address 20.1.1.2 255.255.255.0
 
inter loop0
ip add 2.2.2.2 32

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 20

interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 30

ospf 10 router-id 2.2.2.2
 area 0.0.0.0
  network 2.2.2.2 0.0.0.0
  network 10.1.1.0 0.0.0.255
  network 20.1.1.0 0.0.0.255
  

PE3

vlan batch 10 30

interface Vlanif10
 ip address 192.168.1.3 255.255.255.0

interface Vlanif30
 ip address 20.1.1.1 255.255.255.0
 
inter loop0
ip add 3.3.3.3 32

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 30
 
 ospf 10 router-id 3.3.3.3
 area 0.0.0.0
  network 192.168.1.0 0.0.0.255
  network 3.3.3.3 0.0.0.0
  network 20.1.1.0 0.0.0.255
  
interface Eth-Trunk1
 mode lacp-static
 trunkport g0/0/2
 trunkport g0/0/3
 port link-type trunk
 port trunk allow-pass vlan 10


lacp e-trunk system-id 0001-0001-0001
lacp e-trunk priority 100

e-trunk 1
 priority 100
 peer-address 1.1.1.1 source-address 3.3.3.3
 timer hello 5
 timer hold-on-failure multiplier 3
 
inter eth-trunk 1
e-trunk 1

你可能感兴趣的:(路由与交换,网络,运维)