Nic configurations are divided into two types:
Dynamic: the memory is reserved for the moment.
Ifconfig eth0 192.168.0.x/24
Static -- exists after startup.
CD/etc/sysconfig/network-scripts/
Cat ifcfg-eth0 (display text)
Vim ESC +. (quick, use the parameters of the previous command)
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/24/wKiom1PfSw3TLm9ZAAC2jN9J6h0859.jpg "Title =" 1.png" alt = "wkiom1pfsw3tlm9zaac2jn9j6h0859.jpg"/>
Onboot = Yes (Automatic Operation)
Bootproto = DHCP (automatically assigned)
Replace this command:
Bootproto = static
Ipaddr = 192.168.x.x
Netmask = 255.255.255.0
Common commands:
Service Network restart (restart system network service) -- this method is recommended for remote control.
Ifconfig eth0 down = ifdown eth0 (disable Nic) -- remote unavailability, directly disconnected.
Ifconfig eth0 up = IFUP eth0 (Enabled)