RHCE7 Learning Notes 9--Management System Network

Source: Internet
Author: User

1, the basic concept of the network

Ip/mask/gateway/dns

Network devices (device) and network connection (connection) relationships:

Network equipment is a physical concept, and the network connection is a logical concept, add a physical network card device, you have to add a connection to the network card to work, the name and network connection name can be different;

[[email protected] network-scripts]# nmcli connection NAME UUID TYPE DEVICE Ens33 bccbb325-a79e-4ab1-b928-be7b79029771 802-3-ethernet ens33 ens37 39abe0c3-66cd-45d0-a3c8-66ffdaa09a4d 802-3-eth Ernet ENS37

2, through the graphical Interface Management System network

Use the Setup command to graphically configure the network in RHEL6, and use Nm-connector-editor or Nmtui to edit the network in RHEL7

Nm-connector-editor Graphical Interface:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/4F/wKioL1SuOqWixDxyAACIONMy9G4927.jpg "title=" QQ picture 20150108160308.jpg "alt=" Wkiol1suoqwixdxyaacionmy9g4927.jpg "/>


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/58/52/wKiom1SuOiniZnMHAAF5XaSteME069.jpg "title=" QQ picture 20150108160446.jpg "alt=" Wkiom1suoiniznmhaaf5xasteme069.jpg "/>


Nmtui Graphical Configuration Interface:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/58/4F/wKioL1SuPmCBIBakAACeCW03hYY373.jpg "title=" QQ picture 20150108161928.jpg "alt=" Wkiol1supmcbibakaacecw03hyy373.jpg "/>

The network connection configuration file is placed under the directory:

[Email protected] ~]# cd/etc/sysconfig/network-scripts/

Second, the command line configuration network

To view all network connections:

[[email protected] network-scripts]# nmcli connection NAME UUID TYPE DEVICE Ens33 bccbb325-a79e-4ab1-b928-be7b79029771 802-3-ethernet ens33 ens37 39abe0c3-66cd-45d0-a3c8-66ffdaa09a4d 802-3-eth Ernet ENS37

Add--active option to view the currently active connection


To view a device's connection:

[Email protected] ~]# NMCLI Device status device TYPE state CONNECTION Ens33 Ethernet Connected Ens33 ENS37 Ethernet Connected ens37 lo Loopback unmanaged--


You can use the up or down option to disconnect or turn on the connection

[Email protected] ~]# NMCLI connection Up|^cwn Ens33

To view detailed parameters for a connection:

[[email protected] ~]# nmcli connection show ens33connection.id:                            ens33connection.uuid:                          bccbb325-a79e-4ab1-b928-be7b79029771connection.interface-name:               --connection.type:                         802-3- ethernetconnection.autoconnect:                  yesconnection.timestamp:                    1420706040connection.read-only:                    no


Modify each of the properties of the connection through modify:

[Email protected] ~]# NMCLI connection Modify Ens33 connection.id "Eth1"

To add a network connection for the NIC:

[Email protected] ~]# nmcli connection add con-name my-office ifname ENS33 type Ethernet

Command line configuration network IP is static, you need to configure IP first;

[Email protected] ~]# NMCLI connection Modify Ens33 ipv4.addresses "192.168.10.10/24 192.168.1.1"

To add multiple IP addresses for a network connection:

NMCLI Connection Modify Ens33 +ipv4.addresses "192.168.10.20/24 192.168.10.1"

To reduce the IP address for a network connection:


NMCLI Connection Modify ens33-ipv4.addresses "192.168.10.20/24 192.168.10.1"


This article is from the "Ordinary Road" blog, please be sure to keep this source http://linjohn.blog.51cto.com/1026193/1600794

RHCE7 Learning Notes 9--Management System Network

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.