Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I go 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
Gav
n00b
n00b


Joined: 10 Oct 2002
Posts: 65
Location: Surrey, UK

PostPosted: Mon Nov 04, 2002 10:29 pm    Post subject: How do I go from DHCP to static IP? Reply with quote

I've tried a few things I found through searching, but it always reverts back to DHCP at reboot...

The story is that I setup my new gentoo 'personal server', alongside my old RH one which had a static IP (192.168.1.2), and used DHCP as it was easier for install. I now want to assign it to the static IP. The gateway and DHCP server (NAT router) is 192.168.1.1.

I can get the IP changed to 192.168.1.2, but it reverts on a reboot, so what files do I need to edit???
Back to top
View user's profile Send private message
r101
n00b
n00b


Joined: 14 Sep 2002
Posts: 27

PostPosted: Mon Nov 04, 2002 11:11 pm    Post subject: Reply with quote

I think the file you want is /etc/conf.d/net.

Just change the iface_eth0 and gatway setting.
Back to top
View user's profile Send private message
Gav
n00b
n00b


Joined: 10 Oct 2002
Posts: 65
Location: Surrey, UK

PostPosted: Mon Nov 04, 2002 11:20 pm    Post subject: Reply with quote

Thanks, that worked!

Tomorrow I have some other problems to sort out (maildirs, kde)
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