Hi all,
I am having a bit of a problem with some routing topology on a Layer 3 switch.
VLAN1 192.168.2.254/24 default gateway 192.168.2.1
VLAN10 172.16.1.254/24
Rules on switch allows routing from VLAN1 to VLAN10
On VLAN resides another gateway 172.16.1.1 connected to an upstream firewall and hosts on this VLAN has 172.16.1.1 as default gateway.
What I would like to have is that packages with source 192.168.2.0/24 should access hosts on VLAN10 via 172.16.1.254 while hosts on VLAN10 should use 172.16.1.1 as default gateway. (If I configure 172.16.1.254 as default gateway for all hosts on VLAN10 it of course works but hosts on VLAN10 must use the upstream firewall as default gateway)
Does anybody have an idea to how I can configure this?
I guess this will require iptables.
I am having a bit of a problem with some routing topology on a Layer 3 switch.
VLAN1 192.168.2.254/24 default gateway 192.168.2.1
VLAN10 172.16.1.254/24
Rules on switch allows routing from VLAN1 to VLAN10
On VLAN resides another gateway 172.16.1.1 connected to an upstream firewall and hosts on this VLAN has 172.16.1.1 as default gateway.
What I would like to have is that packages with source 192.168.2.0/24 should access hosts on VLAN10 via 172.16.1.254 while hosts on VLAN10 should use 172.16.1.1 as default gateway. (If I configure 172.16.1.254 as default gateway for all hosts on VLAN10 it of course works but hosts on VLAN10 must use the upstream firewall as default gateway)
Does anybody have an idea to how I can configure this?
I guess this will require iptables.