LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-04-2006, 03:04 PM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
define dhcp ip address from router


is there a way to tell the DHCP on the router that i want to be a specific IP address. like 192.168.1.100 all the time
 
Old 01-04-2006, 03:10 PM   #2
celejar
Member
 
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
Sure; how to do it depends on the software / firmware of your specific router. On my Netgear MR814 there's a setting somewhere in the web menus to reserve specific ip addresses for specific macs (ethernet hardware addresses); I'm not at the box now so I can't tell you exactly which submenu it's under. I assume most routers can do this.
 
Old 01-04-2006, 03:40 PM   #3
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
there is no option like that on my linksys wrt54g, but there is a way to do it on the computers end, i had it done in slackware, but i had to edit a specific file... i just dont remember which file...
 
Old 01-04-2006, 04:01 PM   #4
UK MAdMaN
Member
 
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Quote:
Originally Posted by true_atlantis
...but there is a way to do it on the computers end, i had it done in slackware, but i had to edit a specific file... i just dont remember which file...
http://www.linuxquestions.org/questi...d.php?t=398625
 
Old 01-04-2006, 04:28 PM   #5
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
does anyone know where the rc.inet files are in suse?
 
Old 01-05-2006, 07:11 PM   #6
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
I did a "whereis rc.inet" and found some rc. files in /etc. I can't find an rc.inet on my 10.0 but did come across the following that might be helpful:
_____________________________
"cat /etc/rc.d.README"

Some people expect the system startup scripts in /etc/rc.d/. We use a slightly different structure for better LSB compliance. You can find the equivalent files in /etc/init.d/. The behavior of the scripts can be configured in the files below the directory /etc/sysconfig/.

For detailed information please have a look into the SuSE Linux manual. If you don't have a printed manual, you can find the electronic version in /docu on the first CDROM or in the package 'books.rpm'.

You may also want to read /etc/init.d/README for more information.
 
Old 01-05-2006, 08:16 PM   #7
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
well, i still have the same problem, but i think im coming close to figuring it out... from what i see, it looks like in the /etc/sysconfig/network directory it will create a file according to your networks card mac address, for example, something like this ifcfg-eth-id-00:11:22:33:44:55 and the contents of this file looks like what you would do to config the network according ot the above post.

linux:/etc/sysconfig/network # cat ifcfg-eth-id-00\:11\:5b\:f5\:53\:cd
BOOTPROTO='dhcp'
BROADCAST=''
IPADDR=''
MTU=''
NAME='Elitegroup CK804 Ethernet Controller'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
UNIQUE='rBUF.R4Y_muT6PpA'
USERCONTROL='no'
_nm_name='bus-pci-0000:00:0a.0'

but i cant figure out how to change it to set the IP address, and it is not the exact format as shown in that other post... another thing i found was in yast->network devices->network card you can cofigure to a static IP, i havent tried it yet, but that may work.

***UPDATE***
ok, i figured out how to do it through yast.
1. yast->network devices->network card
2. click 'edit' on your specific card
3. change option to 'static ip' enter your wanted IP, and put '225.225.225.0' for subnet mask
4. click routing
5. enter '192.168.1.1' for default gateway
6. click 'ok' then click 'next' to save

this should work as long as your router is configured like linksys are... if your using a different type of router, or messed with the settings, youc an look at status to get the gateway, and subnet mask


***update***
nevermind, this did not work after i rebooted my computer. anyone know why?

Last edited by true_atlantis; 01-05-2006 at 08:53 PM.
 
Old 01-06-2006, 02:50 AM   #8
AdamCo
Member
 
Registered: Aug 2004
Distribution: Suse 10
Posts: 126

Rep: Reputation: 15
I think while you are in the edit box for your card you have to click on Host Name and Name Server and then add your ISPs DNS server addresses in Name Server 1 and Name Server 2 and that will add those addresses into the /etc/resolv.conf file. That's what I have to do anyway, I'm pretty new to networking though, but it works for me.
 
Old 01-06-2006, 02:39 PM   #9
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Original Poster
Rep: Reputation: 30
the dns servers are already in there, and tehy are correct
 
Old 01-06-2006, 02:52 PM   #10
AdamCo
Member
 
Registered: Aug 2004
Distribution: Suse 10
Posts: 126

Rep: Reputation: 15
Is there any comments in the /etc/resolv.conf file about a service that might be modifying the DNS information? After reboot did you check the /etc/resolv.conf file to make sure the DNS servers were listed in there correct?
 
Old 01-06-2006, 03:47 PM   #11
AdamCo
Member
 
Registered: Aug 2004
Distribution: Suse 10
Posts: 126

Rep: Reputation: 15
Also, if you want to have a static IP address for all your machines on that router you can probably just turn off DHCP in the router control panel and then configure your network cards with yast like you did above.
 
  


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
No IP Address while Using DHCP vu_t_nguyen Linux - Wireless Networking 2 12-18-2005 03:54 PM
Home network: connecting to a Linksys router for DHCP IP address - no ping gunther Linux - Networking 28 05-20-2005 10:14 PM
dhcp no ip address and netmask dont match route address pengy666 Linux - Wireless Networking 1 05-08-2005 09:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
IP address / DHCP supersport Linux - General 1 11-01-2001 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:23 PM.

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