NetworkManager Command Configuration nmcli Note

Source: Internet
Author: User

1, when using NMCLI connection modify to modify the connection, the input format of ipv4.addresses is "Ip/mask space gateway", for example 172.16.1.100/16 172.16.1.1, multiple address is separated by commas "," or the GW parameter cannot be configured correctly.

2. Connection ID refers to name in connection show display, which is consistent with con-name meaning.

3, add static route information to an interface, new file/etc/sysconfig/network-scripts/route-interface, such as Route-eth0, the route format is:

Ip/mask via IP [Dev interface] such as: 192.168.1.0/24 via 192.168.1.1 Dev eth0

Default route: Ip/mask is replaced with default

4, hostname 3 medium: Static,pretty and transient, available hostnamectl status View, Hostnamectl set-hostname[option], options:-pretty,-- Static, and--transient set the corresponding hostname, otherwise, 3 hostname are set to the same.

5,/etc/network is the default setting, if the interface is not specified, the value is specified for this file.

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.