Switches, Hubs, and Modems
1753312 Members
5675 Online
108792 Solutions
New Discussion юеВ

Re: Routing to multinetted VLAN

 
SOLVED
Go to solution
Yan Henrichon
Frequent Advisor

Routing to multinetted VLAN

Hi.

Very simple question.
VLAN 1 -> 10.0.0.254
VLAN 2 -> 192.168.76.254 and 192.168.100.254.
IP Routing is enabled.

It surely possible to a device in VLAN 1 to communicate to a device in 192.168.100.0 scope in VLAN 2. How can I achieve this?

Thank you.
5 REPLIES 5
Jeff Carrell
Honored Contributor
Solution

Re: Routing to multinetted VLAN

as long as client in vlan 1 has a default gateway of 10.0.0.254 and the client in vlan 2 has a default gateway of 192.168.100.254, then they can communicate with each other...

this assumes the only router is this switch...

if the DHCP server is in vlan 1, and you need devices to get a DHCP address for either of the vlan 2 subnets, then in vlan 2 context add 'ip helper-address 10.0.0.x' and add the 2 scopes of vlan 2 subnets in the DHCP server...

hth...jeff
Yan Henrichon
Frequent Advisor

Re: Routing to multinetted VLAN

Jeff,

Here is the config of my switch. I can ping VLAN 1 IP Address and 192.168.76.254 but I can't ping 192.168.100.254. Can you tell why?

vlan 1
name "DEFAULT_VLAN"
untagged 13-28
ip address 10.0.0.254 255.255.0.0
no untagged 1-12
exit
vlan 20
name "VLAN20"
untagged 1-12
ip address 192.168.76.254 255.255.255.0
ip address 192.168.100.254 255.255.255.0
ip helper-address 10.0.0.10
ip forward-protocol udp 10.0.0.13 2024
exit
Patrick Terlisten
Honored Contributor

Re: Routing to multinetted VLAN

Hello,

you have to enable ip routing in the configuration context of the switch. Just type "ip routing" and press enter. Then make sure that the clients in the VLANs habe the ip interface of the switch as default gateway configured.

Regards,
Patrick
Best regards,
Patrick
Yan Henrichon
Frequent Advisor

Re: Routing to multinetted VLAN

Hi Patrick,

Has mentionned in the initial post, IP Routing is enable. From the switch, I can ping all three gateways.

Thx
Yan Henrichon
Frequent Advisor

Re: Routing to multinetted VLAN

Thank you