Change IP address in Linux graphic interface mode

Source: Internet
Author: User
In Linux graphical interface mode, change the IP address-Linux Enterprise Application-Linux server application information. For more information, see the following section. 1. Open the command mode of the terminal:
Click application in the upper left corner, click the System Tools drop-down menu, and then click Terminal in the expanded drop-down menu to open a command mode.

2. Find the full path of the command module to be used to solve the "command not found" problem:

In command mode, enter: which netconfig
[Root @ localhost ~] # Which netconfig

Check whether the returned results contain the following information:
/Usr/sbin/netconfig

If any result is returned, you can continue to use two Commands: "which ifconfig" and "which route" to view the path of the ifconfig and route commands, in the past, we used/sbin/ifconfig and/sbin/route as examples;

3. In command mode, enter the command:/usr/sbin/netconfig
In this case, an IP settings window is displayed. You can set it on the keyboard. Enter the IP address, subnet mask (netmask), and gateway, and select OK!

4. After setting, enter/sbin/ifconfig to check whether the setting is successful. If it succeeds, you can see the following in the displayed result:

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 FIG: 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, the problem will be solved!

5. If the problem persists, use Method 2:

Open the terminal command mode and enter: "/sbin/ifconfig eth1 220.195.193.86 (IP address) netmask mask 255.255.255.240 (subnet mask )"

Then enter the second command: "/sbin/route add default gw 211.91.88.129 (GATEWAY )"

Note: The Path in/sbin/ifconfig is the result returned by which ifconfig;

6. test whether the Internet can be accessed: Enter the command ping 202.108.22.5 to check whether any data is returned.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.