View previous topic :: View next topic |
Author |
Message |
|Spiller| n00b
Joined: 15 May 2003 Posts: 20 Location: Macedonia, Europe
|
Posted: Fri Mar 11, 2005 1:27 am Post subject: wrong dhcp IP assignment |
|
|
I've got a weird problem. One of the pc's on my network (inet --> dlink router/firewall ---> two pc's running gentoo) is getting a wrong IP address on boot which is 192.168.0.102 by dhcp (the real address should be 192.168.0.101). So after it boots up with the wrong IP it's useless, can't be reached or reach from. Now, the same pc booted with winxp gets the correct address assigned. I tried using a static IP in /etc/conf.d/net instead of dhcp but that didn't work either.
Are there any files I need to update in order to fix this? What should the /etc/hosts file look like for a setup like this?
Right now it looks like this, and the first pc (max) works fine with this setup.
Code: |
127.0.0.1 localhost
192.168.0.100 max.somedomain.com max
192.168.0.101 rex.somedomain.com rex
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
|
Am I missing something? |
|
Back to top |
|
|
donjuan l33t
Joined: 11 May 2004 Posts: 760 Location: At Uni
|
Posted: Fri Mar 11, 2005 2:27 am Post subject: |
|
|
You can't really control what IP address a dhcp server on one of those routers assigns. Eventually the IPs for your computers will change if you stick with dhcp. What you're supposed to do to use static IPs is use those below 192.168.0.100 to avoid conflicts with the dhcp server. You can start with 192.168.0.2. Setting up a static IP is explained in /etc/conf.d/net under "Interface Handlers." _________________ Command-line ACCEPT_KEYWORDS is considered harmful, use the package.* files.
The Stage 1 on 3 Install |
|
Back to top |
|
|
Anarcho Advocate
Joined: 06 Jun 2004 Posts: 2970 Location: Germany
|
Posted: Fri Mar 11, 2005 11:27 am Post subject: |
|
|
Maybe a
"dhcpcd release" might help,
but to the way to get a fixed ip adress with such dhcpd-sever is to use one.
But you also need to add the default-gateway and the nameserver (/etc/resolv.conf) _________________ ...it's only Rock'n'Roll, but I like it! |
|
Back to top |
|
|
|