分享
 
 
 

教你配置EtherChannel

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Catalyst 2950 Switch

Cat2950#

Cat2950#conf t

Enter configuration commands, one per line. End with CNTL/Z.

!-- The VLAN Trunk PRotocol (VTP) mode is set to server,

!-- and the VTP domain name to is set to cisco.

Cat2950(config)#vtp mode server

Setting device to VTP SERVER mode

Cat2950(config)#vtp domain cisco

Changing VTP domain name from VitalCom to cisco

!-- Created two VLANs: VLAN10 and VLAN20.

Cat2950(config)#vlan 10

Cat2950(config-vlan)#exit

Cat2950(config)#vlan 20

Cat2950(config-vlan)#exit

!-- Configured ports Fa0/5 through Fa0/14 in VLAN10,

!-- and ports fa0/15 through Fa0/26 in VLAN20.

Cat2950(config)#int range fa0/5 - 14

Cat2950(config-if-range)#switchport access vlan 10

Cat2950(config-if-range)#exit

Cat2950(config)#int range fa0/15 - 26

Cat2950(config-if-range)#switchport access vlan 20

Cat2950(config-if-range)#^Z

Cat2950#

00:32:39: %SYS-5-CONFIG_I: Configured from console by console

!-- Configured the management interface so that the switch

!-- can be accessed remotely by using Telnet.

Cat2950#conf t

Cat2950(config)#int vlan 10

Cat2950(config-if)#ip address 10.10.10.10 255.255.255.0

Cat2950(config-if)#no shutdown

00:24:07: %LINK-3-UPDOWN: Interface Vlan10, changed state to up

Cat2950(config-if)#^Z

00:24:12: %SYS-5-CONFIG_I: Configured from console by console

Cat2950#conf t

Enter configuration commands, one per line. End with CNTL/Z.

!-- Configured the default-gateway, which is the IP address of the sub-interface

!-- on the router for VLAN 10, so that the switch can be accessed from any VLAN.

Cat2950(config)#ip default-gateway 10.10.10.1

!-- Configured a logical channel interface.

Cat2950(config)#int port-channel 1

Cat2950(config-if)#exit

!-- Ports are assigned to the logical channel interface to form an EtherChannel.

!-- Note: The channel mode on the switch is set to on because the Cisco 7200

!-- router on the other end does not support Port Aggregation Protocol(PAgP).

Cat2950(config)#int fa0/2

Cat2950(config-if)#channel-group 1 mode on

Cat2950(config-if)#exit

Cat2950(config)#

00:25:38: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

00:25:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to up

Cat2950(config)#int fa0/3

Cat2950(config-if)#channel-group 1 mode on

Cat2950(config-if)#exit

!-- To configure trunking over EtherChannel, trunking

!-- is enabled over the logical channel interface.

Cat2950(config)#int port-channel 1

Cat2950(config-if)#switchport mode trunk

Cat2950(config-if)#

00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang

ed state to down

00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, chang

Ed state to down

00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to down

00:27:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, chang

Ed state to up

00:27:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, chang

Ed state to up

00:27:18: %LINK-3-UPDOWN: Interface Port-channel1, changed state to up

00:27:19: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to up

!-- Configured VLAN10 as the Native VLAN for untagged traffic.

Cat2950(config-if)#switchport trunk native vlan 10

Cat2950(config-if)#^Z

00:24:12: %SYS-5-CONFIG_I: Configured from console by console

Cat2950#

Cisco 7200 Router

Cisco7200#

Cisco7200#conf t

Enter configuration commands, one per line. End with CNTL/Z.

!-- Created a logical channel interface to form an EtherChannel.

Cisco7200(config)#int port-channel 1

Cisco7200(config-if)#exit

!-- The ports fa3/0 and fa4/0 are configured as members of the

!-- logical channel to form an EtherChannel group.

Cisco7200(config)#int fa3/0

Cisco7200(config-if)#channel-group 1

FastEthernet3/0 added as member-1 to port-channel1

Cisco7200(config-if)#exit

Cisco7200(config)#

00:25:06: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed

state to up

Cisco7200(config)#int fa4/0

Cisco7200(config-if)#channel-group 1

FastEthernet4/0 added as member-2 to port-channel1

Cisco7200(config-if)#exit

!-- Configured sub-interfaces over port-channel for VLAN10 and VLAN20 to configure

!-- trunking over EtherChannel. The IP address is assigned to InterVLAN routing.

!-- Configured VLAN10 as the Native VLAN for untagged traffic.

Cisco7200(config)#int port-channel 1.10

Cisco7200(config-subif)#encapsulation dot1Q 10 native

Cisco7200(config-subif)#ip address 10.10.10.1 255.255.255.0

Cisco7200(config-subif)#exit

Cisco7200(config)#int port-channel 1.20

Cisco7200(config-subif)#encapsulation dot1Q 20

Cisco7200(config-subif)#ip address 10.10.11.1 255.255.255.0

Cisco7200(config-subif)#exit

Cisco7200(config)#exit

Cisco7200#

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有