By default CentOS minimal install does not come with pre-configured network, here’s how to make it work:
$ ping google.com
ping: unknown host google.com
To fix this we’ll need to edit the set up for the ethernet. Let’s start with editing this file:
$ vim /etc/sysconfig/network-scripts/ifcfg-eth0
IPADDR=x.x.x.x
BOOTPROTO=none
NETMASK=255.255.255.0
GATEWAY=y.y.y.y
DNS1=y.y.y.y
DNS2=y.y.y.y
USERCTL=yes
HWADDR='your mac address'
ONBOOT=yes
$ /etc/init.d/networking restart
or
$ /etc/init.d/network restart
Verify by ping or nslookup
訂閱:
張貼留言 (Atom)
check_systemv1.1
check_systemv1.1.bat 可用於電腦資產盤點 @echo off REM 後續命令使用的是:UTF-8編碼 chcp 65001 echo ***Thanks for your cooperation*** echo ***感謝你的合作*** timeout 1...
-
https://serverfault.com/questions/548888/connecting-to-a-remote-server-through-a-vpn-when-the-local-network-subnet-addres/835400#835400 ...
-
Refer http://windows.update.error.code.84b20002.errorfix012.com/ PROBLEM: This error is usually caused by misconfigured system files th...
沒有留言:
張貼留言