+ All Categories
Home > Documents > Bcmsn30s04 Intervlan Routing

Bcmsn30s04 Intervlan Routing

Date post: 02-Apr-2018
Category:
Upload: agung-budi
View: 217 times
Download: 0 times
Share this document with a friend
42
7/27/2019 Bcmsn30s04 Intervlan Routing http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 1/42 Implementing Inter-VLAN Routing Describing Routing Between VLANs
Transcript
Page 1: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 1/42

Implementing Inter-VLAN Routing

Describing Routing Between VLANs

Page 2: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 2/42

Inter-VLAN Routing with External Router 

• Single trunk link carries traffic for multiple VLANs to and

from router.

Page 3: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 3/42

Inter-VLAN RoutingExternal Router Configuration Commands

Configure on subinterface

• encapsulation dot1Q (or isl) 10

• ip address 10.10.1.1 255.255.255.0

Verify• show vlan 10

• show ip route

Page 4: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 4/42

Inter-VLAN Routing on External Router:802.1Q Trunk Link

Page 5: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 5/42

Inter-VLAN Routing on External Router:ISL Trunk Link

Page 6: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 6/42

Verifying Inter-VLAN Routing

The ping command tests connectivity to remote hosts.

Page 7: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 7/42

Verifying the Inter-VLAN RoutingConfiguration

Router#show ip interface brief

• Displays the current IP configuration per VLAN

Router#show ip route

• Displays IP route table information

Router#show vlan

• Displays IP address on interfaces and current state of interface

Page 8: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 8/42

Explaining Multilayer Switching

Page 9: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 9/42

Layer 2 Switch Forwarding Process

Page 10: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 10/42

Logical Packet Flow for aMultilayer Switch

Page 11: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 11/42

Rewritten IP Unicast Packet

IP Unicast Frame and Packet Rewrite

Incoming IP Unicast Packet

Page 12: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 12/42

CAM Table

• Requires an exactmatch on all bits

• Matching is a binary

operation: 0 or 1

• Provides very high-speed lookups

Page 13: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 13/42

TCAM Table

• Matches only significantvalues

• Matches based on threevalues: 0, 1, or X (either)

•Masks used to wildcard somecontent fields

Page 14: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 14/42

Summary

• A router on a stick can be used to route between VLANsusing either ISL or 802.1Q as the trunking protocol.

• A router on a stick requires subinterfaces, one for each VLAN.

•Verify inter-VLAN routing by generating IP packets betweentwo subnets.

• Multilayer switches can forward traffic at both Layer 2 andLayer 3.

• Multilayer switches rewrite the Layer 2 and Layer 3 header 

using tables held in hardware.

Page 15: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 15/42

Implementing Inter-VLAN Routing

Enabling Routing Between VLANs on aMultilayer Switch

Page 16: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 16/42

Layer 3 SVI

Page 17: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 17/42

SVI on a Multilayer Switch

Configure

•  ip routing

• interface vlan 10

 – ip address 10.1.1.1 255.255.255.0

• router eigrp 50

 – network 10.0.0.0

Verify

 show ip route

Page 18: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 18/42

Configuring Inter-VLAN RoutingThrough an SVI

Switch(config)#ip routing

Step 1 : Configure IP routing.

Switch(config)#router ip_routing_protocol <options>  

Step 4 : Configure the IP routing protocol if needed.

Switch(config)#interface vlan vlan-id  

Step 2 : Create an SVI interface.

Switch(config-if)#ip address ip-address mask  

Step 3 : Assign an IP address to the SVI.

Page 19: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 19/42

Routed Ports on a Multilayer Switch (Cont.)

Page 20: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 20/42

Routed Ports on a Multilayer Switch

• Physical switch port with Layer 3 capability

• Not associated with a VLAN

• Requires removal of Layer 2 port functionality

Configure

•  ip routing

• interface fa0/1

 – no switchport

 – ip address 10.3.3.1 255.255.255.0

• router eigrp 50

 – network 10.0.0.0

Page 21: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 21/42

Configuring a Routed Port

Switch(config)#ip routing

Step 1 : Configure IP routing.

Switch(config)#router ip_routing_protocol <options>  

Step 4 : Configure the IP routing protocol if needed.

Switch(config-if)#no switchport

Step 2 : Create a routed port.

Switch(config-if)#ip address ip-address mask  

Step 3 : Assign an IP address to the routed port.

Page 22: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 22/42

Summary

• SVI is a VLAN of switch ports represented by one interface tothe routing system.

• Specific commands are used to configure and verify routingon multilayer switch interfaces.

•The interface vlan command creates the SVI.

• A routed port has Layer 3 attributes.

• A routed port requires the removal of Layer 2 portfunctionality with the no switchport command.

• To receive dynamic updates, a routing protocol is required.

Page 23: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 23/42

Implementing Inter-VLAN Routing

Deploying CEF-Based Multilayer Switching

Page 24: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 24/42

Layer 3 Switch Processing

In Layer 3 switches, thecontrol path and data pathare relatively independent.

• The control path code,such as routing

protocols, runs on theroute processor.

• Data packets areforwarded by theswitching fabric.

Page 25: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 25/42

Layer 3 Switch Processing (Cont.)

Layer 3 switching can occur at two different locationson the switch. 

• Centralized switching: Switching decisions are made on theroute processor by a central forwarding table.

• Distributed switching: Switching decisions can be made on aport or line-card level.

Layer 3 switching takes place using one of these twomethods:

•Route caching: A Layer 3 route cache is built in hardware asthe switch sees traffic flow into the switch.

• Topology-based switching: Information from the routingtable is used to populate the route cache, regardlessof traffic.

Page 26: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 26/42

CEF-Based Multilayer Switches

• CEF caches routing information in the FIB tableand Layer 2 next-hop addresses in the adjacencytable.

Page 27: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 27/42

Multilayer Switch Packet Forwarding Process

• Some IP packets cannot beprocessed in hardware.

• If an IP packet cannot beprocessed in hardware, it isprocessed by the Layer 3engine.

Page 28: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 28/42

CEF-Based MLS Lookups

1. Layer 3 packets initiate TCAM lookup.

2. The longest match returns adjacency with rewrite information.

3. The packet is rewritten per adjacency information and forwarded.

Page 29: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 29/42

ARP Throttling

Page 30: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 30/42

CEF-Based MLS Operation

Page 31: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 31/42

Configuring and Verifying CEF

Configuring CEF

• ip cef (enabled by default)

• ip route-cache cef (only on VLAN interface)

Verifying CEF• show ip cef fa 0/1 detail

• show adjacency fa 0/1 detail

Page 32: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 32/42

Enabling CEF

Switch(config-if)#ip cef

Switch(config-if)#ip route-cache cef

The commands required to enable CEF are platformdependent:

• On the Cisco Catalyst 4000 switch

• On the Cisco Catalyst 3550 switch

Page 33: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 33/42

Verifying CEF

Switch#show ip cef [type mod /port | vlan_interface] [detail]

Switch# show ip cef vlan 11 detail 

IP CEF with switching (Table Version 11), flags=0x0

10 routes, 0 reresolve, 0 unresolved (0 old, 0 new), peak 0

13 leaves, 12 nodes, 14248 bytes, 14 inserts, 1 invalidations0 load sharing elements, 0 bytes, 0 references

universal per-destination load sharing algorithm, id 4B936A24

2(0) CEF resets, 0 revisions of existing leaves

Resolution Timer: Exponential (currently 1s, peak 1s)

0 in-place/0 aborted modifications

refcounts: 1061 leaf, 1052 node

Table epoch: 0 (13 entries at this epoch)

172.16.11.0/24, version 6, epoch 0, attached, connected 

0 packets, 0 bytes

via Vlan11, 0 dependencies

valid glean adjacency

Page 34: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 34/42

Common CEF Problems

• Is ideal switching method (CEF, DCEF) in use?

• Are CEF tables complete and accurate?

Page 35: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 35/42

Di l i H d L 3 S it hi

Page 36: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 36/42

Displaying Hardware Layer 3 SwitchingStatistics

Switch#show interfaces {{type mod/port} | {port-channelnumber }} include switched 

Switch#show interfaces gigabitethernet 9/5 | include switched  

L2 Switched: ucast: 8199 pkt, 1362060 bytes - mcast: 6980 pkt, 371952 bytes

L3 in Switched: ucast: 3045 pkt, 742761 bytes - mcast: 0 pkt, 0 bytes mcast

L3 out Switched: ucast: 2975 pkt, 693411 bytes - mcast: 0 pkt, 0 bytes

Page 37: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 37/42

Adjacency Information

Switch#show adjacency [{{type mod/port} |{port-channel number }} | detail | internal | summary]

Switch#show adjacency gigabitethernet 9/5 detail 

Protocol Interface Address

IP GigabitEthernet9/5 172.20.53.206(11)

504 packets, 6110 bytes

00605C865B82

000164F83FA50800

 ARP 03:49:31

Page 38: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 38/42

Debugging CEF Operations

Switch#debug ip cef {drops | access-list | receive |

events | prefix-ipc | table}

• Displays debug information for CEF

Switch#debug ip cef {ipc | interface-ipc}

• Displays debug information related to IPC in CEF

Switch#ping ip

• Performs an extended ping

Page 39: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 39/42

How to Troubleshoot CEF

Page 40: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 40/42

Summary

• Layer 3 switching is high-performance packet switchingin hardware.

• MLS functionality can be implemented through CEF.

• CEF uses tables in hardware to forward packets.

• Specific commands are used to enable and verifyCEF operations.

• Commands to enable CEF are platform dependent.

• CEF problems can be matched to specific solutions.

Specific commands are used to troubleshoot and solveCEF problems.

• Ordered steps assist in troubleshooting CEF-basedproblems.

Page 41: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 41/42

Module Summary

• An external router can be configured to route packetsbetween the VLANs on a Layer 2 switch.

• Multilayer switches allow routing and the configuration of interfaces to pass packets between VLANs.

CEF-based multilayer switching facilitates packet switchingin hardware.

Page 42: Bcmsn30s04 Intervlan Routing

7/27/2019 Bcmsn30s04 Intervlan Routing

http://slidepdf.com/reader/full/bcmsn30s04-intervlan-routing 42/42


Recommended