LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices

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

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


Hi

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 192.168.200.104.

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

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


please reply asap
 
Old 06-11-2005, 11:27 PM   #2
zackarya
Member
 
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
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
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 07:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration