Bluehost.com Web Hosting $6.95

static gateway configuration file

This is a discussion on static gateway configuration file within the Linux Networking forums, part of the Linux Forums category; Hi, Is there a configuration that sets the default gateway? It should probably be in "/etc/sysconfig/networking/" ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-05-2003
Saul
 
Posts: n/a
Default static gateway configuration file

Hi,

Is there a configuration that sets the default gateway?
It should probably be in "/etc/sysconfig/networking/"


Thanks,
Saul
Reply With Quote
  #2 (permalink)  
Old 11-05-2003
Dmitry Frantskevich
 
Posts: n/a
Default Re: static gateway configuration file

type:
route add default gw xxx.xxx.xxx.xxx

edit:
/etc/sysconfig/network

Saul wrote:

> Hi,
>
> Is there a configuration that sets the default gateway?
> It should probably be in "/etc/sysconfig/networking/"
>
>
> Thanks,
> Saul


--
Dmitry Frantskevich
F.D.V.

Reply With Quote
  #3 (permalink)  
Old 11-05-2003
Bit Twister
 
Posts: n/a
Default Re: static gateway configuration file

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

Reply With Quote
  #4 (permalink)  
Old 11-09-2003
Saul
 
Posts: n/a
Default Re: static gateway configuration file

Bit Twister <BitTwister@localhost.localdomain> wrote in message
[snip]
> 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



Thanks, that was the file I was looking for.
I'm using RedHat 9.0. Next time I'll be more specific with my question.


Saul
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0