https://devpress.csdn.net/linux/62ed052f89d9027116a11c55.html
https://zhuanlan.zhihu.com/p/690282219 (ifconfig查询结果)
设置
-
为网卡分配ip和子网掩码
ifconfig mvlan0 192.168.1.2 netmask 255.255.255.0 up
-
shell里获取本机ip地址
https://developer.aliyun.com/article/907025 -
查看网卡mac地址
https://www.yisu.com/zixun/677731.html/sbin/ifconfig | grep HWaddr 或 /sbin/ifconfig | grep ether
0 条评论