2 nic 2 gateways

view story

http://serverfault.com – I have a question. I have a ubuntu server(GW0). It has 2 interfaces. eth0: - connected to router eth1: - connected to switch eth0:, gw: eth1:, gw: ( server placed in my network it has internet access) I want to use this server(GW0) as my gateway for my network to access 10.20.x.x subnets via router and internet access from What i did. echo 1 > /proc/sys/net/ipv4/ip_forward route add default gw if i do like this internet works fine (HowTos)