LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2004, 06:56 PM   #1
jeopardyracing
Member
 
Registered: Sep 2003
Posts: 175

Rep: Reputation: 30
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.
 
Old 10-19-2004, 07:03 PM   #2
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
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
 
Old 10-19-2004, 07:28 PM   #3
jeopardyracing
Member
 
Registered: Sep 2003
Posts: 175

Original Poster
Rep: Reputation: 30
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.
 
Old 10-20-2004, 01:23 AM   #4
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
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
 
Old 10-20-2004, 01:44 AM   #5
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
ifup interface
as in
ifup eth0
 
Old 10-20-2004, 02:47 PM   #6
jeopardyracing
Member
 
Registered: Sep 2003
Posts: 175

Original Poster
Rep: Reputation: 30
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
don't broadcast BSSID ahz Linux - Wireless Networking 2 06-29-2005 11:35 PM
Time Broadcast BigDawg Linux - Networking 4 12-04-2003 12:53 AM
How can I get my broadcast to run hamadashi Linux - Networking 1 09-24-2003 09:12 AM
What is a broadcast ip? snocked Linux - Newbie 7 01-28-2003 09:56 AM
What does Broadcast mean? BHanrahan Linux - Newbie 3 09-03-2002 12:02 PM


All times are GMT -5. The time now is 08:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration