는에 (모든 네트워크 인터페이스를 표시하려면 예를 다음에 인터페이스 이름, eth0를를 확인하려면 다음 명령의 결과에서 읽을 당신의 인터페이스 이름)의 파 eth0를 대체 : 당신의 eth0 인터페이스를 사용하는 경우
[[email protected]]# ifconfig -a
것은 당신이 협력해야 다음과 같은에서 왼쪽 또는 오른쪽 :
[[email protected]]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
## Configure eth0
#
# /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" # interface name
NM_CONTROLLED="no"
ONBOOT=yes # launch network in Linux boot
HWADDR=AA:BB:CC:DD:EE:FF # your mac address
TYPE=Ethernet
BOOTPROTO=statiC# static or dhcp
NAME="System eth0"
IPADDR=X.X.X.X # your ip address if static is chosen
NETMASK=255.255.255.0 # your netmask if static is chosen
[[email protected]]# vi /etc/sysconfig/network
## Configure Default Gateway
#
# /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=centos6
GATEWAY=192.168.1.1
다시 시작 네트워크 인터페이스
[[email protected]]# /etc/init.d/network restart
구성 DNS 서버
[[email protected]]# vi /etc/resolv.conf
nameserver 8.8.8.8 # Replace with your nameserver ip
nameserver 8.8.4.4 # Replace with your nameserver ip
ifconfig 명령을 통해 설정을 확인하려고하십니까? – developer