'os/UNIX_LINUX'에 해당되는 글 238건

  1. 2013.02.12 리눅스 IP 세팅

리눅스 IP 세팅

os/UNIX_LINUX 2013. 2. 12. 23:52
반응형

$ vi /etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=localhost.localdomain
GATEWAY=192.168.8.2
GATEWAYDEV=eth0

 

 

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

DEVICE="eth0"
BOOTPROTO="static"
IPADDR=192.168.8.3
NETMASK=255.255.255.0
GATEWAY=192.168.8.2
DNS1=168.126.63.1
DNS2=168.126.63.2
HWADDR="XX:XX:XX:XX:XX:XX"
IPV6INIT="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"

 

 

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

 

 

$ /etc/rc.d/init.d/network restart


 

반응형
Posted by 공간사랑
,