LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2003, 02:22 PM   #1
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Rep: Reputation: 15
setting up ip adresse manually


Hi everyone
I never hab problems with my network and i think this question is easy to answer. As long as i used debian (until yesterday) There was a setup program for ip adress gateway and so on. Today i installed gentoo. I completed the setup and there i made my network configuration by the program that was on the cd. but that is not installed on my partition. So I wanted to configure manually. I think i have to write the configuration in /etc/resolve.conf but i am not sure. I had tried it, but the problem is that i dont know what to write befor my ip adresse , the gateway broadcast and so on.
I remind that it stated with somrthing like
auto eth0 static dhcp

thanx
chewy
 
Old 07-06-2003, 02:50 PM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
ok /etc/resolv.conf is for listing name servers, use for resolving host names. it is not used to set you ip address. if you want your ip to be set each time for when you boot up, you can edit the appropriate ifcfg-ethX file located in /etc/sysconfig/network-scripts

here is an example, this is my ifcfg-eth0:

Code:

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.200
NETMASK=255.255.255.0
ONBOOT=yes



make sure you have an understanding of what each file does before you just start adding stuff to them.
 
Old 07-06-2003, 02:58 PM   #3
snu
Member
 
Registered: May 2003
Location: NRW
Distribution: FreeBSD
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks.
And where to put the gateway?
 
Old 07-06-2003, 03:14 PM   #4
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
type in the command :

#route add default 192.168.1.1

but exchange 192.168.1.1 for you gateway ip address, this will set your
default route to the address of you gateway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RH* to Fedora Manually nitin403 Fedora 2 02-27-2005 02:58 AM
manually setting up my client box (linux) mrmikexx Mandriva 0 02-11-2004 04:30 AM
More IP adresse on 1 NIC iloncare Linux - Networking 0 01-14-2004 08:12 AM
setting net manually softcore26 Linux - Software 1 07-11-2003 08:02 PM
OpenBSD, setting the IP manually Robert0380 Linux - Networking 2 11-05-2002 09:13 PM

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

All times are GMT -5. The time now is 04:01 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