适用于Debian 系Linux 发行版本
ifconfig – 显示网络信息,包括IP地址、数据包接收/发送情况
iwconfig – 显示无线网络信息
sudo /etc/init.d/networking restart – 重启网络
/etc/network/interfaces – 手动配置网络文件
ifup interface – 启用网络接口
ifdown interface – 禁用网络接口
iwlist scan- 显示区域内无线网络情况
lshw -C network – 显示网卡和网络设备驱动信息(需以管理员权限运行)
lspci -nn – Shows PCI vendor and device codes as both numbers and names of hardware connected to the pci bus
lsusb – Shows USB connected hardware
lshw -C usb – Additional info on USB related hardware (good for USB dongles)
route -n – 列举内核 IP 路由表,可用网关来解决相关问题
sudo dhclient – 从DHCP 服务器上获取IP地址
sudo dhclient -r – 从指定的网络接口获取IP 地址
/etc/udev/rules.d/70-persistent-net.rules – (File) 主管映射logical names (eth0, wlan0, etc) 到 MAC 地址
cat /etc/resolv.conf – 查看DNS 服务器
常用的Linux 网络命令
转载
常用的Linux 网络命令
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux常用的网络命令
网络参数设置命令 所有时刻如果你想要做好自己的网络参数设置,包括IP参数、路由参数和无线网络等,就得要了解下面这些相关的络接口。 ? Rou...
liunx 常用网络命令 IP 网络接口 数据 -
Linux中常用的网络命令
网络命令
Linux 网络命令 -
linux常用的网络命令实战分享
在实际研发运维工作中常常会涉及到网关相关的操作和知识,这里对linux下常用的网关配置相关命令进行总结分享。一般会用到如下命令。
linux 网络 ip addr ifconfig route -
Linux常用命令:网络命令
本文简要介绍Linux网络配置命令,包括 ip
linux 网卡信息 mac地址 网络接口 linux网络 -
Linux常用网络命令整理php unix 连线 mysql 网络接口