Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto get fixed address but dhcp for other info?
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
Karl_R
Tux's lil' helper
Tux's lil' helper


Joined: 21 Mar 2004
Posts: 118
Location: Sydney

PostPosted: Tue Sep 21, 2010 9:38 pm    Post subject: howto get fixed address but dhcp for other info? Reply with quote

Hi,
I need to assign a fixed address to my wired (eth0) network card in order for my router to forward ports to my laptop.

However I would like eth0 to get dhcp support for setting up all the other stuff like setting up my resolv.conf etc.
does anyone know the magic syntax that will do that in /etc/conf.d/net?

Cheers

Karl
Back to top
View user's profile Send private message
vivaceious
n00b
n00b


Joined: 08 Sep 2010
Posts: 31
Location: San Francisco, USA

PostPosted: Tue Sep 21, 2010 10:45 pm    Post subject: Reply with quote

Karl :D
You can probably go into your dhcp server's settings and instruct it to always assign a certain IP address to your eth0 card (identified by its MAC address). I use this method for accomplishing what you're trying to do.
By "dhcp server" I probably mean your router/modem/gateway combo device. Then you don't need to bother with any net config syntax and can stay using dhcp for configuration of your net info :).
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