skanc.com Linux, Microsoft, Raspberry Pi, Python, Android

29Mar/140

Centos – Tips & Tricks 03 – Static IP Address, DNS Set and Network Manager Configuration

Static IP Address Set

 # vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
HWADDR=00:0C:29:4D:FD:91
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=192.168.12.10
GATEWAY=192.168.12.2
DNS1=192.168.12.2
DNS2=195.175.39.39

 

DNS Set

# cat /etc/resolv.conf
domain localdomain
search localdomain
nameserver 192.168.12.2
nameserver 195.175.39.39

 

Network Manager Stop

 # service NetworkManager stop

# chkconfig NetworkManager off

 

Network Service Start/Stop/Restart

# /etc/init.d/network restart

Filed under: Centos Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.