LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2016, 08:29 PM   #1
hahacc
Member
 
Registered: Oct 2010
Posts: 93

Rep: Reputation: 1
Question why two vlans on same switch need no routing


Hi Folks,
Today I saw one comment below:

Code:
 vlan 124 and vlan 126 are on same distro switch and need no routing, those are self connected interface on z2-rtr-1/2.
So it meant if two vlans are on the same switch, then no routing is needed for communication between them. I'm not sure how this works, is there any commands on cisco routers/switches that control this behavior?

Thanks in advance!

Last edited by hahacc; 01-07-2016 at 09:26 PM.
 
Old 01-07-2016, 11:34 PM   #2
Elizine
Member
 
Registered: Aug 2015
Posts: 54
Blog Entries: 1

Rep: Reputation: Disabled
You can use Policy Based Routing which CAN forcefully send all the traffic coming reaching the vlan interfaces.

Eg:

10.170.10.10 is the Gateway ip

---------------------------------------------------------------------------------------

Quote:
access-list 100 permit ip 192.168.1.0 0.0.0.255 any

access-list 110 permit ip 172.16.1.0 0.0.0.255 any

route-map vlan500 permit 10

match ip address 100

set ip next-hop 10.170.10.10

route-map vlan600 permit 10

match ip address 110

set ip next-hop 10.170.10.10

int vlan 500

ip address 192.168.1.1 255.255.255.0

ip policy route-map vlan500

int vlan 600

ip address 172.16.1.1 255.255.255.0

ip policy route-map vlan600
---------------------------------------------------------------------------------------
 
Old 01-08-2016, 02:50 PM   #3
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
In general, traffic between two VLAN interfaces need a route. But some product support bridge, it forward packet based on MAC address only, no VLAN. In this case, no route is requested.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with routing to firewall only from vlans onlybrybry Linux - Networking 2 09-24-2012 10:42 AM
CentOS VLANs and Cisco Catalyst switch (router on stick problem) Grejeru Linux - Networking 4 07-28-2011 02:08 PM
Vlans with ClearOS adn Cisco 3560G Layer 3 Switch hladamjr Linux - Networking 0 11-08-2010 09:11 AM
Can We Coexist 2 VLANS on one Unmanageable Switch?? kool_kid Linux - Networking 2 09-15-2008 06:19 AM
A quick question about VLANs and routing djuro-san Linux - Networking 1 09-01-2008 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration