1. Linux network management
1、ifconfig
Set the ip address and subnet mask of the network interface:
ifconfig 网络接口 ip地址 【netmask 子网掩码】
ifconfig 网络接口 ip地址 【/子网掩码长度】
[rootalocalhost ~]# ifconfig ens37 192.168.137.11/24
When no subnet mask is specified, the default subnet mask of the category where the ip address belongs to will be used.
Disable or reactivate the network card:
ifconfig 网络接口 up(开启)
ifconfig 网络接口 down(关闭)