实验二_链路聚合技术_LACP.doc_第1页
实验二_链路聚合技术_LACP.doc_第2页
实验二_链路聚合技术_LACP.doc_第3页
实验二_链路聚合技术_LACP.doc_第4页
实验二_链路聚合技术_LACP.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

实验二 链路聚合技术(LACP)配置 实验内容与目的实验内容:1. 配置路由器与三层交换机间的链路聚合2. 配置手工、静态、动态链路聚合3. 验证链路聚合实验目的:1. 掌握链路聚合技术的作用2. 理解链路聚合技术的基本原理3. 掌握网络设备上的链路聚合配置指令与配置过程实验任务: 1 实验组网图与实验要求如图1所示,三层交换机SW1和SW2互联至路由器AR,设备间采用多链路聚合的方式,以保证高可靠性。各设备IP地址分配如图1所示。图1 路由器、交换机链路聚合配置图2 实验过程步骤一:组建实验环境并完成设备基本配置按照图1进行连接,并检查设备配置信息,确保各设备配置被清除,处于出厂的初始状态。完成各设备的基本配置,设备命名、远程登录。下面是AR路由器的基本配置,(SW1、SW2参考完成):sys /由用户视图进入系统视图Huaweisysname AR /设备命名为AR(SW1、SW2、SW3参考完成)ARaaa /由系统视图进入AAA视图AR-aaalocal-user huawei password cipher huawei privilege level 3 /创建用户huawei/huawei 用户级别设为3级AR-aaalocal-user huawei service-type telnet /用户huawei服务类型设为telnetAR-aaaq /退出aaa视图ARuser-interface vty 0 4 /进入vty视图AR-ui-vty0-4authentication-mode aaa /设置vty用户采用AAA认证AR-ui-vty0-4q ARqtelnet 127.0.0.1 /本机telnet测试 Press CTRL_ to quit telnet mode Trying 127.0.0.1 . Connected to 127.0.0.1 .Login authentication Username:huawei /telnet 用户名:huaweiPassword: /telnet 密码:huaweiq /登陆成功 Configuration console exit, please retry to log on The connection was closed by the remote host步骤二:AR和SW1间采用手工配置方式进行链路聚合(物理接口)AR配置AR1interface Eth-Trunk 1 /创建ETH-Trunk1AR1-Eth-Trunk1undo portswitch /修改端口属性为三层接口(默认为二层接口)AR1-Eth-Trunk1mode manual load-balance /使用手工配置进行链路聚合(默认为手工配置)AR1-Eth-Trunk1ip address 192.168.0.1 30 /配置接口IP地址AR1-GigabitEthernet0/0/0eth-trunk 1 /将G0/0/0加入ETH-TRUNK1AR1-GigabitEthernet0/0/1eth-trunk 1 /将G0/0/1加入ETH-TRUNK1SW1配置SW1vlan 2SW1int Vlanif 2SW1-Vlanif2ip address 192.168.0.2 30SW1interface Eth-Trunk 1SW1-Eth-Trunk1mode manual load-balance /使用手工配置进行链路聚合(默认为手工配置)SW1-Eth-Trunk1port link-type access SW1-Eth-Trunk1port default vlan 2SW1-GigabitEthernet0/0/1eth-trunk 1SW1-GigabitEthernet0/0/2eth-trunk 1查看ETH-trunk状态display eth-trunk 1Eth-Trunk1的状态信息:工作模式: 手工 哈希方式:依照SIP-XOR-DIP 下限阈值:1 上限阈值:8 Trunk状态:up 成员口UP数目:2 -端口 状态 权重 GigabitEthernet0/0/1 Up 1 GigabitEthernet0/0/2 Up 1 链路聚合测试:在SW1上ping 192.168.0.1SW1ping 192.168.0.1 PING 192.168.0.1: 56 data bytes, press CTRL_C to break Reply from 192.168.0.1: bytes=56 Sequence=1 ttl=255 time=1 ms Reply from 192.168.0.1: bytes=56 Sequence=2 ttl=255 time=10 ms Reply from 192.168.0.1: bytes=56 Sequence=3 ttl=255 time=30 ms Reply from 192.168.0.1: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 192.168.0.1: bytes=56 Sequence=5 ttl=255 time=1 ms - 192.168.0.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/14/30 ms步骤三: AR和SW2间采用手工配置方式进行链路聚合(子接口)AR配置AR1interface Eth-Trunk 2 /创建ETH-Trunk1AR1-Eth-Trunk2undo portswitch /修改端口属性为三层接口(默认为二层接口)AR1-Eth-Trunk2 mode manual load-balance /使用静态配置进行链路聚合(默认为手工配置)AR1int Eth-Trunk 2.3 /进入子接口AR1-Eth-Trunk2.3dot1q termination vid 3 /封装dot1q 为3AR1-Eth-Trunk2.3ip address 192.168.0.5 30 /配置接口IP地址AR1-GigabitEthernet0/0/2eth-trunk 2 /将G0/0/0加入ETH-TRUNK2AR1-GigabitEthernet4/0/0eth-trunk 2 /将G0/0/1加入ETH-TRUNK2SW1配置SW1vlan 3SW1int Vlanif 3SW1-Vlanif3ip address 192.168.0.6 30SW1interface Eth-Trunk 2SW1-Eth-Trunk1mode manual load-balanceSW1-Eth-Trunk1port link-type trunk SW1-Eth-Trunk1port trunk allow-pass vlan 3SW1-GigabitEthernet0/0/1eth-trunk 2SW1-GigabitEthernet0/0/2eth-trunk 2查看ETH-trunk状态display eth-trunk 2Eth-Trunk1的状态信息:工作模式: 手工 哈希方式:依照SIP-XOR-DIP 下限阈值:1 上限阈值:8 Trunk状态:up 成员口UP数目:2 -端口 状态 权重 GigabitEthernet0/0/2 Up 1 GigabitEthernet4/0/0 Up 1 链路聚合测试:在SW2上ping 192.168.0.5SW2ping 192.168.0.5 PING 192.168.0.5: 56 data bytes, press CTRL_C to break Reply from 192.168.0.5: bytes=56 Sequence=1 ttl=255 time=30 ms Reply from 192.168.0.5: bytes=56 Sequence=2 ttl=255 time=10 ms Reply from 192.168.0.5: bytes=56 Sequence=3 ttl=255 time=1 ms Reply from 192.168.0.5: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 192.168.0.5: bytes=56 Sequence=5 ttl=255 time=1 ms - 192.168.0.5 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/14/30 ms步骤四:SW1和SW2间采用静态配置方式进行链路聚合SW1配置SW1vlan 4SW1int Vlanif 4SW1-Vlanif4ip address 192.168.0.9 30SW1interface Eth-Trunk 3SW1-Eth-Trunk1 mode lacp-staticSW1-Eth-Trunk1port link-type trunk SW1-Eth-Trunk1port trunk allow-pass vlan 4SW1-GigabitEthernet0/0/3eth-trunk 3SW1-GigabitEthernet0/0/4eth-trunk 3SW1-GigabitEthernet0/0/5eth-trunk 3SW2配置SW1vlan 4SW1int Vlanif 4SW1-Vlanif4ip address 192.168.0.10 30SW1interface Eth-Trunk 3SW1-Eth-Trunk1 mode lacp-staticSW1-Eth-Trunk1port link-type trunk SW1-Eth-Trunk1port trunk allow-pass vlan 4SW1-GigabitEthernet0/0/3eth-trunk 3SW1-GigabitEthernet0/0/4eth-trunk 3SW1-GigabitEthernet0/0/5eth-trunk 3查看ETH-trunk状态SW1display eth-trunk 3Eth-Trunk3s state information is:Local:LAG ID: 3 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According to SIP-XOR-DIP System Priority: 32768 System ID: 4c1f-cca3-96f5 Least Active-linknumber: 1 Max Active-linknumber: 8 Operate status: up Number Of Up Port In Trunk: 3 -ActorPortName Status PortType PortPri PortNo PortKey PortState WeightGigabitEthernet0/0/3 Selected 1000TG 32768 4 913 10111100 1 GigabitEthernet0/0/4 Selected 1000TG 32768 5 913 10111100 1 GigabitEthernet0/0/5 Selected 1000TG 32768 6 913 10111100 1 Partner:-ActorPortName SysPri SystemID PortPri PortNo PortKey PortStateGigabitEthernet0/0/3 32768 4c1f-cc08-6400 32768 4 913 10111100GigabitEthernet0/0/4 32768 4c1f-cc08-6400 32768 5 913 10111100GigabitEthernet0/0/5 32768 4c1f-cc08-6400 32768 6 913 10111100链路聚合测试:在SW1上ping 192.168.0.10SW1ping 192.168.0.10 PING 192.168.0.10: 56 data bytes, press CTRL_C to break Reply from 192.168.0.10: bytes=56 Sequence=1 ttl=255 time=30 ms Reply from 192.168.0.10: bytes=56 Sequence=2 ttl=255 time=20 ms Reply from 192.168.0.10: bytes=56 Sequence=3 ttl=255 time=20 ms Reply from 192.168.0.10: bytes=56 Sequence=4 ttl=255 time=40 ms Reply from 192.168.0.10: bytes=56 Sequence=5 ttl=255 time=30 ms - 192.168.0.10 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 20/28/40 ms步骤五:SW1和SW2间聚合组成员备份SW1-Eth-Trunk3max active-linknumber 2 /配置聚合组中活动链路上限为2SW2-Eth-Trunk3max active-linknumber 2 /配置聚合组中活动链路上限为2查看ETH-trunk状态SW1display eth-trunk 3Eth-Trunk3s state information is:Local:LAG ID: 3 WorkingMode: STATIC Preempt Delay: Disabled Hash arithmetic: According

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论