2016-11-03 2 views
0

Cent OS를 사용하는 자동 전화 걸기를 시도하고있었습니다. 나는 완전히 새로운 OS에만 익숙했으며 네트워크를 구성하는 방법을 모르고 네트워크 없이는 액세스 할 수 없습니다. 자동 CE 포털로 이동하십시오.centos에서 네트워크를 구성하는 방법

내 와이파이 IP 서브 네트 마스크 및 기본 게이트웨이를 퍼팅 시도하지만 지정된 IP 액세스하려고하면 그것은 나를 보여줍니다

enter image description here

+0

ifconfig 명령을 통해 설정을 확인하려고하십니까? – developer

답변

1

는에 (모든 네트워크 인터페이스를 표시하려면 예를 다음에 인터페이스 이름, 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 
관련 문제