当前位置:网站首页>Rhcsa12
Rhcsa12
2022-07-04 10:18:00 【Attiude】
Homework today :
20211124
1. Inquire about ip In several ways : ip, ifconfig, nmcli,nmtui
2.nmcli Command to use :
a. stay ens160 New connection on network card static_con, And configure static ip
b. stay ens160 New connection on network card auto_con, Configuration dynamics ip
[[email protected] ~]# nmcli c add type ethernet con-name auto_con ifname ens160 ipv4.dns 8.8.8.8 ipv4.method auto
[[email protected] ~]# nmcli c add type ethernet con-name static_con ifname ens160 ipv4.addresses 192.168.116.100/24 ipv4.gateway 192.168.116.2 ipv4.dns 8.8.8.8 ipv4.method manual
c. modify static_con Of ip The way : nmtui,nmcli c modify, nmcli c edit, Modify the configuration file
nmcli c modify
[[email protected] ~]# nmcli c modify static_con ipv4.addresses '192.168.116.101/24'
nmcli c edit( Interactive mode )
[[email protected] ~]# nmcli c edit
Enter connection type : ethernet
nmcli> goto ipv4.addresses
nmcli ipv4.addresses> change
edit "addresses" value : 192.168.116.200/24
back
nmcli ipv4> save
quit
[[email protected] ~]# cat /etc/sysconfig/network-scripts/ifcfg-static_con
d. Activate static_con The way : up, reapply, reload, load
[[email protected] ~]# nmcli c reload
[[email protected] ~]# nmcli d reapply ens160
[[email protected] ~]# nmcli c load static_con
[[email protected] ~]# nmcli c up static_con
e. Delete auto_con
f. Add a network card , And check the device status , h: If it is connected, disconnect
h: If it is connected, disconnect
i: Set the disconnected network card status to connected
边栏推荐
- PHP code audit 3 - system reload vulnerability
- Does any teacher know how to inherit richsourcefunction custom reading Mysql to do increment?
- Hands on deep learning (40) -- short and long term memory network (LSTM)
- Application of safety monitoring in zhizhilu Denggan reservoir area
- Hands on deep learning (39) -- gating cycle unit Gru
- How can people not love the amazing design of XXL job
- Machine learning -- neural network (IV): BP neural network
- Histogram equalization
- Service developers publish services based on EDAs
- Hands on deep learning (36) -- language model and data set
猜你喜欢
Intelligent gateway helps improve industrial data acquisition and utilization
Summary of reasons for web side automation test failure
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
Summary of small program performance optimization practice
Hands on deep learning (40) -- short and long term memory network (LSTM)
Number of relationship models
MongoDB数据日期显示相差8小时 原因和解决方案
Doris / Clickhouse / Hudi, a phased summary in June
Machine learning -- neural network (IV): BP neural network
xxl-job惊艳的设计,怎能叫人不爱
随机推荐
How to teach yourself to learn programming
Service developers publish services based on EDAs
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Whether a person is reliable or not, closed loop is very important
MySQL case
system design
Kotlin set operation summary
Dynamic address book
Hands on deep learning (45) -- bundle search
按键精灵跑商学习-商品数量、价格提醒、判断背包
Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)
2021-08-10 character pointer
Write a mobile date selector component by yourself
Histogram equalization
Normal vector point cloud rotation
Dynamic memory management
Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
Machine learning -- neural network (IV): BP neural network
Hands on deep learning (39) -- gating cycle unit Gru
[200 opencv routines] 218 Multi line italic text watermark