Re: static gateway configuration file

From: Bit Twister (BitTwister_at_localhost.localdomain)
Date: 11/05/03


Date: Wed, 05 Nov 2003 14:42:40 GMT

On 5 Nov 2003 04:19:01 -0800, Saul wrote:
> Hi,
>
> Is there a configuration that sets the default gateway?

Yes.

> It should probably be in "/etc/sysconfig/networking/"

Not in my distribution.

Please read
http://www.catb.org/~esr/faqs/smart-questions.html

It always helps if you provide some basic system information and what
you are having problems with when you post questions to the
news groups.

That info helps us to provide better examples/responses.

There are several "linuxes": Red Hat, Slackware, SuSE, Debian, Mandrake,
Caldera, Corel, Yellow Lab, Black Lab, WinLinux, PhatLinux, Linux On A
Floppy, slinux, Trinux, Peanut and
(Rock, Armed, Stampede, Tiny. Power, Coyote) Linux, to name a few.

Always provide what distro and release level you are using
when you post questions (Redhat 6.1, Suse 5.0, Mandrake 8.2,...).

Different distros have different commands, files, and links to files,
pacakges and package/software managers.
Even happens between release levels of the same distribution.

Internet connection problem (ISP, cable, adsl, PPPoE, LAN, dialup, eth0. USB..)

If dhcp, which client (pump, dhcpcd, dhclient,...)

Firewall (Bastille, Tiny, Smoothwall ..) , which type ipchains, iptables,...

Window manger, application problem/question give the name
(gnome, kde, sawmill, kscd, kmix, eroaster, ...) Different
window managers can have different programs.

Give us error messages if you have them.
Look in your logs, /var/log/messages on Redhat and Mandrake.

If it is a shell/script question, give the shell name (bash, tch, zch,...)

Example: Using RH 7.3, kde, dhcpcd though a cable modem on RR in Fortworth Tx.
         ipchains Tinyfirewall is disabled. Still cannot get a lease.

Redhat and Mandrake have the gateway in /etc/sysconfig/network. Example

cat /etc/sysconfig/network
HOSTNAME=wb.home
NETWORKING=yes
GATEWAY=192.168.1.1



Relevant Pages

  • Re: new to linux
    ... if there were one distribution (that's what they're called ... is actually a good reason why there are over 350 currently active Linux ... can't get RedHat anymore without paying a bunch for it. ... Mandrake no longer exists - it is ...
    (alt.os.linux)
  • Re: TellyGuide - Free UK TV on your PDA
    ... > implying a particular RH distribution. ... Mandrake or SuSe aren't any less significant than Redhat. ... personal opinion, just as much when I say Mandrake has better ...
    (microsoft.public.pocketpc)
  • Re: SSH 3.0.2 wont install
    ... >> I am running Mandrake 7.2 as a firewall. ... I need to install ssh on this ... > Mandrake distribution numbering has little to do with RedHat distribution: ... a year or so behind RedHat and considerably more conservative ...
    (comp.security.ssh)
  • Re: file for routing changes
    ... Tauno Voipio wrote: ... >> I'm not trying to change my DEFAULT gateway, ... > This depends on the distribution you're using. ... I'm using Redhat 2.4.20-24.9 ...
    (comp.os.linux.networking)
  • [GRUB / LILO]how to use 2 distributions in parallel
    ... Mandrake (my current distribution) and Fedora Core 3 (FC3 my second ... - with this configuration when booting from MBR through LILO I can access FC3 ...
    (Fedora)

Loading