UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I am running 7.04 Ubuntu and I have recently setup my IP staticly in /etc/network/interfaces as shown below however I was not sure how I release & renew for the settings to take place. I really just need to know if my PC is not using the newly set static default gateway. Can someone please tell me how I can tell what my DG is set to? The "ifconfig eth0" command does not specify the DG.
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.1.1.204
netmask 255.255.0.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.231
you should also edit /etc/hosts if you are changing the network third octet
Why would I want to edit my resolve.conf? That info is correct and should not change. I do however only want to make sure I am using the newly specified DG in my interfaces config file.
It simply appears that I made a change from dynamic to static and now I just can't seem to figure out how to apply those changes (I assume rebooting obviously would do the trick but I want to avoid that).
resolve.conf is simply pointing to the correct name (DNS) servers I want to continue using.
/etc/hosts is simply stating my DNS hostname on the LAN which as well should not be changing.
My dynamic settings were as follows:
ip = 10.1.1.204
sm = 255.255.0.0
dg = 10.1.1.1
I now simply added it as static the same as dynamic with a new DG for testing.
Last edited by carlosinfl; 10-11-2007 at 11:23 AM.
I don't know debian/ubuntu, but since I answered earlier (and no one else is chiming in), I have to ask: have you restarted your network service? If not, do so. If you can't tolerate a minor network interruption, then make the changes in real-time using route.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.