Solved

Dynamic IP with Slackware

Posted on 2000-03-17
6
491 Views
Last Modified: 2013-12-05
I recently got a DSL line but do not have a static IP and I use my Linux box to route internet traffix for my house...

With my Dial-up connection it worked great but now I don't know what IP to assign the NIC that is connected to the DSL modem because I don't have a static IP

I am using slackware...

All I have is netconfig

-Eric007
0
Comment
Question by:eric007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2630435
If you don't have a static IP, then the DSL line expects to use DHCP to set up the system. Have you tried enabling DHCP on your ethernet interface?
0
 

Author Comment

by:eric007
ID: 2631363
Thats what I am wondering how to do in slackware...


-Eric007
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2631410
I think you should have linuxconf and it would be the easiest way. The network settings are under "Networking>Client tasks>Basic host information>Adapter 1". Mark the adapter as "Enabled", select "Dhcp" and select "eth0" for the "Net device". "Accept" the settings and "Act/Changes".The next reboot should try to do a DHCP assignment.
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
LVL 12

Accepted Solution

by:
j2 earned 10 total points
ID: 2632091
slackware doesnt have linuxconf.

what you need to do is obtain a dhcp client. I recomend dhcpxd ( http://apps.freshmeat.net/download/926030341/ )

Download, untar, install. Then you will have to edit /etc/rc.d/rc.inet1

find a line similar to

/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}

comment it out, and replace it with

/sbin/dhcpxd -w -c -n eth0

(this is so your system will grab a lease when rebooting)

then execute

rm /etc/dhcpxd/out ; touch /etc/dhcpxd/out

(else it will log to a tty and not a file)

then either reboot, or a more clean way is to exectute

/sbin/dhcpxd -w -c -n eth0

to bring the interface up.

unfortunately slackware isnt (by default) flexible enough to rehup all daemons if your IP changes while it is running. But i've never actually seen an ISP that changes an IP "on the fly".
0
 

Author Comment

by:eric007
ID: 2633937
that would probabally work, but i am given redhat 6.1 a try now but if it doesn't work out i will go back to slackware and do what u said..

Thanx for the help..

-eric007
0
 
LVL 12

Expert Comment

by:j2
ID: 2633953
RH ships with pump which is a piece of sh*t. dhcpx is much more useful in RH aswell, but yo uneed to modify other files.
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order for businesses to be compliant with certain information security laws in some countries, you need to be able to prove that a user (which user it was becomes important to the business to take action against the user after an event has occurr…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question