加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Cisco端口聚合

发布时间:2020-12-14 05:29:36 所属栏目:百科 来源:网络整理
导读:所有主机均属 vlan1 交换机间接口配置为 trunk ? 实例: ? ? ? 配置 3 个 PC 机的 ip 地址 SW1 配置 Switchenable Switch#conf terminal Switch(config)#hostname SW1 SW1(config)#interface range f0/1-2 SW1 (config-if-range)#switchport mode trunk SW1

所有主机均属vlan1

交换机间接口配置为trunk

? 实例:

?

?

?

配置3PC机的ip地址

SW1配置

Switch>enable

Switch#conf terminal

Switch(config)#hostname SW1

SW1(config)#interface range f0/1-2

SW1 (config-if-range)#switchport mode trunk

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

SW1 (config-if-range)#channel-group 1 mode desirable? ?#企望(desirable),主动发起请求,主要用于观察实验效果,如果两端交换机都设置为on,效果不明显

SW1 (config-if-range)#exit

Switch#show etherchannel summary

Number of channel-groups in use: 1

Number of aggregators:?????????? 1

?

Group? Port-channel? Protocol??? Ports

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

?

1????? Po1(SD)?????????? PAgP?? Fa0/3(I) Fa0/4(I)

SW2配置

Switch>enable

Switch#conf terminal

Switch(config)#hostname SW1

SW2(config)#interface range f0/1-2

SW2 (config-if-range)#switchport mode trunk

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

SW2 (config-if-range)#channel-group 1 mode auto? #自动模式

SW2 (config-if-range)#exit

SW2#show etherchannel summary

Number of channel-groups in use: 1

Number of aggregators:?????????? 1

?

Group? Port-channel? Protocol??? Ports

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

?

1????? Po1(SU)?????????? PAgP?? Fa0/1(P) Fa0/2(P)

?

这时再查看交换机SW1上的结果

Switch#show etherchannel summary

Number of channel-groups in use: 1

Number of aggregators:?????????? 1

?

Group? Port-channel? Protocol??? Ports

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

?

1????? Po1(SU)?????????? PAgP?? Fa0/3(P) Fa0/4(P)

?

?

??????????????????? ? ? ? ? ? ? ?? PAgP模式

模式

含义

开启(on)

端口不进行协商,直接形成以太网通道;在这种模式下,对端也必须是on模式,以太网通道才能正常工作

关闭(off)

阻止端口形成以太网通道

自动(auto)

在自动模式下,被动的监听,不主动发起协商,等待PAgP协议请求数据包,当出现请求是才进行以太网通道的协商

企望(desirable)

这种模式主动发起请求对端交换机进行以太网通道的协商

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读