ifconfig是Linux用来显示和设置网络的命令。
常用如下所示:
查看信息
1.ifconfig 显示处在激活状态的网络
2.ifconfig -a 显示所有的网络接口
3.ifconfig -eth0 显示指定的eth0网络接口信息
网络状态设置
1. ifconfig eth0 up 打开指定的eth0网口
2. ifconfig eth0 down 关闭制定的eth0网口
ifconfig是Linux用来显示和设置网络的命令。
常用如下所示:
查看信息
1.ifconfig 显示处在激活状态的网络
2.ifconfig -a 显示所有的网络接口
3.ifconfig -eth0 显示指定的eth0网络接口信息
网络状态设置
1. ifconfig eth0 up 打开指定的eth0网口
2. ifconfig eth0 down 关闭制定的eth0网口