Chinaunix首页 | 论坛 | 博客
  • 博客访问: 214120
  • 博文数量: 48
  • 博客积分: 4011
  • 博客等级: 上校
  • 技术积分: 695
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-26 17:15
文章分类

全部博文(48)

文章存档

2011年(1)

2010年(1)

2009年(46)

我的朋友

分类: 系统运维

2009-07-17 22:06:21

实验目的:

1、掌握其于Cisco私有的LACP的链路聚合协议的配置方法。

2、掌握第二层与第三层的LACP配置区别。

3LACP为公开标准链路聚合协议。

 

实验拓扑图:

 


实验步骤及要求:

1、本实验使用两台Cisco Catalyst 3750交换机。并按照拓扑连接相应的交换机的线缆。

2、为了能够保证实验成功,因此建议将Fa1/0/1 – 22号接口置为shutdown状态。

3、由于LACP的工作特性与PAgP非常相似,因此本次实验仅列出LACP的配置命令,具体解释请参看实验:Configuring L2 & L3 EtherChannel with LAC一节。

4、首先在SW1SW2交换机上配置第二层的LACP的链路聚合:

SW1(config)#interface range fastEthernet 1/0/23 - 24

SW1(config-if-range)#channel-protocol lacp

SW1(config-if-range)#channel-group 1 mode active

Creating a port-channel interface Port-channel 1

 

SW1(config-if-range)#exit

 

SW2(config)#interface range fastEthernet 1/0/23 - 24

SW2(config-if-range)#channel-protocol lacp

SW2(config-if-range)#channel-group 1 mode passive

SW2(config-if-range)#exit

5、查看SW1SW2LACP汇总信息:

SW1#show etherchannel summary

Flags:  D - down        P - in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

 

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

[stanley1] 

SW1#

5、在两台交换机配置VLAN 1IP地址,用于测试,并且建议各位使用扩展的ping命令去测试聚合链路的容错:

SW1(config)#interface vlan 1

SW1(config-if)#ip address 192.168.1.1 255.255.255.0

SW1(config-if)#no shutdown

SW1(config-if)#exit

SW1(config)#

 

SW2(config)#interface vlan 1

SW2(config-if)#ip address 192.168.1.2 255.255.255.0

SW2(config-if)#no shutdown

SW2(config-if)#exit

Ping的命令信息如下:

SW1#ping 192.168.1.2

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

SW1#

6、删除之前的第二层的LACP的配置或重启交换机。

7、在两台交换机配置第三层的LACP的链路聚合:

SW1(config)#interface port-channel 1

SW1(config-if)#no switchport

SW1(config-if)#ip address 192.168.1.1 255.255.255.0

SW1(config-if)#no shutdown

SW1(config-if)#exit

SW1(config)#

SW1(config)#interface range fastEthernet 1/0/23 - 24

SW1(config-if-range)#no switchport

SW1(config-if-range)#channel-protocol lacp

SW1(config-if-range)#channel-group 1 mode active

SW1(config-if-range)#exit

 

SW2(config)#interface port-channel 1

SW2(config-if)#no switchport

SW2(config-if)#ip address 192.168.1.2 255.255.255.0

SW2(config-if)#no shutdown

SW2(config-if)#exit

SW2(config)#

SW2(config)#interface range fastEthernet 1/0/23 - 24

SW2(config-if-range)#no switchport

SW2(config-if-range)#channel-protocol lacp

SW2(config-if-range)#

SW2(config-if-range)#channel-group 1 mode passive

SW2(config-if-range)#exit

SW2(config)#exit

8、查看聚合链路的汇总信息:

SW2#show etherchannel summary

Flags:  D - down        P - in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

 

 

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

[stanley2] 

 

SW2#

 

SW1#show etherchannel summary

Flags:  D - down        P - in port-channel

        I - stand-alone s - suspended

        H - Hot-standby (LACP only)

        R - Layer3      S - Layer2

        U - in use      f - failed to allocate aggregator

        u - unsuitable for bundling

        w - waiting to be aggregated

        d - default port

 

 

Number of channel-groups in use: 1

Number of aggregators:           1

 

Group  Port-channel  Protocol    Ports

------+-------------+-----------+-----------------------------------------------

1      Po1(RU)         LACP      Fa1/0/23(P) Fa1/0/24(P)

 

SW1#

9、使用ping命令测试:

SW2#ping 192.168.1.1

 

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:

.!!!!

Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms

SW2#

10、实验完成。


第二层的LACP聚合。

R关键字指示出当前聚合为三层链路聚合。

阅读(1749) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~