Pages

Tuesday, August 5, 2014

L2 Trunking and Tunneling Notes

Ethernet:
802.1q tunneling  mainly used in  Core

Layer2 Security:
port security, PVLANS, VACLS, DHCP Snooping, etc.

Layer 2 QoS.
Classification, Marking, Policing, Queueing, etc

Ethernet Interface Types.
Layer 2 Switch ports
- Access  ie one vlan
interface f 0/1
switchport mode access
switchport access vlan 10

- Trunk == multiple VLANS

ISL is cisco propriety
All traffic encapsulated with ISL

802.1q
open standard
native vlan sent untagged.

DTP (dynamic trunking protocol)
Used to automatically negotiate what are trunk links supposed to be.
verified with ..
show interface trunk
show interface switchport
show spanning-tree [vlan | interface]

desirable mode == initiates trunking negotiation
auto mode = passively listen for trunking negotiation

Disabling DTP negotiation
Switch port non-negotiate
Switch port mode access
Switch port mode dot1q-tunnel

- Tunnel = transparent Layer 2 VPN

- Dynamic = DTP negotiation

Layer 3 Ports
- Switched Virtual Interface (SVI)
- Native Routed Interface


802.1q Tunneling
==================
1. Layer 2 VPN over switched ethernet network
Lightweight version of MPLS L2VPN
2. SP's PE adds additional 802.1q tag to all frames received from CE
called "metro tag" or "QinQ"
3. PE assigns all CE facing ports to the same VLAN
One vlan per customer in P network.

Configuration
-switchport mode dot1q-tunnel
tell switch to double tag frames
-switchport access vlan {vlan}
metro vlan assignment

Verification
-show dot1q-tunnel

Cannot be dynamically negotiated.

802.1q Tunneling Design Issues:
================================
Assumes L2 network end to end
- PE - P - PE links must all run layer 2 trunking
- Implies scalability issues.

Additional tags increase payload size
- 4 bytes per tag
- potential to exceed MTU of the transit path
- Ethernet doesn't support fragmentation

Loass of control plane signaling for CE devices
- CDP, VTP, STP etc dropped by PE.


Layer 2 Protocol tunneling
==========================
used to tunnel layer 2 control plane protocols between ports
-used with 802.1 q tunnel

Support for .. -cdp, vtp, stp, PAgP, LACP, and UDLD.

EtherChannel over 802.1q Tunnels
===================================
CE can suppport aggregation of CE-PE links
eg 2*GigE per customer site

EtherChannel must be point to point
- Implies one metro tag per PE-CE link

PE can tunnel negotiation as well

-l2protocol-tunnel point-to-point [lacp | pagp]

L3 Routing Notes

Layer 3 routing process of the Switches :
Switched virtual interfaces(SVI)
-interfaces vlan [1-4094]
-vlan must exist in the database first

Native routed interface
- no switchport
-same as ethernet interface on a router

Sw1# show ip route
Default gateway is not set
ICMP redirect cache is empty == means ip routing is not set in switch.
If gateway is not set, switch will try to do arp for all destination ips.

To turn on ip routing in switch
switch(config)# ip routing

Routing can be used over trunk interface. It is advisable to do so since it does not use STP and hence will not have convergence issues.

Layer 3 Routing (Contd)
Router on a Stick
-Layer 2 switch trunks traffic to external L3 router
-legacy version of SVI

Router usually does not support DTP and VTP
-switchport mode trunk
-switchport trunk allowed vlan

Router encapsulated ISL or 802.1q traffic using sub-interfaces
-encapsulation [isl | dot1q] {vlan} {native}

Native vlan must match
-Can be on the main interface or subinterface with native keyword.

Note: sub interface and vlan number need not to be matched. We are doing so just for clarity.

There will be only one native vlan on a trunk

Etherchannel Notes

Etherchannel
================
used to aggregate bandwidth of physical links
-same logic as PPP multilink

Consists of two parts
-port-channel interface
 ie logical interface representing the link bundle

-members interfaces
 physical links part of a link bundle

Channel can be any type of interface
 ie layer 2 access, trunk, tunnel or l3 routed.


Etherchannel Negotiation
==========================
channel-group [number] mode [mode]
Mode determines how negotiation occurs
- ON
 No negotiation

- Desirable & Auto (used in PAgP)
 Initiate of listen for PAgp

- Active and Passive (used in LACP)
  In active state  send LACP and in passive state listen for LACP
PAgp vs LACP is like ISL vs 802.1q also LACP is defined in 802.3ad

Ether channel Mode compatibility
===================================
On - On
Desirable - Desirable
Desirable - Auto
Active - Active
Active - Passive

Ether Channel Load Balancing
===========================
Load balancing between member interface based on..
-source mac
-dest mac
-source ip
-dst ip
-combinations of four

Modified with..
- port-channel load-balance

Layer 3 EtherChannel
=====================
Issue the no switchport command on members interface first
- order of operations issues

Ip address and other logical options go on the Port-channel interface

Ether Channel
===================
show etherchannel summary
L2 : show spanning-tree
L3 : show ip route