In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to configure network IP in RHEL7.0". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Modify the file directly
[root@rhel7] # ifconfig-a
Ens33: flags=4163 mtu 1500
Inet 192.168.32.129 netmask 255.255.255.0 broadcast 192.168.32.255
Inet6 fe80::d378:75a6:dfff:c29d prefixlen 64 scopeid 0x20
Ether 00:0c:29:e7:63:ed txqueuelen 1000 (Ethernet)
RX packets 70 bytes 7829 (7.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 292 bytes 34725 (33.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@rhel7 ~] # cd / etc/sysconfig/network-scripts/
[root@rhel7 network-scripts] # ls-l
Total 232
-rw-r--r--. 1 root root 352 Jun 15 22:06 ifcfg-ens33
[root@rhel7 network-scripts] # more ifcfg-ens33
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=581cd9ce-ff00-4662-898e-0d3efefaaa9a
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.32.129
PREFIX=24
GATEWAY=192.168.32.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
two。 Graphical interface
Change the graphical interface of nmtui or nm-connection-editor
[root@rhel7 network-scripts] # nmtui
[root@rhel7 network-scripts] # nm-connection-editor
[root@rhel7 network-scripts] # service network restart
Restarting network (via systemctl): [OK]
This is the end of the content of "how to configure Network IP in RHEL7.0". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for 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.
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.