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?
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:
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
This link should help. Click here
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