Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto switch from dhcp to static IP???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
texx
n00b
n00b


Joined: 14 Nov 2002
Posts: 67
Location: Vienna

PostPosted: Thu May 08, 2003 11:35 am    Post subject: Howto switch from dhcp to static IP??? Reply with quote

HI

How can i switch from the dhcp configued ethernet to an static configured ethernet??

Thx Matthias
Back to top
View user's profile Send private message
Supermule
Guru
Guru


Joined: 05 Mar 2003
Posts: 510
Location: /denmark/fyn

PostPosted: Thu May 08, 2003 11:53 am    Post subject: Re: Howto switch from dhcp to static IP??? Reply with quote

texx wrote:
HI

How can i switch from the dhcp configued ethernet to an static configured ethernet??

Thx Matthias


Try this:

First you would edit /etc/conf.d/net and comment out the line that says
Code:
iface_eth0="dhcp"

Then uncomment the for iface_eth0 that says something about broadcast and netmask...Example:
Code:
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"


Hope it helps...
_________________
regards,
Supermule
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Thu May 08, 2003 11:58 am    Post subject: Reply with quote

look in /etc/conf.d/net
the format in the provided net file is pretty self-explanatory.
also check /etc/init.d/net.* where the scripts look for their configuration.

(usually all NICs are configured in /etc/conf.d/net and /etc/init.d/net.ethX calls that file, plus ppp links are configured in /etc/conf.d/net.pppX, and called from the /etc/init.d/net.pppX script)

hope that helped,
the neph

EDIT oh my. I was too slow. ;)
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum