Linux(Centos 7.6)网卡信息没有了题目处置惩罚

[复制链接]
发表于 2025-11-17 16:46:26 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
1.题目征象

捏造机打开后,利用ifconfig检察IP信息,捏造机默认的网卡名称是ens33,ifconfig没有看到干系题目,长途毗连工具Xshell也不能正常访问该捏造机。
  1. [root@node1 ~]# ifconfig
  2. lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
  3.         inet 127.0.0.1  netmask 255.0.0.0
  4.         inet6 ::1  prefixlen 128  scopeid 0x10<host>
  5.         loop  txqueuelen 1000  (Local Loopback)
  6.         RX packets 0  bytes 0 (0.0 B)
  7.         RX errors 0  dropped 0  overruns 0  frame 0
  8.         TX packets 0  bytes 0 (0.0 B)
  9.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  10. virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
  11.         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
  12.         ether 52:54:00:47:f9:45  txqueuelen 1000  (Ethernet)
  13.         RX packets 0  bytes 0 (0.0 B)
  14.         RX errors 0  dropped 0  overruns 0  frame 0
  15.         TX packets 0  bytes 0 (0.0 B)
  16.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
复制代码
2.办理方法

重启网络干系服务。
  1. [root@node1 ~]# systemctl restart NetworkManager
  2. [root@node1 ~]# systemctl restart network.service
复制代码
重启网络干系服务后ifconfig检察网络信息如下,可以正常毗连。
  1. [root@node1 ~]# ifconfig
  2. ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
  3.         inet 192.168.118.128  netmask 255.255.255.0  broadcast 192.168.100.255
  4.         inet6 fe80::20c:29ff:feda:ad2d  prefixlen 64  scopeid 0x20<link>
  5.         ether 00:0c:29:da:ad:2d  txqueuelen 1000  (Ethernet)
  6.         RX packets 10  bytes 1112 (1.0 KiB)
  7.         RX errors 0  dropped 0  overruns 0  frame 0
  8.         TX packets 19  bytes 3529 (3.4 KiB)
  9.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  10. lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
  11.         inet 127.0.0.1  netmask 255.0.0.0
  12.         inet6 ::1  prefixlen 128  scopeid 0x10<host>
  13.         loop  txqueuelen 1000  (Local Loopback)
  14.         RX packets 0  bytes 0 (0.0 B)
  15.         RX errors 0  dropped 0  overruns 0  frame 0
  16.         TX packets 0  bytes 0 (0.0 B)
  17.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  18. virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
  19.         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
  20.         ether 52:54:00:47:f9:45  txqueuelen 1000  (Ethernet)
  21.         RX packets 0  bytes 0 (0.0 B)
  22.         RX errors 0  dropped 0  overruns 0  frame 0
  23.         TX packets 0  bytes 0 (0.0 B)
  24.         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  25. [root@node1 ~]#
复制代码
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表