How do I set up two static net cards on two different networks simultaneously

Asked by Bradley Smith on 2009-11-03

I have two network cards. One is attached to a cable modem, the other is attached to an ADSL modem for redundancy. My problem is: As I have two ISP's I have two DNS values. How do I associate a specific DNS server with a specific card? Many Thanks!

Question information

English Edit question
Ubuntu network-manager Edit question
No assignee Edit question
Last query:
Last reply:
Cristi Nistor (cristi-nistor) said : #1

In System --> Preferences --> Network Connections on Wired tab you have the possibility to configure your network cards. Use Add button to add a new interface, give a connection name and add the MAC address for the device, and under IPv4 Settings tab you can chose the method to acquire your IP address (Automatic (DHCP), Manual etc.). Also check the Connect automatically option and optional Available to all users option (on the bottom side).

The ifconfig command in a terminal window will give you information about your wired cards (ethx and ethy - x,y numbers) like MAC address, IP address, network, gateway.

With the command sudo dhclinet ethx and sudo dhclient ethy you cand acquire the IP address from your modem. You can add the nameservers in /etc/resolv.conf file. Just edit it with a text editor as root (to be able to save the change).

Good luck.

Can you help with this problem?

Provide an answer of your own, or ask Bradley Smith for more information if necessary.

To post a message you must log in.