The new linux machine network settings

My situation here is gb1 LAN jack corresponds em1, therefore set the / etc / sysconfig / network-scripts / ifcfg-em1 this profile, different machine to the configuration file may be different, there are / etc / sysconfig / network-scripts / ifcfg-eth0, this file I have this linux machine yard no

This is my side of the configuration, set their own dead static ip, BOOTPROTO had intended to set up static, but do not know why the computer is set to none customer service said there

HWADDR=50:9A:4C:9F:55:A0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.XXX.XXX
PREFIX=24
GATEWAY=192.168.XXX.1
NM_CONTROLLED=no
PEERD=no
DNS1=114.114.114.114
DNS2=8.8.8.8
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=em1
ONBOOT=yes
UUID根据自己的机器来

After setting the Network Service Restart to take effect

Published 20 original articles · won praise 8 · views 50000 +

Guess you like

Origin blog.csdn.net/a26637896/article/details/88020637