ghbuff

查看网络接口信息

ifconfig						//用于查看网络接口信息
/sbin/ifconfig					//查看所有活动网络接口信息
/sbin/ifconfig -a				///查看所有网络接口(包括非活动网络接口)的信息
/sbin/ifconfig etho				//查看指定网络接口信息

网络配置

进去目录/etc/network/目录

用vi编辑器打开interface文件

auto eth0
interface eth0 inet static			//采取静态IP地址
address xxxxxx						//静态IP地址
network xxxxxx						//子网掩码
gateway xxxxxxx						//网关

重启服务

/etc/init.d/networking restart

分类:

技术点:

相关文章:

  • 2021-07-11
  • 2021-07-13
  • 2021-10-06
  • 2021-12-30
  • 2021-11-19
  • 2022-01-23
  • 2022-01-01
  • 2021-05-29
猜你喜欢
  • 2021-12-14
  • 2022-01-20
  • 2021-09-27
  • 2021-09-16
  • 2021-08-29
  • 2021-05-17
  • 2021-12-16
相关资源
相似解决方案