이 문서에서는 Cisco Catalyst Layer 2(L2) 고정 구성 스위치와 Cisco 라우터 간의 Fast EtherChannel(FEC) 및 IEEE 802.1Q 트렁킹을 위한 샘플 컨피그레이션을 제공합니다.Catalyst L2 고정 구성 스위치에는 2900/3500XL, 2940, 2950/2955 및 2970 스위치가 포함됩니다.이 문서에서는 Cisco 7200 라우터를 사용합니다.그러나 EtherChannel 및 802.1Q 트렁킹을 지원하는 다른 라우터를 사용하여 동일한 결과를 얻을 수 있습니다.이 문서의 Requirements 섹션에서는 EtherChannel 및 802.1Q 트렁킹을 지원하는 라우터 목록을 제공합니다.
이 구성을 시도하기 전에 다음 요구 사항에 유의하십시오.
FEC 및 802.1Q 트렁킹 기능은 Cisco IOS® Software 릴리스 12.0(5.2)WC(1) 이상에서 Catalyst L2 고정 컨피그레이션 스위치에서 사용할 수 있습니다.Catalyst 2940 및 2955/2950 스위치는 하드웨어 제한으로 인해 ISL(Inter-Switch Link Protocol) 트렁킹을 지원하지 않습니다.
Cisco 라우터는 Cisco IOS Software 릴리스 12.0(T) 이상에서 EtherChannel 및 802.1Q 트렁킹 기능을 지원합니다.그러나 모든 라우터는 두 기능을 모두 지원하지 않습니다.FEC를 지원하는 라우터 플랫폼과 802.1Q 트렁킹 기능을 확인하려면 다음 표를 사용하십시오.
라우터 플랫폼 | EtherChannel | IEEE 802.1Q 캡슐화 |
---|---|---|
Cisco 1710 라우터 | 아니요 | 예 |
Cisco 1751 라우터 | 아니요 | 예 |
Cisco 2600 시리즈 | 아니요 1 | 예 |
Cisco 3600 시리즈 | 아니요 1 | 예 |
Cisco 3700 시리즈 | 아니요 1 | 예 |
Cisco 4000-M 시리즈(4000-M, 4500-M, 4700-M) | 아니요 | 예 |
Cisco 7000 Series(RSP2 7000, RSP 7000CI) | 예 | 예 |
Cisco 7100 | 아니요 | 예 |
Cisco 7200 시리즈 | 예 | 예 |
Cisco 7500 시리즈(RSP1, RSP2, RSP4) | 예 | 예 |
1 NM-16ESW 또는 NM-36ESW Ethernet Switch Network Module을 설치한 경우 Cisco 2600, 3600 및 3700 Series 라우터에서 EtherChannel 지원이 예외입니다.이러한 각 모듈은 최대 6개의 EtherChannel을 지원하며 EtherChannel 번들에는 최대 8개의 포트가 있습니다.
2 RSP = Route Switch Processor
이 컨피그레이션은 다음 소프트웨어 및 하드웨어 버전에서 개발 및 테스트되었습니다.
Cisco IOS Software 릴리스 12.1(9)EA1d를 실행하는 Catalyst 2950 스위치
Cisco IOS Software 릴리스 12.2(3)를 실행하는 Cisco 7200 라우터
이 문서의 정보는 특정 랩 환경의 디바이스를 토대로 작성되었습니다.이 문서에 사용된 모든 디바이스는 초기화된(기본) 컨피그레이션으로 시작되었습니다.현재 네트워크가 작동 중인 경우, 모든 명령어의 잠재적인 영향을 미리 숙지하시기 바랍니다.
문서 규칙에 대한 자세한 내용은 Cisco 기술 팁 표기 규칙을 참조하십시오.
EtherChannel은 여러 개의 동일 속도 포트 그룹을 통해 논리적 포트 채널로 고속 이더넷(FE)과 기가비트 이더넷(GE) 간의 증분 속도를 제공합니다.EtherChannel은 최대 800Mbps의 다중 FE 또는 최대 8Gbps의 GE를 결합합니다.이 조합은 스위치, 라우터 및 서버 간에 내결함성 고속 링크를 제공합니다.트렁킹은 두 디바이스 간의 포인트-투-포인트 링크를 통해 여러 VLAN의 트래픽을 전달합니다.스위치와 라우터 간 트렁킹 컨피그레이션의 목적은 VLAN 간 통신을 제공하는 것입니다.캠퍼스 네트워크에서는 고대역폭 채널을 통해 다중 VLAN 정보를 전달하도록 EtherChannel 링크를 통한 트렁킹을 구성합니다.
이 섹션에는 이 문서에서 설명하는 기능을 구성하기 위한 정보가 표시됩니다.
문서의 명령에 대한 설명은 다음 문서를 참조하십시오.
Catalyst 2950에서 EtherChannel 구성
라우터에서 LAN 인터페이스 구성의 Fast EtherChannel 섹션 구성
Cisco IOS IEEE 802.1Q Support on Router
참고: 이 문서의 Catalyst 2950 스위치 명령과 구성은 Cisco IOS Software 릴리스 12.1(6)EA2 이상을 실행하는 스위치에 적용됩니다.Cisco IOS Software Release 12.0(5.2)WC(1)을 실행하는 경우 컨피그레이션에 다른 명령이 필요합니다.Cisco IOS Software Release 12.0(5.2)WC(1)를 실행하는 스위치의 컨피그레이션은 다음 문서를 참조하십시오.
Managing Switches, Catalyst 2950의 EtherChannel Port Groups 섹션 생성
Catalyst 2950에서 VLAN 생성 및 유지 관리의 VLAN 트렁크 작동 방법 섹션
참고: 이 문서에 사용된 명령에 대한 추가 정보를 찾으려면 명령 조회 도구 (등록된 고객만 해당)를 사용합니다.
이 문서에서는 다음 네트워크 설정을 사용합니다.
참고: 네이티브 VLAN은 해당 인터페이스에서 트렁킹을 구성하기 전에 Catalyst 인터페이스에서 구성하는 VLAN입니다.기본적으로 모든 인터페이스는 VLAN 1에 있습니다. 따라서 VLAN 1은 변경할 수 있는 기본 VLAN입니다.802.1Q 트렁크에서 네이티브 VLAN을 제외한 모든 VLAN 패킷이 태그됩니다.트렁크의 양쪽에서 동일한 방식으로 네이티브 VLAN을 구성해야 합니다.그런 다음 라우터 또는 스위치에서 태그가 없는 프레임을 수신하면 라우터나 스위치가 프레임이 속한 VLAN을 인식할 수 있습니다.이 섹션의 다이어그램에서 VLAN 10이 네이티브 VLAN으로 구성되었습니다.VLAN 간 라우팅의 경우 스위치에 연결하는 모든 워크스테이션에서 기본 게이트웨이를 구성해야 합니다.이 기본 게이트웨이는 하위 인터페이스에서 구성하는 IP 주소입니다.각 VLAN에 대해 라우터에 하위 인터페이스를 생성합니다.이 예에서 workstation1은 기본 게이트웨이 10.10.10.1으로 구성되었습니다. 이 게이트웨이는 하위 인터페이스 포트 채널 1.10의 IP 주소입니다. Workstation2는 기본 게이트웨이 10.10.11.1으로 구성되었습니다. 이 게이트웨이는 하위 인터페이스 포트 채널 1.20의 IP 주소입니다.
이 문서에서는 다음 구성을 사용합니다.
Catalyst 2950 Switch |
---|
Cat2950# Cat2950# configure terminal Enter configuration commands, one per line. End with CNTL/Z. !--- Set the VLAN Trunk Protocol (VTP) mode to server, !--- and set the VTP domain name 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 !--- Create two VLANs: VLAN 10 and VLAN 20. Cat2950(config)# vlan 10 Cat2950(config-vlan)# exit Cat2950(config)# vlan 20 Cat2950(config-vlan)# exit !--- Configure ports Fa0/5 through Fa0/14 in VLAN 10, !--- and configure ports Fa0/15 through Fa0/26 in VLAN 20. Cat2950(config)# interface range fa0/5 - 14 Cat2950(config-if-range)# switchport access vlan 10 Cat2950(config-if-range)# exit Cat2950(config)# interface 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 !--- Configure the management interface so that you can access !--- the switch remotely with Telnet. Cat2950# configure terminal Cat2950(config)# interface 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# configure terminal Enter configuration commands, one per line. End with CNTL/Z. !--- Configure the default gateway so that you can access !--- the switch from any VLAN. The default gateway is !--- the IP address of the subinterface on the router for VLAN 10. Cat2950(config)# ip default-gateway 10.10.10.1 !--- Configure a logical channel interface. Cat2950(config)# interface port-channel 1 Cat2950(config-if)# exit !--- Assign ports to the logical channel interface in order to form !--- an EtherChannel. !--- Note: Set the channel mode on the switch to on because the Cisco 7200 !--- router on the other end does not support Port Aggregation Protocol (PAgP). Cat2950(config)# interface 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)# interface fa0/3 Cat2950(config-if)# channel-group 1 mode on Cat2950(config-if)# exit !--- In order to configure trunking over EtherChannel, enable trunking !--- over the logical channel interface. Cat2950(config)# interface port-channel 1 Cat2950(config-if)# switchport mode trunk Cat2950(config-if)# 00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down 00:27:14: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed 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, changed state to up 00:27:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed 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 !--- Configure VLAN 10 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# |
Cat2950# show running-config Building configuration... Current configuration : 2390 bytes ! version 12.1 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Cat2950 ! ! ip subnet-zero vtp domain VitalCom vtp mode transparent ! vlan 10 ! vlan 20 ! spanning-tree extend system-id ! ! interface Port-channel1 switchport trunk native vlan 10 switchport mode trunk no ip address flowcontrol send off ! interface FastEthernet0/1 no ip address ! interface FastEthernet0/2 switchport trunk native vlan 10 switchport mode trunk no ip address channel-group 1 mode on ! interface FastEthernet0/3 switchport trunk native vlan 10 switchport mode trunk no ip address channel-group 1 mode on ! interface FastEthernet0/4 no ip address ! interface FastEthernet0/5 switchport access vlan 10 no ip address ! !--- Output suppressed. ! interface FastEthernet0/15 switchport access vlan 20 no ip address ! !--- Output suppressed. interface FastEthernet0/26 switchport access vlan 20 no ip address ! interface Vlan10 ip address 10.10.10.10 255.255.255.0 no ip route-cache ! ip default-gateway 10.10.10.1 ip http server ! ! line con 0 line vty 5 15 ! end Cat2950# |
Cisco 7200 라우터 |
---|
Cisco7200# Cisco7200# configure terminal Enter configuration commands, one per line. End with CNTL/Z. !--- Create a logical channel interface in order to form an EtherChannel. Cisco7200(config)# interface port-channel 1 Cisco7200(config-if)# exit !--- Configure the ports Fa3/0 and Fa4/0 as members of the !--- logical channel in order to form an EtherChannel group. Cisco7200(config)# interface 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)# interface fa4/0 Cisco7200(config-if)# channel-group 1 FastEthernet4/0 added as member-2 to port-channel1 Cisco7200(config-if)# exit !--- Configure subinterfaces over port channel for VLAN 10 and VLAN 20 !--- in order to configure trunking over EtherChannel. Assign the IP address !--- to interVLAN routing. Configure VLAN 10 as the native VLAN !--- for untagged traffic. Cisco7200(config)# interface 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)# interface 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# |
Cisco7200# show running-config Building configuration... Current configuration : 987 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Cisco7200 ! ! ip subnet-zero ! ! ! call rsvp-sync ! ! interface Port-channel1 no ip address hold-queue 150 in ! interface Port-channel1.10 encapsulation dot1Q 10 native ip address 10.10.10.1 255.255.255.0 ! interface Port-channel1.20 encapsulation dot1Q 20 ip address 10.10.11.1 255.255.255.0 ! !--- Output suppressed. ! interface FastEthernet3/0 no ip address channel-group 1 ! interface FastEthernet4/0 no ip address channel-group 1 ! ip classless no ip http server ! ! ! gatekeeper shutdown ! ! line con 0 line aux 0 line vty 5 15 ! end |
이 섹션에서는 컨피그레이션이 제대로 작동하는지 확인하는 데 사용할 수 있는 정보를 제공합니다.
일부 show 명령은 출력 인터프리터 툴 에서 지원되는데(등록된 고객만), 이 툴을 사용하면 show 명령 출력의 분석 결과를 볼 수 있습니다.
show etherchannel
show interfaces interface-id switchport
show interface interface-id trunk
show etherchannel
show etherchannel 명령은 EtherChannel 정보를 표시합니다.또한 이 명령은 로드 밸런스 또는 프레임 분배 체계, 포트 및 포트 채널 정보도 표시합니다.명령 구문은 다음과 같습니다.
show etherchannel [channel-group-number] {brief | detail | load-balance | port |
port-channel | summary}
참고: 이 명령은 한 줄에 있어야 합니다.
Cat2950# show etherchannel 1 detail Group state = L2 Ports: 2 Maxports = 8 Port-channels: 1 Max Port-channels = 1 Ports in the group: ------------------- Port: Fa0/2 ------------ Port state = Up Mstr In-Bndl Channel group = 1 Mode = On/FEC Gcchange = 0 Port-channel = Po1 GC = 0x00010001 Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Age of the port in the current state: 00d:17h:51m:49s Port: Fa0/3 ------------ Port state = Up Mstr In-Bndl Channel group = 1 Mode = On/FEC Gcchange = 0 Port-channel = Po1 GC = 0x00010001 Pseudo port-channel = Po1 Port index = 0 Load = 0x00 Age of the port in the current state: 00d:17h:51m:49s Port-channels in the group: ---------------------- Port-channel: Po1 ------------ Age of the Port-channel = 00d:17h:54m:02s Logical slot/port = 1/0 Number of ports = 2 GC = 0x00010001 HotStandBy port = null Port state = Port-channel Ag-Inuse Ports in the Port-channel: Index Load Port EC state ------+------+------+------------ 0 00 Fa0/2 on 0 00 Fa0/3 on Time since last port bundled: 00d:17h:51m:50s Fa0/3 Time since last port Un-bundled: 00d:17h:51m:53s Fa0/3 Cat2950#
show interfaces interface-id switchport
show interfaces interface-id switchport 명령은 인터페이스의 switchport 컨피그레이션을 Administrative Mode 필드 및 출력의 Administrative Trunking Encapsulation 필드에 표시합니다.
Cat2950# show interfaces port-channel 1 switchport Name: Po1 Switchport: Enabled Administrative Mode: trunk Operational Mode: trunk Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN: 10 (VLAN0010) Trunking VLANs Enabled: ALL Pruning VLANs Enabled: 2-1001 Protected: false Voice VLAN: none (Inactive) Appliance trust: none Cat2950#
show interface interface-id trunk
show interfaces interface-id trunk 명령은 인터페이스의 트렁크 컨피그레이션을 표시합니다.
Cat2950# show interfaces port-channel 1 trunk Port Mode Encapsulation Status Native vlan Po1 on 802.1q trunking 10 Port Vlans allowed on trunk Po1 1-4094 Port Vlans allowed and active in management domain Po1 1,10,20 Port Vlans in spanning tree forwarding state and not pruned Po1 1,10,20 Cat2950#
show interfaces port-channel channel-number
포트 채널 인터페이스 및 채널 멤버 포트를 확인하기 위해 show interfaces port-channel channel-number 명령을 사용할 수 있습니다.
Cisco7200# show interfaces port-channel 1 Port-channel1 is up, line protocol is up Hardware is FEChannel, address is 00d0.63b2.8854 (bia 0000.0000.0000) MTU 1500 bytes, BW 200000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation 802.1Q Virtual LAN, Vlan ID 1., loopback not set Keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 No. of active members in this channel: 2 Member 0 : FastEthernet3/0 , Unknown duplex, 100Mb/s Member 1 : FastEthernet4/0 , Unknown duplex, 100Mb/s Last input 00:00:00, output never, output hang never Last clearing of "show interface" counters never Queueing strategy: fifo Output queue 0/80, 0 drops; input queue 0/150, 0 drops 5 minute input rate 0 bits/sec, 1 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 79434 packets input, 6020431 bytes Received 2099 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 0 watchdog 0 input packets with dribble condition detected 1137 packets output, 359153 bytes, 0 underruns(0/0/0) 6 output errors, 0 collisions, 6 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out Cisco7200#
show interfaces interface.subinterface
트렁크 컨피그레이션을 확인하려면 show interfaces interface.subinterface 명령을 사용할 수 있습니다.
Cisco7200# show interfaces port-channel 1.10 Port-channel1.10 is up, line protocol is up Hardware is FEChannel, address is 00d0.63b2.8854 (bia 0000.0000.0000) Internet address is 10.10.10.1/24 MTU 1500 bytes, BW 200000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation 802.1Q Virtual LAN, Vlan ID 10. ARP type: ARPA, ARP Timeout 04:00:00 Cisco7200# Cisco7200# show interfaces port-channel 1.20 Port-channel1.20 is up, line protocol is up Hardware is FEChannel, address is 00d0.63b2.8854 (bia 0000.0000.0000) Internet address is 10.10.11.1/24 MTU 1500 bytes, BW 200000 Kbit, DLY 100 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation 802.1Q Virtual LAN, Vlan ID 20. ARP type: ARPA, ARP Timeout 04:00:00 Cisco7200#
현재 이 컨피그레이션에 사용할 수 있는 특정 문제 해결 정보가 없습니다.