Re: [SLUG] Cannot create static IP address for Ubuntu 10.4
My favourite way to achieve this is to assign a static DHCP lease on the modem (I.e. set it by the MAC address) that way it's also manageable for other kinds of devices, concentrated in one place and the dhcp server is aware of the address being in use. On Dec 10, 2011 12:22 PM, elliott-brennan m...@elliott-brennan.id.au wrote: Hi all, I know this comes under the 'Doh' list but... I have a fresh Ubuntu 10.04 install. On this particular machine I want a static address - I'm going to try out OpenSim (long story for later). This machine runs off a hub which is in turn connected to my modem/router. I've edited the /etc/network/interfaces file as follows: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.12 netmask 255.255.255.0 gateway 192.168.0.1 but no success. The machine is simply not happy (I've also lost the network icon from the toolbar - another story) and doesn't want to connect to the network. Should I just give up and assign an address to the machine's mac address via the router or is there something simple (I'm guessing so) that I'm missing. Thanks in advance. Regards, Patrick -- www.patrickological.com -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/**mailinglists.htmlhttp://slug.org.au/faq/mailinglists.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Cannot create static IP address for Ubuntu 10.4
Thanks to everyone who replied. It seems by way of consensus that a static ip assigned to the MAC is the simplest solution. :) Regards, Patrick On 11/12/11 07:51, Amos Shapira wrote: My favourite way to achieve this is to assign a static DHCP lease on the modem (I.e. set it by the MAC address) that way it's also manageable for other kinds of devices, concentrated in one place and the dhcp server is aware of the address being in use. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Cannot create static IP address for Ubuntu 10.4
Hi all, I know this comes under the 'Doh' list but... I have a fresh Ubuntu 10.04 install. On this particular machine I want a static address - I'm going to try out OpenSim (long story for later). This machine runs off a hub which is in turn connected to my modem/router. I've edited the /etc/network/interfaces file as follows: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.12 netmask 255.255.255.0 gateway 192.168.0.1 but no success. The machine is simply not happy (I've also lost the network icon from the toolbar - another story) and doesn't want to connect to the network. Should I just give up and assign an address to the machine's mac address via the router or is there something simple (I'm guessing so) that I'm missing. Thanks in advance. Regards, Patrick -- www.patrickological.com -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Cannot create static IP address for Ubuntu 10.4
Hi Patrick, Thus spake elliott-brennan: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.12 netmask 255.255.255.0 gateway 192.168.0.1 The above is correct (I assume eth0 is the interface you are trying to configure). Dumb question, but have you tried rebooting? NetworkManager may still assume ownership of the device (and will do so until the service is restarted). It is possible to restart NetworkManager and /etc/init.d/networking on-the-fly, but might be easier for me if I just tell you to reboot. Also can you elaborate on the deliciously vague: but no success. The machine is simply not happy (I've also lost the network icon from the toolbar - another story) and doesn't want to connect to the network. Losing the network icon from the toolbar is a Feature, Not A Bug™ (as NetworkManager is no longer controlling the interface) but “doesn’t want to connect to the network” doesn’t tell me anything. Jeremy. signature.asc Description: OpenPGP digital signature -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html