Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-25-2004, 03:15 PM   #1
LQ Newbie
Registered: Feb 2004
Location: PA
Posts: 10

Rep: Reputation: 0

I am working on a lab. I've been trying to figure out the syntax for an ifconfig command that sets the IP address of the interface eth0 to with broadcast address

I wouldn't have asked this if I hadn't spent so much time, hopefully someone will know. I'm at the end of my rope.

Old 02-25-2004, 03:34 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Try this....
/sbin/ifconfig -a eth0 netmask broadcast

If you want add the gateway, use this...
/sbin/route add default gw ( put the router address here )
Old 02-25-2004, 11:17 PM   #3
LQ Newbie
Registered: Feb 2004
Location: PA
Posts: 10

Original Poster
Rep: Reputation: 0
any other thoughts?
Old 02-25-2004, 11:22 PM   #4
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
type :
man ifconfig

as all the info you want is in there..
i was actually just looking at it


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
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 08:58 AM
Ifconfig mrodriguez Linux - Newbie 2 02-16-2005 01:17 PM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 01:27 AM
Ifconfig ! mesta Linux - Software 2 02-04-2003 10:18 AM
ifconfig Astro Slackware 6 01-08-2003 05:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration