25 pts.
 Configuring multiple network cards in Ubuntu
I need to make a router with Ubuntu. I need to install more than one network card (with separate IP addresses and config for each card). How can I do this?


Software/Hardware used:
ASKED: February 10, 2010  7:20 PM
UPDATED: May 8, 2013  5:12 PM

Answer Wiki:
Ubuntu will pick up your network cards individually and you should have a little network icon on the bottom or top of your screen which you can open up to view your network connections and open them up to make changes. If its not there you can also get to it through administration > Network It will show each Network card as a separate connection and you can configure each one individually ----------- Network interfaces configuration is defined in the /etc/network/interfaces file, so, you could manually modify this file with the appropriate settings. You can read the man page or search the web for details about this file. Here is a simple example, where one card is configured to use DHCP, and the other is configured to use a static IP address:
<pre>auto <b>eth0</b>
iface <b>eth0</b> inet dhcp

auto <b>eth1</b>
iface <b>eth1</b> inet static
address 10.0.0.200
netmask 255.255.255.0
broadcast 10.0.0.255
network 10.0.0.0</pre>
-CarlosDL
Last Wiki Answer Submitted:  May 8, 2013  5:13 pm  by  Michael Tidmarsh   11,380 pts.
All Answer Wiki Contributors:  Michael Tidmarsh   11,380 pts. , OwenAmbrose   1,915 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

This link should help. Click here

 2,680 pts.

 

I recently faced this problem, and found its solution too on the internet.

The above given solution is correct;

You just need to edit /etc/network/interfaces

vi /etc/network/interfaces

and then add these lines;

######## Interface One ########
auto eth0
iface eth0 inet dhcp

######## Interface two ########
auto eth1
iface eth1 inet static
address 10.0.0.200
netmask 255.255.255.0
broadcast 10.0.0.255
network 10.0.0.0

 10 pts.