Visit the LQ Articles and Editorials section
Go Back > Forums > > Member Intro
User Name
Password Member Intro New to Been a long time member but never made a post? Introduce yourself here.


Closed Thread
  Search this Thread
Old 05-24-2005, 03:08 AM   #1
LQ Newbie
Registered: May 2005
Posts: 3

Rep: Reputation: 0
Linux command to assign an ip address


I am Saira Babu and i am studying computer science. Here is my question: You are logged in to a machine called monroe, it has two ether
net cards, the first card is already configured with ip address

Give a Linux command to assign an ip address of to the second card.

Give another command to add a default gateway (with ip address to your routing table.

please reply asap
Old 06-11-2005, 11:27 PM   #2
Registered: Jul 2003
Distribution: OpenSuse 10, Debian
Posts: 152

Rep: Reputation: 30
Is this homework? I won't tell you how to do it but the command your looking for is
ifconfig. Your NICs will have the names eth0 and eth1.

If it's not homework then I apologize for my obtuse answer.

Hope I helped. Zack.
Old 06-12-2005, 02:19 AM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,191
Blog Entries: 4

Rep: Reputation: 464Reputation: 464Reputation: 464Reputation: 464Reputation: 464
Didn't we already close one of these? In fact, all of your posts have been toask for help with homework and they have all been closed. Please do not ask us for help with your homework.

Closed Thread

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
Ssh tunnel : cannot assign requested address sieker Linux - Networking 6 11-11-2005 01:10 PM
Can not assign IP address jtir Solaris / OpenSolaris 1 09-28-2005 03:37 AM
Linux command to assign an ip address seb22 Linux - Networking 5 05-24-2005 12:03 PM
Can't assign a static IPv6 address guzo Linux - Networking 0 02-11-2005 06:22 AM
USB foto can't assign address ivanatora Linux - Hardware 1 06-25-2004 02:10 PM

All times are GMT -5. The time now is 02:56 PM.

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