shijingjing07

ifconfig命令详解

1.ifconfig的作用
显示网卡信息,配置网络接口(激活,关闭,设置IP地址)
2.使用示例

参数说明:
eth0: 第一块以太网卡
eth1:第二块以太网卡
lo:环回接口,IP地址固定为127.0.0.1

inet:IP地址
netmask:子网掩码
broadcast:广播地址
ether:物理地址
RX/TX packets:接收/传输包个数
RX/TX bytes:接收/传输包字节数
3.激活网卡
ifconfig eth0 up
4.关闭网卡
ifconfig eth0 down
5.设置IP地址
ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0
ifconfig eth0:1 192.168.1.2 netmask 255.255.255.0

分类:

技术点:

相关文章:

  • 2021-12-15
  • 2021-10-24
  • 2021-06-29
  • 2021-12-02
  • 2022-12-23
  • 2022-01-07
  • 2021-11-08
猜你喜欢
  • 2021-11-29
  • 2021-12-27
  • 2021-10-21
  • 2021-12-27
  • 2022-01-02
  • 2021-08-24
相关资源
相似解决方案