Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Resolve the problem that ifconfig and addr cannot view ip in Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Install the Linux system on the virtual machine, turn on the virtual machine, enter root, and enter the password to start

two。 Open the virtual machine settings and select custom VMnet8 (NAT mode) for the network connection in the network adapter

3. Enter the command to view ip, ifconfig, or ip addr

4. If ip cannot be found, check the configuration of the ens33 Nic and enter vi / etc/sysconfig/network-scripts/ifcfg-ens33 (vi followed by a space)

Change the permission of ONBOOT to yes

5. Press Esc to exit, then enter: wq, then press Enter

6. Restart the network service and enter sudo service network restart

7. Enter ifconfig (or ip addr) to view the ip

Summary

The above is introduced by the editor to solve the problem that ifconfig and addr can not see ip in Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report