Networking Forums

Networking Forums > Computer Networking > Linux Networking > static gateway configuration file

Reply
Thread Tools Display Modes

static gateway configuration file

 
 
Saul
Guest
Posts: n/a

 
      11-05-2003, 11:19 AM
Hi,

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


Thanks,
Saul
 
Reply With Quote
 
 
 
 
Dmitry Frantskevich
Guest
Posts: n/a

 
      11-05-2003, 11:52 AM
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
 
Bit Twister
Guest
Posts: n/a

 
      11-05-2003, 01:42 PM
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
 
Saul
Guest
Posts: n/a

 
      11-09-2003, 11:30 AM
Bit Twister <(E-Mail Removed)> 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
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
static mac entry for gateway ip? eko007 Windows Networking 3 03-22-2008 02:41 PM
Static gateway address changes on reboot MMJII Windows Networking 3 01-08-2007 07:08 PM
DLink DSL-G604T NAT+Static configuration Habu Broadband 7 08-31-2004 02:57 AM
Static route configuration in RRAS, help? r042wal Windows Networking 1 02-18-2004 12:13 PM
Windows98 Gateway will not accept static gateway Steve Windows Networking 2 09-21-2003 05:45 AM



1 2 3 4 5 6 7 8 9 10 11