LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2004, 07:14 PM   #1
albertg
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
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.
 
Old 06-04-2004, 10:11 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,736

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
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.
 
Old 06-04-2004, 10:14 PM   #3
albertg
LQ Newbie
 
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 06-05-2004, 05:14 AM   #4
aline
LQ Newbie
 
Registered: May 2004
Distribution: linux
Posts: 17

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting a static IP roenstad Linux - Newbie 1 10-02-2005 02:56 AM
Setting a static IP hongman Linux - Networking 6 02-22-2005 05:07 AM
Setting Static IP smurfix Debian 6 02-20-2005 03:07 PM
setting a static IP EMHagerty Linux - Networking 1 09-09-2004 03:15 PM
Setting a Static IP wh33t Mandriva 1 12-20-2003 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration