Configuring multiple network cards in Ubuntu

25 pts.
Tags:
linux router
Network Adapters
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • slack400
    This link should help. Click here
    2,705 pointsBadges:
    report
  • Saffy
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following