setting static ip address
Bart Silverstrim
bsilver at chrononomicon.com
Wed Mar 18 16:14:44 UTC 2009
Unreal Root wrote:
> Donald Raikes wrote:
>> Hello,
>>
>> When I installed my intrepid system, it didn't give me the opportunity
>> to configure the ethernet card to set a static ip address.
>>
>> How do I configure the ip address to switch from dhcp to static?
>>
>>
> Open a terminal and type the following:
>
> sudo gedit /etc/network/interfaces
>
> You will see lines similar to this:
>
> auto eth0
> iface eth0 inet dhcp
>
> Change that to the following filling in the correct information for your
> network:
>
> auto eth0
> iface eth0 inet static
> address 192.168.1.50
> netmask 255.255.255.0
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
>
> Hope this helps.
Network manager, in my experiences on recent Ubuntu releases. has sucked.
Manual editing of that file can interfere with tools later on, though...
My best experiences have been from advice here to install wicd. Google
"wicd install ubuntu" and you should find the homepage for the project
that includes directions on adding it to your repo list for your Ubuntu
release, then install that and you can set it for a static IP and not
have it magically disappear or lose the connection altogether the way
network manager has done to me before.
More information about the ubuntu-users
mailing list