PDA

View Full Version : ifconfig or netcardconfig dhcp syntax



sminotti
06-26-2003, 02:15 PM
Is it possible to invoke dhcp with an argument to ifconfig like:

ifconfig eth0 dhcp

or is it possible to have netcardconfig automatically invoke dhcp broadcast without promting for it?

what I,m trying to do is append a couple of commands to knoppix.sh on my hard drive so that my network card will work.

right now I have:

modprobe 8139too
netcardconfig

Netcard config prompts for dhcp broadcast (yes). I want to just type

knoppix myconfig=scan

and have everything ready after initializations.

aay
06-26-2003, 03:44 PM
Try this:

pump -i eth0

sminotti
06-26-2003, 10:54 PM
Does the trick, thanks:)

scissors
07-13-2003, 02:07 AM
Try this:

pump -i eth0

Wonderful! This is the exact same situation I am in, and was looking for a cure for.

JockVSJock
07-15-2003, 03:53 AM
Right now I'm using CAT5 into my internal nic on my laptop.

If I want to take down dhcp, do I do the following?




pump -i eth0 ifdown



I tried it and it did not work.

thanks

Stephen
07-15-2003, 04:28 AM
Right now I'm using CAT5 into my internal nic on my laptop.

If I want to take down dhcp, do I do the following?




pump -i eth0 ifdown



I tried it and it did not work.

thanks

Try ifdown eth0.

JockVSJock
09-23-2003, 04:21 AM
[

Try ifdown eth0.

Tried that...didn't work

See output below...




root@Probot:~# ifdown eth0
ifdown: interface eth0 not configured