Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ethernet 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
yes both are same but small differance...
At first which distribution u use...
In redhat/fedora u can use the command..
for u r second nic card u can use the command
/sbin/ifconfig eth1 192.160.22.158
but it's temporary solution., that means when u reboot the machine ,second nic card ip address empty again.
Seb22 - we are not your homework site. If we give you the answers we are working against your teachers who are trying to get you to learn. We are, therefore, doing you and your school a disservice. The point of you getting homework is so that you can reinforce what you have been told at school and so you can learn to research answers on your own. The point of an exam is so that you can prove that you have taken in and understood the subject.
It is explicitly written that you should not ask us to do your homework for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.