linux ip settings

vi /etc/sysconfig/network-scripts/ifcfg-eth0

 

DEVICE=physical device name
IPADDR=IP address
NETMASK=mask value
NETWORK= network address
BROADCAST=broadcast address
GATEWAY=gateway address
ONBOOT=[yes|no] (whether to activate the device at boot)
USERCTL=[yes|no] (non-root Whether the user can control the device)
BOOTPROTO=[none|static|bootp|dhcp] (no protocol used at boot|static allocation|BOOTP protocol| DHCP protocol)
HWADDR = your MAC address

 

template:

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326809421&siteId=291194637