第一步:
第二步:修改ONBOOT为yes
cd /etc/sysconfig/network-scripts/ |
第二步:修改ONBOOT为yes
vi ifcfg-eth0 |
2 |
//修改为 yes |
3 |
DEVICE=eth0 |
4 |
HWADDR=00:0C:29:2E:37:F0 |
5 |
TYPE=Ethernet |
6 |
UUID=69cd9740-184f-49b7-857f-e397e57f265b |
7 |
ONBOOT= yes |
8 |
NM_CONTROLLED= yes |
9 |
BOOTPROTO=dhcp |
//重启网络 |
2 |
/etc/init.d/network
restart |
3 |
//查看IP |
4 |
ifconfig |
5 |
//Ping测试 |
6 |
ping yusky.me |