In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Configure the file ifcfg-eth0 file path required by the network: / eth/sysconfig/network-scripts/ifcfg-eth0
Ifcfg-eth0 file configuration resolution:
TYPE=Ethernet DEVICE=eth0 BOOTPROTO=none ONBOOT=yes IPADDR=192.168.16.12 NETMASK=255.255.255.0 GATEWAY=192.168.16.1 BROADCAST=192.168.16.255HWADDR=00:0C:29:13:5D:74 PEERDNS=yes DNS1=10.0.1.41 USERCTL=no NM_CONTROLLED=no IPV6INIT=yes IPV6ADDR=FD55:fe80::28c2:e745:835f:c8d0/64
Attached. Configuration parameter description
Note: these parameter values are not case-sensitive, do not distinguish between single and double quotation marks, and can even be used without quotation marks.
TYPE: profile interface type. There are a variety of network configuration files in the / etc/sysconfig/network-scripts/ directory, including Ethernet, IPsec and other types, and the network interface type is Ethernet.
DEVICE: network interface name
BOOTPROTO: system Boot address Protocol
None: do not use startup address protocol
Bootp:BOOTP protocol
Dhcp:DHCP dynamic address Protocol
Static: static address protocol
ONBOOT: whether the system is activated at startup
Yes: activate this network interface when the system starts up
No: this network interface is not activated when the system starts up
IPADDR:IP address
NETMASK: subnet mask
GATEWAY: gateway addr
BROADCAST: broadcast addr
Configuration takes effect
In order to make the network configuration permanent, the network interface configuration file under / etc/sysconfig/network-scripts/ is modified in the second part. However, these documents cannot take effect immediately after they have been modified. There are two ways to make the network configuration of the modified file take effect:
1) execute the service network restart command to restart the network service (recommended)
# service network restart
2) restart the computer
# reboot
These are the details of how linux sets up ip. For more information, please follow other related articles!
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.