自学内容网 自学内容网

链路聚合加单臂路由

一、实验目的及拓扑

实验目的:在路由器及交换机之间建立链接聚合,交换机接入两台主机并通过路由器子接口自动分配IP地址,通过单臂路由实现两台主机互联

二、基本配置

1、交换机配置

[S1]vlan batch 10 20

[S1-Eth-Trunk1]dis th
#
interface Eth-Trunk1

  port link-type trunk
 port trunk allow-pass vlan 10 20
 mode lacp-static

 trunkport GigabitEthernet 0/0/1 0/0/2
#

[S1]int g0/0/3
[S1-GigabitEthernet0/0/3]dis th
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 10
#

[S1-GigabitEthernet0/0/4]dis th
#
interface GigabitEthernet0/0/4
 port link-type access
 port default vlan 20
#

2、路由器配置

[R1-Eth-Trunk1]dis th
[V200R003C00]
#
interface Eth-Trunk1

  undo portswitch
 mode lacp-static

 trunkport GigabitEthernet 0/0/1 0/0/2
#

[R1]dhcp enable

[R1-Eth-Trunk1.1]dis th
[V200R003C00]
#
interface Eth-Trunk1.1
 dot1q termination vid 10
 ip address 10.1.1.1 255.255.255.0 
 arp broadcast enable
 dhcp select interface
#

[R1-Eth-Trunk1.2]dis th
[V200R003C00]
#
interface Eth-Trunk1.2
 dot1q termination vid 20
 ip address 20.1.1.1 255.255.255.0 
 arp broadcast enable
 dhcp select interface
#

三、结果验证

[R1]dis eth-trunk 1
Eth-Trunk1's state information is:
Local:
LAG ID: 1                   WorkingMode: STATIC                               
Preempt Delay: Disabled     Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 32768      System ID: 00e0-fc58-3e7a                         
Least Active-linknumber: 1  Max Active-linknumber: 8                          
Operate status: up          Number Of Up Port In Trunk: 2                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1   Selected 1GE      32768   1      305     10111100  1     
GigabitEthernet0/0/2   Selected 1GE      32768   2      305     10111100  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/1   32768    4c1f-cc3e-36ad  32768   2      305     10111100
GigabitEthernet0/0/2   32768    4c1f-cc3e-36ad  32768   3      305     10111100

PC>ping 20.1.1.1

Ping 20.1.1.1: 32 data bytes, Press Ctrl_C to break
From 20.1.1.1: bytes=32 seq=1 ttl=255 time=47 ms
From 20.1.1.1: bytes=32 seq=2 ttl=255 time=47 ms


原文地址:https://blog.csdn.net/earthtoearth/article/details/140721012

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!