การ configure EtherChannel และ 802.1Q Trunking ระหว่าง Switch กับ Router
ตาม link: //www.cisco.com/c/en/us/support/docs/switches/catalyst-2950-series-switches/24042-158.html จะมีตัวอย่าง configuration และบอกว่า router รุ่นไหนบ้างที่รองรับการทำ EtherChannel ตารางข้างล่างจะบอกว่า Router รุ่นไหนบ้างที่ทำ EtherChannel ได้ Router Platform | EtherChannel | IEEE 802.1Q Encapsulation | Cisco 1710 router | No | Yes | Cisco 1751 router | No | Yes | Cisco 2600 series | No1 | Yes | Cisco 3600 series | No1 | Yes | Cisco 3700 series | No1 | Yes | Cisco 4000-M series (4000-M, 4500-M, 4700-M) | No | Yes | Cisco 7000 series (RSP2 7000, RSP 7000CI) | Yes | Yes | Cisco 7100 | No | Yes | Cisco 7200 series | Yes | Yes | Cisco 7500 series (RSP1, RSP2, RSP4) | Yes | Yes |
ความคิดเห็นส่วนตัว: Solution ที่ใช้ router มาทำ EtherChannel นั้น อาจจะทำได้ก็จริง แต่ก็ไม่ใช่ว่า router ทุกรุ่นจะทำได้ ดังนั้น หากเป็นผมแล้ว ผมจะเลือก Layer 3 Switch มาใช้แทน router (นำเอา L3 Switch มาแทน Router R1 - อิงตัวภาพตัวอย่างข้างล่าง)
สำหรับ L2 Switch: ในกรณีที่เราใช้ Emulator/Simulator มาทดลองแล้ว ผมไม่แนะนำการ add module Switch บน RouterCisco 7200 นะครับ เพราะ EtherChannel บน module Switch ที่เคย test มา มีปัญหาเยอะ ในกรณีของการใช้งาน EtherChannel บน Emulator/Simulator แล้ว ผมแนะนำให้หา IOU L2 มาใช้ครับสำหรับ IOU L2 ที่ผมใช้ คือ i86bi-linux-l2-adventerprisek9-15.1a.bin สำหรับ Router: สำหรับในตัวอย่างนี้ ผมใช้ Router รุ่น Cisco 7200 ---------------------------------- สำหรับตัวอย่าง configuration ที่ผมได้ลองทำ Test เพื่อ POC (Prove of Concept) ว่าใช้งานได้หรือไม่ และได้ทำการ ping test เพื่อตรวจสอบผลของ config ว่าสามารถใช้งานได้หรือไม่ ตามนี้ครับ
Ethernet Switch:
IOU_SW1# show version Cisco IOS Software, Solaris Software (I86BI_LINUXL2-ADVENTERPRISEK9-M), Experimental Version 15.1(20130726:213425) [dstivers-july26-2013-team_track 104] -------------- ตัดบางส่วนออกไป --------- IOU_SW1 uptime is 44 minutes System returned to ROM by reload at 0 System image file is "unix:/opt/gns3/images/IOU/i86bi-linux-l2-adventerprisek9-15.1a.bin" ----- ตัดบางส่วนออกไป --------- IOU_SW1# IOU_SW1# show cdp neighbor Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID R2 Eth 0/2 146 R 7206VXR Fas 0/0 R3 Eth 0/3 160 R 7206VXR Fas 0/0 R1 Eth 0/1 150 R 7206VXR Fas 0/1 R1 Eth 0/0 135 R 7206VXR Fas 0/0 IOU_SW1# IOU_SW1# IOU_SW1# show run ! hostname IOU_SW1 ! interface Port-channel1 switchport switchport trunk encapsulation dot1q switchport mode trunk ! interface Ethernet0/0 switchport trunk encapsulation dot1q switchport mode trunk duplex auto channel-group 1 mode on ! interface Ethernet0/1 switchport trunk encapsulation dot1q switchport mode trunk duplex auto channel-group 1 mode on ! interface Ethernet0/2 switchport access vlan 10 switchport mode access duplex auto ! interface Ethernet0/3 switchport access vlan 20 switchport mode access duplex auto ! IOU_SW1# IOU_SW1# IOU_SW1# IOU_SW1# show vlan
VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Et1/0, Et1/1, Et1/2, Et1/3 Et2/0, Et2/1, Et2/2, Et2/3 Et3/0, Et3/1, Et3/2, Et3/3 10 VLAN0010 active Et0/2 20 VLAN0020 active Et0/3 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 0 0 10 enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0
Primary Secondary Type Ports ------- --------- ----------------- ------------------------------------------
IOU_SW1#
IOU_SW1# show interfaces trunk
Port Mode Encapsulation Status Native vlan Po1 on 802.1q trunking 1
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 IOU_SW1# IOU_SW1# IOU_SW1# IOU_SW1# show etherchannel summary Flags: D - down P - bundled 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
M - not in use, minimum links not met 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(SU) - Et0/0(P) Et0/1(P)
IOU_SW1# ========================== Router R1:
R1# show version Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 15.2(4)S5, RELEASE SOFTWARE (fc1) R1 uptime is 47 minutes
R1# R1# show cdp neighbor Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID IOU_SW1 Fas 0/0 130 R S I Linux Uni Eth 0/0 IOU_SW1 Fas 0/1 130 R S I Linux Uni Eth 0/1 R1# R1# R1# show run ! hostname R1 ! interface Port-channel1 no ip address ! interface Port-channel1.10 encapsulation dot1Q 10 ip address 10.1.1.1 255.255.255.0 ! interface Port-channel1.20 encapsulation dot1Q 20 ip address 20.1.1.1 255.255.255.0 ! interface FastEthernet0/0 no ip address speed 10 duplex half channel-group 1 ! interface FastEthernet0/1 no ip address speed 10 duplex half channel-group 1 ! end
R1# R1# R1# ping 10.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/22/36 ms R1# R1# R1# R1# ping 20.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 20.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/16/36 ms R1#
===================
Router R2:
R2# show ver Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 15.2(4)S5, RELEASE SOFTWARE (fc1)
R2# R2# show cdp neighbor Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID IOU_SW1 Fas 0/0 121 R S I Linux Uni Eth 0/2 R2# R2# R2# show run ! hostname R2 ! interface FastEthernet0/0 ip address 10.1.1.2 255.255.255.0 speed 10 duplex half ! end
R2# R2# R2# ping 10.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/22/36 ms R2# ===================================
Router R3:
R3# show version Cisco IOS Software, 7200 Software (C7200-ADVENTERPRISEK9-M), Version 15.2(4)S5, RELEASE SOFTWARE (fc1)
R3# R3# show cdp neighbor Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, D - Remote, C - CVTA, M - Two-port Mac Relay
Device ID Local Intrfce Holdtme Capability Platform Port ID IOU_SW1 Fas 0/0 173 R S I Linux Uni Eth 0/3 R3# R3# R3#show run ! hostname R3 ! interface FastEthernet0/0 ip address 20.1.1.2 255.255.255.0 speed 10 duplex half ! end
R3# R3# R3# ping 20.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 16/29/64 ms R3#
หวังว่าจะมีประโยชน์กับทุกๆ ท่านนะครับ
โก้-ชัยวัฒน์ (KoChaiwat)
Create Date : 28 พฤษภาคม 2560 |
Last Update : 29 พฤษภาคม 2560 17:32:42 น. |
|
2 comments
|
Counter : 8947 Pageviews. |
|
|
|