LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-27-2007, 05:01 AM   #1
teddyZA
LQ Newbie
 
Registered: Apr 2007
Distribution: Xubuntu 7.04 , openSuSe 10.2 ,Mandriva 2006
Posts: 15

Rep: Reputation: 0
New network Setup


I am setting up a new nix box and would like to have the following configuration.

IP address: 192.168.0.5
Netmask: 255.255.255.0
Server name: mailserver.abc.co.za
Gateway : 192.168.0.1

I need to know which files i should edit to achieve this, I know there are 4 files to edit but have forgotten the names of them that a friend gave to me.
 
Old 07-27-2007, 09:09 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
This would be distribution specific, as each distro does things a little differently and often use their own programs for configuration network connectivity. For example, under Slackware you would configure the IPs under /etc/rc.d/rc.inet1 or set it up with "netconfig", but under a different distribution it would be a completely different situation.

The only thing you can really be sure of is that the DNS servers will be configured in /etc/resolv.conf and hostname will be in /etc/hostname. Beyond that, the only way to get it working in any distribution is to place the commands themselves in the rc.local (or similar) boot script, like:

Code:
ifconfig eth0 192.168.0.5 255.255.255.0 up
route add default gw 192.168.0.1
 
  


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
Manual Network Setup Works, /etc/network/interfaces doesn't verdeboy2k Linux - Wireless Networking 0 05-31-2006 06:56 PM
Can't setup network with rtl8150 usb network adapter IvanJ Linux - Networking 1 12-27-2005 12:16 AM
Home network setup with network firewall/router Gates1026 Linux - Networking 4 01-17-2005 08:26 PM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM
network setup TripleHex Linux - Networking 0 08-27-2002 02:38 PM

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

All times are GMT -5. The time now is 04:56 PM.

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