LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-25-2004, 02:15 PM   #1
Melissa22
LQ Newbie
 
Registered: Feb 2004
Location: PA
Posts: 10

Rep: Reputation: 0
ifconfig


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 128.143.2.3/16 with broadcast address 128.143.255.255

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.

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

Rep: Reputation: 61
Try this....
/sbin/ifconfig -a eth0 128.143.2.3 netmask 255.255.0.0 broadcast 128.143.255.255

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

Original Poster
Rep: Reputation: 0
any other thoughts?
 
Old 02-25-2004, 10:22 PM   #4
DrOzz
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
 
  


Reply



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 07:58 AM
Ifconfig mrodriguez Linux - Newbie 2 02-16-2005 12:17 PM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 12:27 AM
Ifconfig ! mesta Linux - Software 2 02-04-2003 09:18 AM
ifconfig Astro Slackware 6 01-08-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:23 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
Open Source Consulting | Domain Registration