Linux rookie starter Linux network management

Source: Internet
Author: User



Manage your network

1.IP Basic Knowledge

Ipv4/ipv6

32 Guests

172.25.0.10/255.255.255.0

2. Configure IP

<< Graphics >>

1. Graphical interface

Nm-connection-editor

2. Text Graphics

Nmtui

ifconfig tools to view or temporarily set host IP

Ifconfig Network Interface view IP on this interface

ifconfig Network interface IP netmask Subnet mask temporarily set IP

Ifconfig eth0 172.25.254.100 netmask 255.255.255.0

systemctl Restart Network Restart Network basic services

systemctl Restart NetworkManager Network Intelligent Management Service


<< commands >>

Ifconfig network card IP netmask temporary settings

NMCLI:

System Ststus NetWork

Connection Add type Ethernet con-name WESTOS ifname eth0 AutoConnect Yes

NMCLI Connection Add type Ethernet con-name WESTOS ifname IP4 ip/24

NMCLI Connection Add Delete Westos

NMCLI Connection Show

NMCLI Connection down Westos

NMCLI Connection up Westos

NMCLI Connection Modify Westos ipv4.addresses newip/24

NMCLI Connection Modify Westos Ipv4.method <auto|manual>

NMCLI Device Connect

NMCLI Device Disconnect

NMCLI Device Show

NMCLI Device status

<< Files >>

DHCP Dynamic acquisition

Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Bootproto=dhcp

Onboot=yes

Name=eth0

: Wq

Systemctl Restart Network

Static|none Static Network

Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Bootproto=static|none

Onboot=yes

IPADDR (x) =172.25.0.100

netnask=172.25.0.100 | PREFIS0=24 Subnet Mask

Name=eth0

: Wq

Systemctl Restart Network

If you want to set multiple IPs in x position


This article from the "12147236" blog, reproduced please contact the author!

Linux rookie starter Linux network management

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.