[SOLVED] Without NetworkManager, how to keep the DNS info for both NICs ?
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.
Alright so you are using Ubuntu. That clear up the things a bit. I have checked this on my Ubuntu 11.04 system and here is the location where you should look for:
Quote:
/etc/NetworkManager/system-connections
Under this you will find out the connection files for your Wired Connection as well as Wireless Connection. I am using wired connection so I have got a file with the name Wired Connection 1. When I did a cat on this file here is the output that I got:
I will explain the [ipv4] section as that is the section where you need to edit the stuff. method=manual it means I have statically setup my ip address. dns=192.168.1.1 is my dns server which this interface will going to use. addresses1=192.168.1.20 is the IP I have configured on this machine. 24 is the subnet mask in use. 192.168.1.1 is also acting as my default gateway.
Make sure you take backup of any configuration file before making any changes to it. It is good to be safe then sorry :-)
T3, 1st of all thanks very much for spending time looking into this.
i looked at networkManager before, but there's 1 issue blocking me from using it.
For our app, we have to make network changes in the command line, meaning we have to manually
edit the "Auto eth0", "Auto eth1" files under the /etc/NetworkManager folder.
But if you do a fresh install of ubuntu, i don't see these files,
until i click the up/down arrow icon in the right corner of the desktop, that's to bring down/up the network.
So for me, since i cannot access the desktop, i need to manually generate the "Auto eth0".
Then i can edit the ip address etc.
But there's a "uuid" field, i did't know where to get it. So i stopped there.
Our app will be running in the embedded board, that's why i have to use command line.
Quote:
Originally Posted by T3RM1NVT0R
Alright so you are using Ubuntu. That clear up the things a bit. I have checked this on my Ubuntu 11.04 system and here is the location where you should look for:
Under this you will find out the connection files for your Wired Connection as well as Wireless Connection. I am using wired connection so I have got a file with the name Wired Connection 1. When I did a cat on this file here is the output that I got:
I will explain the [ipv4] section as that is the section where you need to edit the stuff. method=manual it means I have statically setup my ip address. dns=192.168.1.1 is my dns server which this interface will going to use. addresses1=192.168.1.20 is the IP I have configured on this machine. 24 is the subnet mask in use. 192.168.1.1 is also acting as my default gateway.
Make sure you take backup of any configuration file before making any changes to it. It is good to be safe then sorry :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.