命令行 置顶 | 发表于 2018-12-10 | 分类于 服务器骚操作 记录用到的又记不住的bash命令 网络相关网络管理工具 iproute (用来替代net-tools) ip 命令 安装 12345# centos 下安装$ yum install iproute# mac下安装$ brew install iproute2mac 使用 1234567891011121314# 版本信息ip -V# 查看IP信息$ ip addr/address# 查看详细IP信息$ ip -s addr# 查看网卡信息$ ip link / ip link show# 网卡详细信息$ ip -s link / ip -s link show enp4s0 ifconfig 安装(centos) 1$ yum install net-tools 使用 1$ ifconfig 网络管理工具12