cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1041
Views
15
Helpful
14
Replies

route same vlan over l3 switches.

Manish Manwal
Level 1
Level 1

is it possible to route a vlan between l3 switches.??

like, see attached file.

THANKS
MANISH MANWAL
14 Replies 14

mlund
Level 7
Level 7

Hi

Because it is switches and not routers, it will be possible.

Move the ip addresses from the link to a vlan interface.

Make the links between switches as switchport trunk.

Allow vlan 20 and the newly configured vlan on the trunk.

/Mikael

 

we have enable ip routing.
then static route for all network.
but the network 10.10.64.0/22 that network reside in every network.
my question is how we route 10.10.64.0/22 of all switches. vlan 20. because vlan 20 have same gatway.
THANKS
MANISH MANWAL

Hi

It may be possible if you can do some sort of tunnel config, ( can't come up how to do it just now)

Or you can config evry switch with the same gateway address and then do hostrouting to all other pc:s on the other switches ( not a nice solution )

Or do it as my previous solution, where you have streched vla 20 to all switches, and do routing between the other vlan as you already do.

/Mikael

how i streched vlan 20 to all switches.?
THANKS
MANISH MANWAL

You can do something like that,

 

Each switch interconnect port

 

switchport mode trunk
switchport trunk allowed vlan 20


router ospf 1
network 10.10.64.0 0.0.3.255 area0
redistribute connected subnets

 

SW1
interface vlan20
ip address 1010.64.1 255.255.252.0

 

Sw2
interface vlan20
ip address 1010.64.2 255.255.252.0

 

Sw3
interface vlan20
ip address 1010.64.3 255.255.252.0

 

 

THANKS MR Jose Lopez .
ONE MORE QUERY SIR. IF WE CONFIGURE 64.1,54.2, 64.3. IP IN DIFFERENT SWITCH , WE ALSO HAVE TO CHANGE GATWAY OF EVERY MACHINE THAT ARE RELATED TO 64.0 NETWORK.?
THANKS
MANISH MANWAL

You can use same gw choosing best switch location or configure different gw.

if i choose only one gatway, how i route them?
THANKS
MANISH MANWAL

OSPF announce routes thru vlan 20.

You need SVI to networks 10.10.28.0/22 10.10.32.0/22 and 10.10.36.0/22.

Example:

Sw1

interface vlan28

ip address 10.10.28.0 255.255.252.0

Sw2

interface vlan32

ip address 10.10.32.0 255.255.252.0

Sw3

interface vlan36

ip address 10.10.36.0 255.255.252.0

yes we do. but how to route 10.10.64.0 network over all switches. that is vlan.
10.10.28.0. 10.10.32.0 10.10.36.0. all have one vlan connected that is 10.10.64.0.
THANKS
MANISH MANWAL

assuming your current setup is something like this
switch0: interface vlan 28 ip address 10.10.28.1
switch0: interface fa0/4 no switchport ip address 192.168.0.1
|
connection to switch1:
|
switch1: interface fa0/3 no switchport ip address 192.168.0.2
switch1: interface vlan 32 ip address 10.10.32.1
switch1: interface fa0/4 no switchport ip address 172.16.16.1
|
connection to switch2:
|
switch2: interface fa0/4 no switchport ip address 172.16.16.2
switch2: interface vlan 36 ip address 10.10.36.1

all switches have static routing.

 

now, if you want to implement vlan 20 ip address 10.10.64.0/22 on all switches, you have to do this

switch0: vlan 20 ( create a new vlan)
switch0: vlan 101 ( create a new vlan used for routing between sw0-sw1)
switch0: interface fa0/4 no ip address
switch0: interface fa0/4 switchport (changes the interface to mode switchport)
switch0: interface fa0/4 switchport mode trunk, switchport trunk all vlan 20,101
switch0: interface vlan20 ip address 10.10.64.1
switch0: interface vlan101 ip address 192.168.0.1
|
connection to switch1:
|
switch1: vlan 20
switch1: vlan101
switch1: interface fa0/3 no ip address
switch1: interface fa0/3 switchport (changes the interface to mode switchport)
switch1: interface fa0/3 switchport mode trunk, switchport trunk all vlan 20,101
switch1: interface vlan101 ip address 192.168.0.2
switch1: vlan112 ( create a new vlan used for routing between sw1-sw2)
switch1: interface fa0/4 no ip address
switch1: interface fa0/4 switchport (changes the interface to mode switchport)
switch1: interface fa0/4 switchport mode trunk, switchport trunk all vlan 20,112
switch1: interface vlan112 ip address 172.16.16.1
|
connection to switch2:
|
switch2: vlan 20
switch2: vlan112
switch2: interface fa0/4 no ip address
switch2: interface fa0/4 switchport (changes the interface to mode switchport)
switch2: interface fa0/4 switchport mode trunk, switchport trunk all vlan 20,112
switch1: interface vlan112 ip address 172.16.16.2

 

now pc:s in vlan 20 will have defaultgateway to 10.10.64.1
a pc in vlan 20 on switch2 sending packet to for example 10.10.36.3 the packet will flow throgh
vlan 20 over the trunk to switch1 and then over the trunk to switch0, it will there be routed
according to the routingtable (static routing) to switch1 192.168.0.2 that will forward it
towards switch2 172.16.16.2.
return traffic will flow the opposit direction.

if you want to optimize the flow you can configure a interface vlan 20 also on switch1 and switch2
with ip address 10.10.64.2 and 3. with this config, return traffic from previous example will be
routed locally.
If you then changes the defaultgateway for pc on switch2 to be 10.10.64.3 and pc on switch1 to be
10.10.64.2 then traffic between pc in different vlan will be locally routed.

/Mikael

sir, i dont want to use trunk port over l3 port. just give me solution that we can route same subnet over all network.
THANKS
MANISH MANWAL

then I don't have any solution, maybe someone else on the forum have any idea.

/Mikael

ok thanks .
THANKS
MANISH MANWAL
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card