Jul 16, 2012

0 Configuring network interface on Ubuntu LAMP



sudo nano /etc/network/interfaces

# primary network interface

auto eth0

iface eth0 inet static

address xxx.xxx.xxx.xxx

netmask  xxx.xxx.xxx.xxx

Gateway  xxx.xxx.xxx.xxx

-----------------------------------------------

Restart network interface.

sudo /etc/init.d/networking restart

-----------------------------------------------

Add DNS record:

sudo nano /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx

nameserver xxx.xxx.xxx.xxx

-----------------------------------------------

Restart network interface.

sudo /etc/init.d/networking restart

That's all.

0 comments :

Post a Comment

Comment: