cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
397
Views
5
Helpful
4
Replies

Routing between VLANs question

majorthom
Level 1
Level 1

Hi! 

I have a 3560 with VLAN 1 on network 192.168.4.0/25 with a WAN gateway at 192.168.4.1 and a second VLAN 10 on the 40.0.0.0/25 network. I want to access hosts on the 40.0.0.0/25 network from hosts on the 192.168.4.0/24 network but how can I do that if the WAN is the gateway on 192.168.4.0/24 network since each host on 192.168.4.0/24 can only be assigned one gateway? What am I missing?

4 Replies 4

If your gateways are configured on 3560 switch, enable IP routing and switch will do the routing part. if your gateway configured in another device , you need to add routing on gateway device towards two networks.

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

routing or static route between the two three device solve issue 

Can't ping across the subnets. Here is how I configure the VLANs with some security settings, is something I'm doing here wrong?

conf t

 

int vlan 1

ip address 192.168.4.2 255.255.255.0

no ip proxy-arp

no ip unreachables

no ip redirects

no shut

exit

vlan 10

name test

mtu 9000

exit

 

int vlan 10

ip address 40.0.0.1 255.255.255.128

no ip proxy-arp

no ip unreachables

no ip redirects

no shut

exit

 

interface Gi0/10

switchport mode access

switchport access vlan 10

duplex auto

speed auto

exit

ip routing

end

I'll also add that port 10 on VLAN 10, is connected to another switch

cascade#show ip route

Gateway of last resort is not set

 

      40.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C        40.0.0.0/25 is directly connected, Vlan10

L        40.0.0.1/32 is directly connected, Vlan10

      192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks

C        192.168.4.0/24 is directly connected, Vlan1

L        192.168.4.2/32 is directly connected, Vlan1

Hello,

For the PCs that are in their respective VLANs can they ping their own gateway. 
Can PCs in VLAN 1 ping 192.168.4.2 and can PCs in VLAN 10 ping 40.0.0.1

Make sure each PCs gateway is the IP address of the VLAN you have them assigned to. 
So PCs in VLAN 1 will have a gateway of 192.168.4.2 not the WAN gateway at 192.168.4.1

Make the same configuration for VLAN 10 PCs with their gateway for the 40.0.0.1 address.

Then test connectivity. If the PC inside the VLAN can’t even ping their gateway then it will not be able to route out.

Hope that helps

-David

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: