Difference between revisions of "CCNP SWITCH/Implementing Inter-VLAN Routing"

From Teknologisk videncenter
Jump to: navigation, search
m (Router-on-a-Stick)
m (Inter-VLAN Routing Using SWI)
Line 43: Line 43:
 
*Latency might be higher as frames leave and re-enter the switch chassis multiple times and the router makes software-based routing decisions.
 
*Latency might be higher as frames leave and re-enter the switch chassis multiple times and the router makes software-based routing decisions.
 
==Inter-VLAN Routing Using SWI==
 
==Inter-VLAN Routing Using SWI==
 +
A long time ago high performance network consisted of L2 Switches. Routers routed i software and performed slow whereas switches switched in hardware.
 +
{|
 +
|[[Image:ScreenShot1106.jpg|800px|left|thumb|Routed vs switches Campus Architecture]]
 +
|}
 +
As networks evolved routing became faster and got implemented in ASICs. Routing in hardware performs at wire-speed in most L3 Switches.
 +
{|
 +
|[[Image:ScreenShot1107.jpg|800px|left|thumb|SVI Example]]
 +
|}
 +
SVI is use to:
 +
*Provide gateways for VLAN Clients
 +
*Provide Layer 3 IP connectivity to the switch
 +
*Support Routing Protocols
 +
SVI: Advantages and Disadvantages:
 +
*It is much faster than router-on-a-stick because everything is hardware switched and routed.
 +
*No need for external links from the switch to the router for routing.
 +
*Not limited to one link. Layer 2 EtherChannels can be used between the switches to get more bandwidth.
 +
*Latency is much lower because it doesn’t need to leave the switch.
 +
*It needs a Layer 3 switch to perform Inter-VLAN routing, which is more expensive.
 +
==Routing with Routed Ports==
 +
Routed interfaces don’t support subinterfaces as with Cisco IOS routers. But it is possible to configure a routed EtherChannel. Routed ports removes Layer 2 protocols such as STP and VTP.<br/><br/>
 +
Configuring a routed port
 +
<source lang=cli>
 +
Switch(config)#interface fastethernet 0/1
 +
Switch(config-if)#no switchport
 +
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
 +
Switch(config-if)#no shutdown
 +
</source>

Revision as of 10:51, 29 August 2011

Inter-VLAN Routing

Because VLANs isolate trafficto a defined broadcast domain and subnet, network devices in different VLANs cannot communicate with each other natively.

Isolated VLANs
Inter-VLAN Routing

Adding an external routing with subinterface routing does not scale beyond 50 VLANs. Cisco IOS routers only support trunking in IP Plus Feature set and above.

Catalyst Multilayer Switches support 3 different routed interface types:

Routed Port
A pure Layer 3 interface similar to a routed port on a Cisco IOS router.
Switched Virtual Interface (SVI)
A virtual VLAN interface for inter-VLAN routing. In other words, SVIs are the virtual routed VLAN interfaces.
Bridged Virtual Interfaces (BVI)
A Layer 3 virtual bridging interface.

All Cisco Layer 3 Switches support routing protocols, but several models requires enhanced software for specific routing protocol features.

To change between routed and switchports use no switchport and switchport interface commands respectively. Catalyst 6500 switches use L3 interfaces by default, so depending on the switching model the swithport and no switchport command might be present in the running-config files.

Inter-VLAN Routing Support
Switch Type Inter-VLAN Routing Capability Inter-VLAN Routing Solution
Catalyst 2940/2950/2955/2960/2970 No N/A
Catalyst 3560/3750/3760 Yes Integrated
Catalyst 4000/4500/4948 Yes Catalyst 4000 running Cisco CatOS with Supervisor I or II, using the Layer 3 module, WS-X4232-L3 Catalyst 4000 with a Supervisor II+, III, IV, or V running Cisco IOS using integrated routing
Catalyst 6500 Yes Catalyst 6500 with an MSFC, MSFC II, or MSFC III daughter card running Cisco CatOS on the supervisors and Cisco IOS on the MSFC Catalyst 6500 with MSFC, MSFC II, or MSFC III running Cisco Native IOS Catalyst 6500 using a legacy MSM module

Router-on-a-Stick

Inter-VLAN subinterface Routing forwarding path

Router-on-a-Stick Advantages and Disanvantages

  • Works on any L2 switch that support Trunking.
  • Simpel Implementation. Only one swithc port and one router interface require configuration.
  • The Router provides Inter-VLAN Routing i a Layer 2 network.
  • The Router is a single point of failure.
  • Trunk link may be congested when multible VLANs use it.
  • Latency might be higher as frames leave and re-enter the switch chassis multiple times and the router makes software-based routing decisions.

Inter-VLAN Routing Using SWI

A long time ago high performance network consisted of L2 Switches. Routers routed i software and performed slow whereas switches switched in hardware.

Routed vs switches Campus Architecture

As networks evolved routing became faster and got implemented in ASICs. Routing in hardware performs at wire-speed in most L3 Switches.

SVI Example

SVI is use to:

  • Provide gateways for VLAN Clients
  • Provide Layer 3 IP connectivity to the switch
  • Support Routing Protocols

SVI: Advantages and Disadvantages:

  • It is much faster than router-on-a-stick because everything is hardware switched and routed.
  • No need for external links from the switch to the router for routing.
  • Not limited to one link. Layer 2 EtherChannels can be used between the switches to get more bandwidth.
  • Latency is much lower because it doesn’t need to leave the switch.
  • It needs a Layer 3 switch to perform Inter-VLAN routing, which is more expensive.

Routing with Routed Ports

Routed interfaces don’t support subinterfaces as with Cisco IOS routers. But it is possible to configure a routed EtherChannel. Routed ports removes Layer 2 protocols such as STP and VTP.

Configuring a routed port

Switch(config)#interface fastethernet 0/1
Switch(config-if)#no switchport
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown