LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Manually configuring DHCP for static IP -- cannot assign IP (http://www.linuxquestions.org/questions/linux-networking-3/manually-configuring-dhcp-for-static-ip-cannot-assign-ip-373433/)

tristanlee85 10-15-2005 05:30 PM

Manually configuring DHCP for static IP -- cannot assign IP
 
I'm trying to setup eth0 with a static IP address so the router knows what computer is the DMZ host and never has problems with mis-matched IPs.

The connection works file when I set it to automatically configure DHCP. What I want to do is manually choose 192.168.1.110 as my IP and keep it like that. Here is what I enter in system-config-network:

Code:

IP Address: 192.168.1.110
Subnet mask: 255.255.255.0
Default Gateway: 192.168.1.1

That IP isn't in use. Whenever I change it manually, I save the changes, deactivate the device and reactivate it. After that, I don't have any connection whatsoever until I go back to the option to automatically configure DHCP.

Why is this?

tristanlee85 10-15-2005 05:31 PM

Just to add, when I did this on XP, I assigned everything like above except I used 192.168.1.105 instead and it worked perfect without problems.

routers 10-16-2005 01:07 AM

are u comfortable with command line , if yes i have step for this
(sorry i never touch system setting via GUI mode, headace for me)

drop u to root konsole
#first step
/sbin/ifcofig eth0 192.168.1.110 netmask 255.255.255.0 broadcast 192.168.1.254

#second
/etc/rc.d/init.d/network restart
/etc/rc.d/init.d/network status <- see what is output

cheers :)

tristanlee85 10-16-2005 01:34 AM

I was able to figure it out through the GUI. I had the DHCP server incorrect. Thank you for the reply though.


All times are GMT -5. The time now is 01:55 AM.