No trunks are currently set between DLS1 and any other switch, I will setup port 7 through 12 to trunk and do the same for the rest of the switches.
DLS1#show int trunk
DLS1#
DLS1#config t
Enter configuration commands, one per line. End with CNTL/Z.
DLS1(config)#int range fast 0/7- 12
DLS1(config-if-range)#switchport trunk encap dot1q
DLS1(config-if-range)#switchport mode trunk
DLS2 ports directly connected to DLS1 became trunks after I setup DLS1 port 0/11 ,0/12 to trunk because DLS2 ports are in dynamic auto by default.
DLS2#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/11 auto n-802.1q trunking 1
Fa0/12 auto n-802.1q trunking 1
Port Vlans allowed on trunk
Fa0/11 1-1005
Fa0/12 1-1005
Port Vlans allowed and active in management domain
Fa0/11 1
Fa0/12 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/11 1
Fa0/12 1
DLS2#show interfaces fastEthernet 0/11 switchport
Name: Fa0/11
Switchport: Enabled
Administrative Mode: dynamic auto
..............................................
DLS2(config)#int range fastEthernet 0/7- 12
DLS2(config-if-range)#switchport trunk encap dot1q
DLS2(config-if-range)#switchport mode trunk
I like to make them trunk manually.
On ALS1 we have the same story dynamic auto is on and once I changed DLS1 to trunk interfaces they dynamically became trunks.
ALS1# show int fast 0/7 switchport
Name: Fa0/7
Switchport: Enabled
Administrative Mode: dynamic auto
Operational Mode: trunk
ALS1#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/7 auto n-802.1q trunking 1
Fa0/8 auto n-802.1q trunking 1
Fa0/9 auto n-802.1q trunking 1
Fa0/10 auto n-802.1q trunking 1
Port Vlans allowed on trunk
Fa0/7 1-1005
Fa0/8 1-1005
Fa0/9 1-1005
Fa0/10 1-1005
Port Vlans allowed and active in management domain
Fa0/7 1,100,110,120
Fa0/8 1,100,110,120
Fa0/9 1,100,110,120
Fa0/10 1,100,110,120
Port Vlans in spanning tree forwarding state and not pruned
Fa0/7 100,110,120
Fa0/8 100,110,120
Fa0/9 1,100,110,120
Fa0/10 100,110,120
Ports 0/11 and Port 0/12 aren't trunks because connections with ALS1 and ALS2 are both setup as dynamic auto. ALS1 and ALS2 IOS only supports dot1q so encapsulation doesn't need to be specified.
ALS1(config)#int range fast 0/7- 12
ALS1(config-if-range)#switch mode trunk
ALS2(config)#int range fast 0/7- 12
ALS2(config-if-range)#switch mode trunk
I want to create an etherchannel with ALS1 and ALS2 using Cisco's PAgP. There are some rules I must follow before I combine ports into an etherchannel. They must be the same type of port (trunk,port) , same duplex, same speed , same allowed VLANs and native VLAN. Here both 11 and 12 are trunks with the same port and VLAN settings.
ALS1(config)#int range fast 0/11- 12
ALS1(config-if-range)#channel-group 1 mode desirable
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up
ALS2(config)#int range fast 0/11- 12
ALS2(config-if-range)#channel-group 1 mode desirable
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to up
ALS2(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel 1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 1, changed state to up
The etherchannel is now a logical interface named po1.
ALS1(config)#int port-channel 1
ALS1(config-if)#switchport mode trunk
ALS2(config)#int po1
ALS2(config-if)#switchport mode trunk
ALS1#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/7 on 802.1q trunking 1
Fa0/8 on 802.1q trunking 1
Fa0/9 on 802.1q trunking 1
Fa0/10 on 802.1q trunking 1
Fa0/11 on 802.1q trunking 1
Fa0/12 on 802.1q trunking 1
Po1 on 802.1q trunking 1
To make sure the etherchannel is up and running , I run the show etherchannel summary command. I can see the ports are layer 2 and in use with PAgP and that 11 and 12 are in the bundle.
ALS1#show etherchannel summary
Flags: D - down P - 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
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) PAgP Fa0/11(P) Fa0/12(P)
ALS1#
Now I want to create a LACP etherchannel on ports 7 &8 at ALS1 and DLS1.
ALS1(config)#int range fast 0/7- 8
ALS1(config-if-range)#channel-group 2 mode ?
active Enable LACP unconditionally
auto Enable PAgP only if a PAgP device is detected
desirable Enable PAgP unconditionally
on Enable Etherchannel only
passive Enable LACP only if a LACP device is detected
ALS1(config-if-range)#channel-group 2 mode active
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to up
ALS1(config-if-range)#
DLS1(config)#int range fast 0/7- 8
DLS1(config-if-range)#channel-group 2 mode active
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to up
DLS1(config-if-range)#
%LINK-5-CHANGED: Interface Port-channel 2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel 2, changed state to up
ALS1(config)#int po2
ALS1(config-if)#switchport mode trunk
DLS1(config)#int po2
DLS1(config-if)#switchport mode trunk
ALS1#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/7 on 802.1q trunking 1
Fa0/8 on 802.1q trunking 1
Fa0/9 on 802.1q trunking 1
Fa0/10 on 802.1q trunking 1
Fa0/11 on 802.1q trunking 1
Fa0/12 on 802.1q trunking 1
Po1 on 802.1q trunking 1
Po2 on 802.1q trunking 1
ALS1#show etherchannel summary
Flags: D - down P - 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
u - unsuitable for bundling
w - waiting to be aggregated
d - default port
Number of channel-groups in use: 2
Number of aggregators: 2
Group Port-channel Protocol Ports
------+-------------+-----------+----------------------------------------------
1 Po1(SU) PAgP Fa0/11(P) Fa0/12(P)
2 Po2(SU) LACP Fa0/7(P) Fa0/8(P)
No comments:
Post a Comment