Configuring Network Interfaces

Posted: 09/26/2011 in Ubuntu Linux
Tags: , ,

Step1: Edit etc/network/interfaces
e.g.:

sudo vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.50.15.12
netmask 255.255.255.192.
gateway 10.50.26.1

Disable Network Manager first. Unless, your configuration will be ignored.

Step 2: Start networking

sudo /etc/init.d/networking start

Step 3: Check your network information

ifconfig

Other than editing /etc/network/interfaces, here’s another way to configure your network interface:
The following are low-level commands.

$ sudo ifconfig eth0 192.168.7.26 netmask 255.255.255.0 broadcast 192.168.7.255 ←
$ sudo ifconfig eth0 down ←
$ sudo route add -net 192.168.7.0 netmask 255.255.255.0 dev eth0 ←
$ sudo route add default gw 192.168.7.1 ←
Comments
  1. Elisha Viano says:

    Its like you read my mind! You seem to know so much about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a bit, but other than that, this is excellent blog. A great read. I’ll definitely be back.

  2. Maple Branck says:

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

Leave a comment