10-20-2022 09:04 PM
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?
10-20-2022 10:14 PM
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.
10-21-2022 02:01 AM
routing or static route between the two three device solve issue
10-21-2022 02:21 AM - edited 10-21-2022 02:39 AM
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
10-21-2022 04:07 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide