OK, the line in /etc/sysconfig/static-routes is... eth0 net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.10
so whenever eth0 is brought up either from a reboot or from "service network restart" the route will be added. Again this is on the smoothwall box. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Larry Brown Sent: Friday, February 28, 2003 2:35 PM To: [EMAIL PROTECTED] Subject: RE: Connecting two networks through a RedHat box I'm glad it helped. Put the ip_forward entry into your rc.local and it will turn forwarding on when you reboot. Also, I was doing a little research on the route entries like the static route we added to your firewall... route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.10 It turns out that that is not persistent. When you reboot that box it will remove the entry. There are two ways of making it persistent. The first is to add the entire line to its rc.local. The second is to create an /etc/sysconfig/static-routes which is the better choice. However, in the static routes the format is different. It is run by the script if-up which is parsed when bringing up a network card. I'm checking on the exact syntax now... Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rune Berge Sent: Friday, February 28, 2003 1:44 PM To: [EMAIL PROTECTED] Subject: RE: Connecting two networks through a RedHat box On Thu, 27 Feb 2003, Larry Brown wrote: > Oh, I see the redhat box does not have a default gw. You need to edit > /etc/sysconfig/network on the redhat box and make sure you have: > > GATEWAY=192.168.0.1 > > And then do a: > > service network restart /etc/sysconfig/network did contain "GATEWAY=192.168.0.1", but when I ran a service network restart it worked again, so I guess the gateway setting had been altered for some reason. Output from service network restart on the redhat box: Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Disabling IPv4 packet forwarding: [ OK ] Setting network parameters: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] For some reason it disabled ip forwarding. I enabled it again but it would be nice to make the setting permanent. Also, it doesn't seem like it restarted eth1. Does that mean that eth1 won't be brought up automatically if I reboot the redhat box? Anyway. It finally works prefectly, so thanks a lot for the help! I've learned quite a bit about linux and routing from this. :D Rune -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list