LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-17-2006, 01:13 AM   #1
ofer_r
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
What file to configure for default gateway


Hello,

I need to connect a telecom rack with Linux machines to the customer's network. The linux machine has two network interfaces, one which is secured and used only for the internal network of our system and one used as Admin for outside connection.
I now there are two possibilities to configure a default gateway for connection to an outer network:

1) in /etc/sysconfig/network
2) in /etc/sysconfig/network-scripts/ifcfg-eth2.

Which is preferable?
 
Old 04-17-2006, 01:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the first file would be for system wide routing, the second for nic specific ones, so it'd live in the first file e.g. "GATEWAY=1.2.3.4"
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default gateway dooda5555 Linux - Networking 1 06-17-2005 11:43 AM
need help creating default grub configure file. dr_zayus69 Linux - Software 6 02-28-2005 08:09 AM
HELP default gateway MrSavage Linux - Newbie 2 01-10-2005 07:46 AM
Mandrake 8.2 Startup File? and Changing the Default Gateway N4N01D Mandriva 0 08-04-2004 08:12 AM
I need the default RH 9 .configure file bad. Pcghost Linux - General 4 07-01-2003 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration