joshua317

1 查看网卡配置文件

cat /etc/sysconfig/network-scripts/ifcfg-eth0

注意1:如果网卡配置是动态获取的,通过这种方式可能看不到;

注意2:在查看配置网络之前我们先要知道centos的网卡名称是什么,centos7不再使用ifconfig命令,可通过命令ip addr 查看,如图,网卡名为eth0

 

 

 

2 通过ip命令

 ip route show

 

 

 

3 通过route命令

route -n

 

 

 

4 通过netstat命令

netstat -rn

 

 

 

 

分类:

技术点:

相关文章:

  • 2021-12-08
  • 2021-11-30
  • 2022-01-11
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2021-11-23
  • 2021-04-19
  • 2022-02-07
  • 2021-11-23
  • 2021-12-10
相关资源
相似解决方案