此示例配置展示 如何设置第三层以太网信道,没有VLAN中继,在运行 Cisco IOS (Native模式)的Cisco路由器和Catalyst 6500交换机之 间。 以太网信道可以根据用于的接口或端口的速度称为快速 以太信道(FEC)或Gigabit EtherChannel (GEC) ,形成以太网信道 。在本例中,二个快速以太网端口从Cisco路由器和 Catalyst 6500 交换机被包了到FEC。在本文过程中,术语 FEC,GEC、端口信道、信道和端口组全部将提到以太网信道。
本文包括配置文件从交换机和路由器 和仅输出从相关示例show命令。
创建 示例在本文,我们在实验室环境使用以下交换机带有被清除的配置 :
交换机配置在本文适用于运行集成 Cisco IOS (Native Mode)的所有Catalyst 6000和任何Catalyst 系列4000系列交换机。
配置在本文在 隔离的实验室环境里实现。保证您使用它以前了解所有配置或命 令的潜在影响对您的网络。配置在所有设备被清除用 write erase命令保证他们有一 个默认配置。
注重: 保证在write erase 命令以后重新载入 设备冲洗所有非默认配置。
Catalyst 6000/4000系列交换机(集成Cisco IOS (Native Mode))
Cisco路由器
关于以太网信道的硬件和软件需 求在其他思科产品,参见以下文件:
在开辟物理接口之前,假如端口信道接口配置,首先 消除端口信道接口。通过输入信道组 配置一条端口信道顺序在Catalyst 6000/4000 集成 Cisco IOS (Native Mode)是重要的。它推荐首先在输入 channel-group命令之前输入所有switchport 命令在一个物理接口 。当channel-group命令在一个物理接口(即int g1/1)改为被 输入在switchport命令之前,端口信道接口被创建,自动地删除 channel-group命令,并且成为第三层接口。物理接口现在成 为第二层接口并且及早被创建的端口信道接口没有物理接口联合它 。您不能再添加channel-group命令回到物理接口。相 反,假如输入switchport命令首先在一个物理接口然后添加 channel-group命令,端口信道接口自动地被创建并且继续所有 configured switchport命令。 默认 情况下在运行集成Cisco IOS (Native Mode)的Catalyst 6000交换 机,所有端口是第三层端口。默认情况下在运行集成 Cisco IOS (Native Mode)的Catalyst 4000交换机,所有端口是第二层端口。 备注和解释显示以 蓝色斜体。 show EtherChannel端口信道<信道id > show interface port-channel <信道 id > show etherchnl < channel-id > port-channel show interface port-channel < 信道id > 网 络图
配置
Catalyst 6500交换机(没有VLAN中继 ) Building configuration... Current configuration : 5869 bytes ! version 12.1 service timestamps debug uptime service timestamps log uptime no service passWord-encryption ! hostname cat6500 ! boot buffersize 126968 boot system Flash slot0:c6sup11-jsv-mz.121-8b.EX4.bin boot bootldr bootflash:c6msfc-boot-mz.121-4.E1 enable password ww ! redundancy main-cpu auto-sync standard ip subnet-zero ! ! no ip finger ! ! ! ! !-- In this example, we have configured Layer 3 EtherChannel. !-- For more details, refer to the following document: !-- Configuring Layer 3 and Layer 2 EtherChannel Switchport. !-- A logical port-channel interface is automatically created !-- when ports are grouped in to a channel group. interface Port-channel 1 ip address 11.1.1.2 255.255.255.0 hold-queue 300 in ! interface GigabitEthernet1/1 no ip address shutdown ! interface GigabitEthernet1/2 no ip address shutdown ! interface FastEthernet3/1 no ip address !-- Port is member of channel group 1. Routers do not support Etherchannel !-- negotiation (PAgP), so PAgP needs to be disabled. !-- On a Catalyst 4000 switch, all ports are Layer 2 port by default. Convert !-- this port from physical Layer 2 port to physical Layer 3 port using the !-- no switchport command. channel-group 1 mode on interface FastEthernet3/2 no ip address !-- Port is member of channel group 1. Routers do not support Etherchannel !-- negotiation (PAgP), so PAgP needs to be disabled. !-- On a Catalyst 4000 switch, all ports are Layer 2 port by default. Convert !-- this port from physical Layer 2 port to physical Layer 3 port using the !-- no switchport command. channel-group 1 mode on interface FastEthernet3/3 no ip address switchport switchport mode access ! (....Output is supPRessed) ! ip classless no ip http server ! ! ! line con 0 transport input none line vty 0 4 ! end
Cisco 7500路由器(没有VLAN中继) (....Output is suppressed) ! interface Port-channel1 ip address 11.1.1.1 255.255.255.0 hold-queue 300 in ! interface FastEthernet0/0 no ip address full-duplex channel-group 1 ! interface FastEthernet0/1 no ip address full-duplex channel-group 1 (....Output is suppressed)
debug 及show 命令
示例显示命令输出
Catalyst 6500交换机
Cisco 7500路由器
Router# show interface Port-channel 1 Port-channel1 is up, line protocol is up Hardware is FastEtherChannel, address is 00e0.1476.7600 (bia 0000.0000.0000) Internet address is 11.1.1.1/24 MTU 1500 bytes, BW 400000 Kbit, DLY 100 usec, rely 255/255, load 62/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec), hdx ARP type: ARPA, ARP Timeout 04:00:00 No. of members in this fechannel: 2 Member 0 : FastEthernet0/0 Member 1 : FastEthernet0/1 Last input never, output never, output hang never Last clearing of "show interface" counters 10:51:55 Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/300, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 98281000 bits/sec, 8762 packets/sec 4545 packets input, 539950 bytes, 0 no buffer Received 0 broadcasts, 0 runts, 0 giants 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 watchdog, 0 multicast 0 input packets with dribble condition detected 342251216 packets output, 3093422680 bytes, 0 underruns 0 output errors, 0 collisions, 0 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out
新闻热点
疑难解答