06 December, 2013

Cisco CCNP Switch Chapter 6

L2 Etherchannel

Switch(config)#interface range fastEthernet 0/23 - 24
Switch(config-if-range)#channel-protocol [ lacp | pagp

Switch(config-if-range)#channel-group 1 mode [ active | auto | desirable | on | passive ]

*Note: 
  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

Switch(config-if-range)#channel-group 1 mode desirable
Creating a port-channel interface Port-channel 1

Example:
R3#configure terminal
R3(config)#interface range fastEthernet 1/14 - 15
R3(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel1

*Mar  1 00:02:08.715: %EC-5-BUNDLE: Interface Fa1/14 joined port-channel Po1
*Mar  1 00:02:08.787: %EC-5-BUNDLE: Interface Fa1/15 joined port-channel Po1
*Mar  1 00:02:11.663: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up

R4#configure terminal
R4(config)#interface range fastEthernet 1/14 - 15
R4(config-if-range)#channel-group 1 mode on
Creating a port-channel interface Port-channel1

*Mar  1 00:01:33.795: %EC-5-BUNDLE: Interface Fa1/14 joined port-channel Po1
*Mar  1 00:01:33.971: %EC-5-BUNDLE: Interface Fa1/15 joined port-channel Po1
*Mar  1 00:01:36.735: %LINEPROTO-5-UPDOWN: Line protocol on Interface Port-channel1, changed state to up

R4#show ip interface brief | include Port-channel
Port-channel1              unassigned      YES unset  up                    up 

R4#show ip interface brief | include up
FastEthernet1/14           unassigned      YES unset  up                    up  
FastEthernet1/15           unassigned      YES unset  up                    up  
Port-channel1              unassigned      YES unset  up                    up 

R4#show etherchannel load-balance
 Po1 ---> Source XOR Destination IP address

R4#show etherchannel 1 brief
Group state = L2
Ports: 2   Maxports = 8
Port-channels: 1 Max Port-channels = 1

R4#show etherchannel 1 detail
Group state = L2
Ports: 2   Maxports = 8
Port-channels: 1 Max Port-channels = 1
                Ports in the group:
                -------------------
Port: Fa1/14
------------
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
Age of the port in the current state: 00d:00h:07m:42s

Port: Fa1/15
------------
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    = 1
Age of the port in the current state: 00d:00h:07m:42s
                Port-channels in the group:
                ----------------------

Port-channel: Po1
------------
Age of the Port-channel   = 00d:00h:07m:45s
Logical slot/port   = 8/0           Number of ports = 2
GC                  = 0x00010001      HotStandBy port = null
Port state          = Port-channel Ag-Inuse

Ports in the Port-channel:
Index   Port   EC state
------+------+------------
  0     Fa1/14   on
  1     Fa1/15   on

Time since last port bundled:    00d:00h:07m:45s    Fa1/15

R4#show etherchannel 1 port
                Ports in the group:
                -------------------
Port: Fa1/14
------------
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
Age of the port in the current state: 00d:00h:08m:05s

Port: Fa1/15
------------
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    = 1
Age of the port in the current state: 00d:00h:08m:05s

R4#show etherchannel 1 port-channel
                Port-channels in the group:
                ----------------------

Port-channel: Po1
------------
Age of the Port-channel   = 00d:00h:08m:17s
Logical slot/port   = 8/0           Number of ports = 2
GC                  = 0x00010001      HotStandBy port = null
Port state          = Port-channel Ag-Inuse

Ports in the Port-channel:
Index   Port   EC state
------+------+------------
  0     Fa1/14   on
  1     Fa1/15   on

Time since last port bundled:    00d:00h:08m:17s    Fa1/15

R4#show etherchannel 1 summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        R - Layer3      S - Layer2
        U - in use
Group Port-channel  Ports
-----+------------+-----------------------------------------------------------
1     Po1(SU)     Fa1/14(P)  Fa1/15(P)

L3 EtherChannel

R3(config)#interface port-channel 1
R3(config-if)#ip address 10.1.1.1 255.255.255.0
% IP addresses may not be configured on L2 links.
R3(config-if)#no switchport
Command rejected: Not a convertable port.
R3(config-if)#exit
R3(config)#interface range fastEthernet 1/14 - 15
R3(config-if-range)#no channel-group 1 mode on
R3(config-if-range)#interface Port-channel1
R3(config-if)#no switchport
R3(config-if)#ip address 10.1.1.1 255.255.255.0
R3(config-if)#interface range fastEthernet 1/14 - 15
R3(config-if-range)#no switchport
R3(config-if-range)#channel-group 1 mode on


*Note: All ports must use same speed and duplex (HARD CODE !)
*Note: Interfaces in a bundle are redundant
*Note: No interfaces in bundle can be span ports
*Note: Interfaces in bundle must be in same VLAN / Trunk
*Note: Any changes to Port-Channel affects all bundled ports
*Note: Any changes to individual ports affect only that port