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