View previous topic :: View next topic |
Author |
Message |
texx n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_amy.gif)
Joined: 14 Nov 2002 Posts: 67 Location: Vienna
|
Posted: Thu May 08, 2003 11:35 am Post subject: Howto switch from dhcp to static IP??? |
|
|
HI
How can i switch from the dhcp configued ethernet to an static configured ethernet??
Thx Matthias |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Supermule Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Mr_Burns.jpg)
Joined: 05 Mar 2003 Posts: 510 Location: /denmark/fyn
|
Posted: Thu May 08, 2003 11:53 am Post subject: Re: Howto switch from dhcp to static IP??? |
|
|
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
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 |
|
![](templates/gentoo/images/spacer.gif) |
nephros Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/145383245043ee5edfbdaa3.png)
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Thu May 08, 2003 11:58 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|