Networking Forums

Networking Forums > Computer Networking > Linux Networking > cannot set the default route in a rh9 box

Reply
Thread Tools Display Modes

cannot set the default route in a rh9 box

 
 
Monroe_Buffalo
Guest
Posts: n/a

 
      11-05-2005, 02:22 PM
I am setting up a firewall with Shorewall, and routing with static
routes, and when I set the default route, it doesn't save. my box has
three nics Eth0,1,2 I want the default route to point to 0 but it keeps
pointing back to 2.

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      11-05-2005, 02:28 PM
On 5 Nov 2005 07:22:00 -0800, Monroe_Buffalo wrote:
> I am setting up a firewall with Shorewall, and routing with static
> routes, and when I set the default route, it doesn't save. my box has
> three nics Eth0,1,2 I want the default route to point to 0 but it keeps
> pointing back to 2.


Have not done rh in awhile. /etc/sysconfig/network used to have the
default gateway device.

cat /etc/sysconfig/network
HOSTNAME=wb.home.invalid
NETWORKING=yes
NETWORKING_IPV6=no
GATEWAYDEV=eth0 <============
GATEWAY=192.168.2.1

What you might do is
cd /etc/sysconfig/network-scripts/
grep GATEWAYDEV eth*
to if directive has moved into a nic config file.

Do post a followup as to where it was set.
Add SOLUTION to the subject line for the benifit of others using a
search engine.
 
Reply With Quote
 
Monroe_Buffalo
Guest
Posts: n/a

 
      11-11-2005, 06:43 PM
this didn't work for me, but I fixed it by adding a script to rc.local
that deletes the default route and adds the one that I want.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
default route ignored when ppp0 up Don Linux Networking 10 05-01-2012 03:49 PM
RH9 default route Fabio C. Linux Networking 2 04-14-2004 12:07 PM
Redundancy with second default route David Linux Networking 1 10-13-2003 05:20 PM
dhcp default route JA Linux Networking 1 09-13-2003 03:13 AM
Default route - help... Adam Linux Networking 1 07-08-2003 01:23 PM



1 2 3 4 5 6 7 8 9 10 11