配置ip的多种方法

Posted feirenraoyuan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了配置ip的多种方法相关的知识,希望对你有一定的参考价值。

配置ip的多种方法_linux

网卡的配置结构图

为某个网卡添加一个临时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


配置ip的多种方法_linux_02



https://www.runoob.com/linux/linux-comm-ifconfig.html
https://www.cnblogs.com/jpfss/p/10917816.html

以上是关于配置ip的多种方法的主要内容,如果未能解决你的问题,请参考以下文章