Ethernet Switches & Routers

Brocade FastIron - Routing Inter-VLANs

by gfcm on ‎04-21-2013 12:15 AM (6,175 Views)

Background information

Since the Switch is layer 2 device, it cannot forward frames between VLAN, to allow communication  between VLANs you need a Layer 3 device as described on the following diagram. So to allow Inter VLAN routing, a router is used to forward frames between VLANs.

 

Equipment used

  • FastIron FCX that runs FCXR07100a.bin (Router)
  • FastIron FCX that runs FCXS07100a.bin (Switch)

 

Network Diagram

Routing_Inter-VLANs.png

 

Configuration

  • Router (inter-VLAN)

!

vlan 10 name user_vlan10 by port

  tagged ethe 1/1/10
  router-interface ve 10
!

vlan 20 name user_vlan20 by port

  tagged ethe 1/1/10
  router-interface ve 20
!

vlan 30 name user_vlan30 by port
  tagged ethe 1/1/10
  router-interface ve 30
!

ip route 0.0.0.0 0.0.0.0 172.27.10.1

!

interface ethernet 1/1/20

  ip address 172.27.10.2 255.255.255.0

!
interface ve 10
  ip address 192.168.10.1 255.255.255.0

!
interface ve 20
  ip address 192.168.20.1 255.255.255.0

!
interface ve 30
  ip address 192.168.30.1 255.255.255.0 
!

 

  • Switch

!
vlan 10 name user_vlan10 by port
  tagged ethe 1/1/10
  untagged ethe 1/1/1
!
vlan 20 name user_vlan20 by port
  tagged ethe 1/1/10
  untagged ethe 1/1/2
!
vlan 30 name user_vlan30 by port
  tagged ethe 1/1/10
  untagged ethe 1/1/3
!

 

Verify

As soon as you create the router-interfaces and apply an IP address on it, a new route will be added to your routing table as you can see below.

 

FastIron# show ip route
Total number of IP routes: 5 avail: 11997 (out of max 12000)
B:BGP D:Connected R:RIP SSmiley Frustratedtatic OSmiley SurprisedSPF *:Candidate default
  Destination    NetMask          Gateway       Port       Cost  Type
  0.0.0.0        0.0.0.0          172.27.10.1   1/1/20     1     S

1 172.27.10.0    255.255.255.252  172.27.10.1   1/1/20     1     D

2 192.168.10.0   255.255.255.0    0.0.0.0       v10        1     D
3 192.168.20.0   255.255.255.0    0.0.0.0       v20        1     D

4 192.168.30.0   255.255.255.0    0.0.0.0       v30        1     D

 

!! Important !! Please make sure that the device connected to the Internet has a route to each of your internal subnet.

Comments
by freyes@net-brains.com
on ‎07-29-2014 03:19 PM

Hola

No se ve el dibujo, podrian checarlo por favor