1

2 nic 2 gateways

view story
linux-howto

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