Solved

Dynamic IP with Slackware

Posted on 2000-03-17
6
485 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
  • 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now