LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Newbie - Help - Setting RH9 to a static IP. (https://www.linuxquestions.org/questions/linux-newbie-8/newbie-help-setting-rh9-to-a-static-ip-189814/)

albertg 06-04-2004 07:14 PM

Newbie - Help - Setting RH9 to a static IP.
 
Hello,

Can someone please help me. I have tried and search many forums and site but still unable to resolve my problem.

I am on adsl connection - ip is dynamically assign by isp.

I am very new with rh9.

I am trying to setup my linux box to connect to the internet while its on a static ip.

My adsl router/modem is set to dhcp off.

I tried to set my box to be on a static ip by
netconfig
or
ifcfg eth0 192.168.1.3/4/5/6/7/8/9
or
redhat-config-network

Whatever i tried, i get the following error message:
ERROR, some hosts are using address 192.168.1.x

Any idea how can i connect to the internet on a static ip?

******

I can access the internet when i turn my router/modem dhcp to ON and turn my rh9 box to dhcp mode.

******

Thank you in advance for any help.

michaelk 06-04-2004 10:11 PM

Are sure this isn't an already used IP address?
Use ifconfig:

ifconfig eth0 192.168.1.3 netmask 255.255.255.0 up

You do not need to configure RH for adsl ie pppoe because the router does that.

albertg 06-04-2004 10:14 PM

thanks for your answer. Yes, i am sure that ip is not in use.

tried this and it is still not working :(
ifconfig eth0 192.168.1.3 netmask 255.255.255.0 up

aline 06-05-2004 05:14 AM

Put the router to dhcp on and reboot several times to see what IP you get from it (with ifconfig or ip addr show) and after that turn off dhcp off on the router and use that IP.


All times are GMT -5. The time now is 09:30 AM.