网卡的配置结构图
为某个网卡添加一个临时IP:
ifconfig ens33:0 192.168.2.99 netmask 255.255.255.0 #子接口
ip addr add 192.168.2.199/24 dev ens33:0
ip addr add 192.168.2.199/24 dev ens33
删除方法:
ip addr delete 192.168.2.199/24 dev ens33
https://www.runoob.com/linux/linux-comm-ifconfig.html
https://www.cnblogs.com/jpfss/p/10917816.html