LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to broadcast for IP? (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-broadcast-for-ip-244839/)

jeopardyracing 10-19-2004 06:56 PM

Command to broadcast for IP?
 
My Knoppix- powered Dell has a GUI interface for picking up an IP on a new wireless router, but it's a lotta clicks to do it. What is the bash command to ask the router for an IP? I'll just set up a bash alias in /etc/profile if I can get the syntax from some generous soul out here.

Tap-Out 10-19-2004 07:03 PM

I'm pretty sure in Knoppix you still use

Code:

su
root password
/sbin/service network restart

That should work for you. If not try

Code:

/etc/init.d/network restart
as root.

Hope this helps

Cheers

Tap

jeopardyracing 10-19-2004 07:28 PM

Does it matter which interface?
 
My wifi is on eth1 and my ethernet is eth0. Is there some way to specify that in the command, or does it matter? the GUI interface has you click on one or the other.

Tap-Out 10-20-2004 01:23 AM

The commands I listed above will restart both cards automatically. I'm pretty sure there is some command line way to restart a single interface but I'll be buggered if I can remember what it is at the moment. Buf if it doesn't matter if both your interfaces restart those commands should work just fine.

Cheers

Tap

darthtux 10-20-2004 01:44 AM

ifup interface
as in
ifup eth0

jeopardyracing 10-20-2004 02:47 PM

Perfect
 
Yes! I just appended my alias to enable the network card and join my home wifi network with

sleep 2; ifup eth1

and now she calls out for an IP after authenticating on the (encrypted) router. Thanks everyone!


All times are GMT -5. The time now is 06:13 PM.