linux网络管理-ip

实例:

查看IP地址

ip a

ip addr

ip address

 

 

 显示服务器的网络接口信息

ip addr show

 

为网络接口添加一个IP地址

ip addr add  192.168.10.10/8 dev eno16777736

 

 我们在这里用ip addr show查看,红色标记可以看出,已经加上了。

ssh 192.168.98.1 (并没有连接成功)

最后一条,网卡的禁用与激活

禁用eno16777736网卡接口

ip link set eno16777736 down

激活eno16777736网卡接口

ip link set eno16777736 up

 

posted @ 2019-10-08 20:09  zcy1234  阅读(129)  评论(0编辑  收藏  举报