setting static ip address

Unreal Root unreal.linux at gmail.com
Wed Mar 18 16:05:50 UTC 2009


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.




More information about the ubuntu-users mailing list