我试图设置使用 cent OS 的自动拨号,我完全是 cent OS 的新手,不知道如何在其上配置网络,没有网络,我无法访问 go auto CE 门户。
我尝试放置我的 WiFi IP 子网掩码和默认网关,但是当我尝试访问给定的 IP 时,它会显示我:
要显示您的所有网络接口(检查您的接口名称,eth0 在以下示例中,替换 eth0 par 您的接口名称从以下命令的结果中读取):
[root@localhost]# ifconfig -a
如果您使用 eth0 接口,您应该配置如下:
[root@localhost]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
## Configure eth0
#
# /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" # intece 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
[root@localhost]# vi /etc/sysconfig/network
## Configure Default Gateway
#
# /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=centos6
GATEWAY=192.168.1.1
重新启动网络接口
[root@localhost]# /etc/init.d/network restart
配置 DNS 服务器
[root@localhost]# vi /etc/resolv.conf
nameserver 8.8.8.8 # Replace with your nameserver ip
nameserver 8.8.4.4 # Replace with your nameserver ip
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(56条)