My current route for a box shows this: route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 24.123.23.168 0.0.0.0 255.255.255.248 U 0 0 0 eth2 74.223.8.176 0.0.0.0 255.255.255.240 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 24.123.23.169 0.0.0.0 UG 0 0 0 eth2 How do I setup the 74.223.8.176 route so on boot the gateway will automatically be set to 74.223.8.177 Thanks, Jerry
2010/5/14 Jerry Geis <geisj at pagestation.com>:> My current route for a box shows this: > > ?route -n > Kernel IP routing table > Destination ? ? Gateway ? ? ? ? Genmask ? ? ? ? Flags Metric Ref ? ?Use > Iface > 24.123.23.168 ? 0.0.0.0 ? ? ? ? 255.255.255.248 U ? ? 0 ? ? ?0 ? ? ? ?0 eth2 > 74.223.8.176 ? ?0.0.0.0 ? ? ? ? 255.255.255.240 U ? ? 0 ? ? ?0 ? ? ? ?0 eth1 > 192.168.1.0 ? ? 0.0.0.0 ? ? ? ? 255.255.255.0 ? U ? ? 0 ? ? ?0 ? ? ? ?0 eth0 > 169.254.0.0 ? ? 0.0.0.0 ? ? ? ? 255.255.0.0 ? ? U ? ? 0 ? ? ?0 ? ? ? ?0 eth2 > 0.0.0.0 ? ? ? ? 24.123.23.169 ? 0.0.0.0 ? ? ? ? UG ? ?0 ? ? ?0 ? ? ? ?0 eth2 > > How do I setup the 74.223.8.176 route so on boot the gateway will > automatically be > set to 74.223.8.177GATEWAY=74.223.8.177 on /etc/sysconfig/network file ? -- Eero
> > GATEWAY=74.223.8.177 on /etc/sysconfig/network file ? >Actually I have that in the ifcfg-eth1 and ifcfg-eth2. And this is hte route I get. DEVICE=eth1 ONBOOT=YES BOOTPROTO=static IPADDR=74.223.8.179 NETMASK=255.255.255.240 GATEWAY=74.223.8.177 DEVICE=eth2 ONBOOT=Yes BOOTPROTO=static IPADDR=24.123.23.170 NETMASK=255.255.255.248 GATEWAY=24.123.23.169 route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 24.123.23.168 0.0.0.0 255.255.255.248 U 0 0 0 eth2 74.223.8.176 0.0.0.0 255.255.255.240 U 0 0 0 eth1 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2 0.0.0.0 24.123.23.169 0.0.0.0 UG 0 0 0 eth2 I dont want 74.X traffic going out 24.X network. I want it going back out the 74.X network. How do I setup the ifcfg-eth files so the GW above will route back out the correct gw? Jerry
That's funny. We *just* went over this in a thread with the subject "not firewall, but what?". I even posted an example shorewall configuration that does what you're trying to do. You should either use shorewall, or if you're more familiar with Linux's "ip" command, set up the route-eth1 and route-eth2 and the rules-eth1 and rules-eth2 configuration files.