LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internal ip address will not stick (https://www.linuxquestions.org/questions/linux-networking-3/internal-ip-address-will-not-stick-496060/)

unklekoolaid 10-27-2006 08:34 AM

Internal ip address will not stick
 
First of all Id like to thank everyone here for all the help ive recieved lately, thanks! On to my question, I have a linksys WRT54G router with a windows xp machine connected as well as my web server running Ubuntu DD, I have gone into the router and have successfully routed web and ftp traffic to the server, my problem is that the XP workstation is set to DHCP and the server is set to request an internal address of .103, but my router still treats it as its not requesting a static ip. I'll come home after work and every day it will have a new address, any reason why it would not give the server the ip address it asks for? Should every machine in the house be set to request a static ip?

cleidh_mor 10-27-2006 08:38 AM

Quote:

Originally Posted by unklekoolaid
the server is set to request an internal address of .103, but my router still treats it as its not requesting a static ip. I'll come home after work and every day it will have a new address, any reason why it would not give the server the ip address it asks for? Should every machine in the house be set to request a static ip?

I've seen this behaviour on my openSuSE box as well. In the end I just excluded the server address from the DHCP range and set the IP address on the server itself, bypassing DHCP.

unklekoolaid 10-27-2006 02:29 PM

Great ill try it when i get off work! :D

unklekoolaid 10-27-2006 05:10 PM

Hmm that didnt seem to work, it just ignores that machine when i do that. Heres what i tried

"Starting ip address"= 192.168.1.10
"Linux server static ip"= 192.168.1.103

it didnt even assign it an address. Should i try disabling DHCP?
Also i tried setting
"Static DNS 1" to 192.168.1.103
after i set the starting up address back to 192.168.1.100

still didnt work

cleidh_mor 10-27-2006 05:21 PM

I suggest you change your DHCP pool to be 192.168.1.10 - 192.168.1.100 on the router. The router shouldn't need to know about the server's IP unless it used in a firewall config somewhere. Then set your server up with a static IP, using whaever config tool you used to set it up with DHCP. You need to ensure that you get the netmask and default gateway correct.

Once you've done this, check that you can ping your default gateway (which should be your router).

If this doesn't work, please post:
- your router make and model
- your distro
- the output of the command (run as root)
Code:

$ ifconfig eth0
HTH

unklekoolaid 10-28-2006 02:23 PM

Well that worked! I guess changing the dhcp pool and actually pinging the router from the server worked :newbie: Thanks alot!


All times are GMT -5. The time now is 02:43 PM.