Network setup Debian and Ubuntu

First backup!!!
Network Interface cp /etc/network/interfaces /etc/network/interfaces.bak
vi /etc/network/interfaces
Set the value to look like this:
auto lo
iface lo inet loopback

#My IP description
# IPv4 address
iface eth0 inet static
 address 192.168.0.100
 netmask 255.255.255.0 
 network 192.168.0.0 
 broadcast 192.168.0.255
 gateway 192.168.0.1
DNS
cp /etc/resolv.conf /etc/resolv.conf.bak

vi /etc/resolv.conf 
 
Set the value to look like this:
 
nameserver 8.8.8.8
namesrever 8.8.4.4 

Hostname
 
echo servername.domain.com > /etc/hostname 

There you go.

E-Mail(weballround@gmail.com) Me if you need friendly help,
with something else.

Pierre OUT.
 
 
 

Comments

Popular posts from this blog

Centos 7 Setup Webmin, Virtualmin, Usermin, CSF Firewall and Letsencrypt

Setting Up Out-of-Office Messages in Outlook

How to install Openbox