I have a Dell switch s4128f-on which I'm using as L3 core switch. What I want to achieve is creating multiple vlans and being able to reach other networks through an uplink.
What I've done so far is:
- created vlan10 (for local servers), 10.10.51.1/24 on the switch
- created uplink vlan172 for external, 172.16.0.2/24
The uplink will be connected to another server which has access to other external networks and NAT rules configured to forward traffic from 172.16.0.0/24 to external interfaces.
On the switch I configured a static route: ip route 0.0.0.0/0 172.16.0.1, so that all my unresolved traffic will go through the uplink and reach external networks.
When I configure a machine in the vlan172 (switch port in access mode) with ip 172.16.0.3 and gateway 172.16.0.1, I'm able to ping servers in vlan10, ping 172.16.0.1, ping 172.16.0.2 as well reach external networks through the uplink.
When connected to the switch's serial console, I can also reach external networks and ping 22.214.171.124.
The problem is when I configure a machine in vlan10 with gateway 10.10.51.1, I can ping servers on vlan172 but can't reach external network through uplink. I tried adding a static route to link the two vlans but I get the error Network unreachable. Please help.