vanutsteen.nl => nerds only A blog on rails, php, computing, my bass guitar and stuff

Ubuntu: changing from dhcp to static network interfaces

on in Linux

I installed ubuntu and it did automatically dhcp. But I didn’t want that so I changed it to static. This is what I had to change.

From:

1
2
auto eth0
iface eth0 inet dhcp

To:

1
2
3
4
5
6
7
8
9
10
auto eth0
iface eth0 inet dhcp

auto eth0
iface eth0 inet static
       address 10.76.122.24
       network 10.76.122.0
       netmask 255.255.255.0
       broadcast 10.76.122.255
       gateway 10.76.122.20 

Comments