In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you how to understand the Linux network card configuration file. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
In the Linux system, everything is a file, so the network card is also a file.
Configuration file location: / etc/sysconfig/network-scripts/ifcfg-eth0
\ 1. Name of DEVICE=eth0 network card
\ 2. HWADDR=00:0c:29:90:89:d9 HWADDR HardWare Address hardware address MAC address
\ 3. TYPE=Ethernet network type Ethernet
\ 4. UUID=ae779ae6-044d-43d5-a33b-48c89e8de10e # UUID is unique in the system.
5. ONBOOT=yes BOOT ON? Whether to start the network card when booting or rebooting the network card
\ 6. Whether NM_CONTROLLED=yes is managed by network program
\ 7. How to get the ip address from the BOOTPROTO=none network card? how to get the ip address from the network card?
A. dhcp automatically obtains the ip address
B. none fixed ip address
C. Static fixed ip address
\ 8. IPADDR=10.0.0.100 IPADDR ip address
\ 9. The NETMASK=255.255.255.0 subnet mask determines the maximum number of machines in this LAN.
\ 10. GATEWAY=10.0.0.2 gateway the gate of the whole building
\ 11. Whether ordinary USERCTL=no users can control the network card
\ 12. / etc/resolv.conf configuration DNS Network Card profile DNS takes precedence over / etc/resolv.conf
\ 13. DNS domain name parser Ali's domain name parser: 223.5.5.5 223.6.6
Restart the network card / etc/init.d/network restart
The above is the editor for you to share the Linux network card configuration file how to understand, if there happen to be similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.