Switches, Hubs, and Modems
1748171 Members
4386 Online
108758 Solutions
New Discussion

5406zl:VLAN routing and gateway

 
SOLVED
Go to solution
pacmane
New Member

5406zl:VLAN routing and gateway

Hi,

I´m having some problems in configuring routing between VLAN and the office network.
I´ve created 2 VLAN, they can access to each other, but the is NO connection with the gateway in DAFAULT_VLAN (10.150.12.1)

vlan 65
ip address 10.150.12.65/28

vlan 177
ip address 10.150.12.177/28

ip routing
ip route 0.0.0.0 0.0.0.0 10.150.12.1

Is this configuration correct or i´m missing something

Thanks in advance
BR
5 REPLIES 5
Olaf Borowski
Respected Contributor
Solution

Re: 5406zl:VLAN routing and gateway

BR,

Is this the complete config? Where is:
vlan 1
ip address 10.150.12.1/28 (if that is the correct address?) If 10.150.12.1 is the address of your "router", the switch (5400) needs an address on that network (for example 10.150.12.2). From where are you trying to reach the 10.150.12.1? From the switch, you might have to specify which VLAN is the output vlan for that ping.

Olaf
pacmane
New Member

Re: 5406zl:VLAN routing and gateway

You are rigth, i forgot some important information

DEFAULT_VLAN(primary)
ip address 10.150.12.30/24

vlan 65
ip address 10.150.12.65/28

vlan 177
ip address 10.150.12.177/28

ip routing
ip route 0.0.0.0 0.0.0.0 10.150.12.1

The 10.150.12.1 IP is the gateway in the office router

Hope now is complete

Thanks
EckerA
Respected Contributor

Re: 5406zl:VLAN routing and gateway

hi,
you need routes on your gateway(10.150.12.1), cos the gateway doesn't know of vlan177 and 65..

hth

alex
pacmane
New Member

Re: 5406zl:VLAN routing and gateway

Thank you

I´ve told to IT and it appears to be the problem. I will ask to create the routes and tell if that works

BR
John Gelten
Regular Advisor

Re: 5406zl:VLAN routing and gateway

Furthermore, your gateway might not use those routes if you have added them, because the IP-addresses in your VLANs 65 and 177 are in fact a sub-set of the network in VLAN 1.
I assume that the gateway doesn't send anything for those smaller subnets to your switch, because it's destination IP-address is in a directly connected network of that gateway. Therefore: no need to look for a next-hop in its routing-table.

It might depend on the make of the router, but I think directly connected networks always take precedence over any other route in the routing-table, even if it is a more specific route.

Your solution (if my asumptions are correct): choose non-overlapping IP-ranges for your VLANs.