Article title: configure the network (imperative) in Linux ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
[Root @ localhost ~] # Vi/etc/sysconfig/network-scripts/ifcfg-eth0
[Root @ localhost ~] # Cat/etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek semiconduco., Ltd. RTL-8139/8139C/8139C +
DEVICE = eth0
BOOTPROTO = none
HWADDR = 00: 19: 21: 12: F3: 4E
ONBOOT = yes
NETMASK = 255.255.255.0
IPADDR = 192.168.1.188
GATEWAY = 192.168.1.254
TYPE = Ethernet
USERCTL = no
IPV6INIT = no
PEERDNS = yes
[Root @ localhost ~] #
# Cat ifcfg-eth0 [root @ localhost network-scripts] #
# Realtek semiconduco., Ltd. RTL-8139/8139C/8139C +
DEVICE = eth0
BOOTPROTO = none
BROADCAST = 192.168.1.255
HWADDR = 00: 19: 21: 12: F3: 4E
IPADDR = 192.168.1.188
NETMASK = 255.255.255.0
NETWORK = 192.168.1.0
ONBOOT = yes
GATEWAY = 192.168.1.254
TYPE = Ethernet
[Root @ localhost network-scripts] # vi ifcfg-eth0