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 > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to change the IP address in the graphical interface under the Linux system". In the daily operation, I believe that many people have doubts about how to change the IP address in the graphical interface under the Linux system. The editor consulted all kinds of materials and sorted out a simple and easy-to-use method of operation. I hope it will be helpful to answer the doubt of "how to change the IP address in the graphical interface under the Linux system". Next, please follow the editor to study!
1. Open the command mode of the terminal:
Click application in the upper left corner, then click the System Tools drop-down menu, and then click its expanded drop-down menu Terminal, which opens a command mode.
two。 Find the full path to the command module you want to use to resolve the "command not found" problem:
Enter: which netconfig in command mode
[root@localhost ~] # which netconfig
See if the result returned is the following information:
/ usr/sbin/netconfig
If you have returned results, you can continue to use two commands: "which ifconfig" and "which route" to see where the path of the ifconfig and route commands is. We used to use the returned results as / sbin/ifconfig and / sbin/route as examples.
3. Enter the command in command mode: / usr/sbin/netconfig
A window of ip settings will be displayed, which can be set using the keyboard. After entering the ip address, subnet mask (netmask) and gateway, select OK!
4. After setting up, type / sbin/ifconfig to see if the setting is successful. If it succeeds, you can see it in the results displayed:
Eth0 Link encap:Ethernet HWaddr 00:18:FE:28:1C:AA
Inet addr: "ip address" Bcast: broadcast address Mask: subnet mask
Inet6 addr: fe80::218:feff:fe28:1caa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3579820 errors:0 dropped:0 overruns:0 frame:0
TX packets:4311575 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:1000
RX bytes:316306869 (301.6 MiB) TX bytes:1919419606 (1.7 GiB)
Interrupt:169
Lo Link encap:Local Loopback
Inet addr:127.0.0.1 Mask:255.0.0.0
Inet6 addr: 1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:393012073 errors:0 dropped:0 overruns:0 frame:0
TX packets:393012073 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0 txqueuelen:0
RX bytes:1274688659 (1.1 GiB) TX bytes:1274688659 (1.1 GiB)
If the corresponding ip address and subnet mask are set up, it will prove no problem!
5. If it still doesn't work, use method two:
Still, open the terminal command mode first, and then enter: "/ sbin/ifconfig eth2 220.195.193.86 (ip address) netmask 255.255.255.240 (subnet mask)"
Then enter the second command: "/ sbin/route add default gw 211.91.88.129 (gateway)"
Note: / sbin/ifconfig the path here is entirely the result returned by using which ifconfig
6. Test whether you can access the Internet: enter the command ping 202.108.22.5 to see if any data is returned.
Add:
Method 1: command
The network card IP address information of An and linux is stored in the file.
In vi / etc/sysconfig/network-scripts/ifcfg-eth0
Edit the file as follows:
DEVICE=eth0 / / indicate the device name
BOOTPROTO=static / / Startup type dhcp | static
BROADCAST=192.168.1.255 / / broadcast address
HWADDR=00:06:5B:FE:DF:7C / / hardware Mac address
IPADDR=192.168.0.2 / / IP address
NETMASK=255.255.255.0 / / subnet mask
NETWORK=192.168.0.0 / / Network address
GATEWAY=192.168.0.1 / / Gateway address
ONBOOT=yes / / whether to start the application
TYPE=Ethernet / / Network Typ
B. Modify the hostname command as follows:
Vi / etc/sysconfig/network
Method 2: graphical interface
/ / manually modify the iP address (get static IP)
At this point, the study on "how to change the IP address of the graphical interface under the Linux system" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical 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.