当前位置:网站首页>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



边栏推荐
- 转载:等比数列的求和公式,及其推导过程
- SQL replying to comments
- Kotlin: collection use
- 有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
- Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
- xxl-job惊艳的设计,怎能叫人不爱
- 7-17 crawling worms (15 points)
- uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
- Golang Modules
- What is devsecops? Definitions, processes, frameworks and best practices for 2022
猜你喜欢

PHP代码审计3—系统重装漏洞

Pcl:: fromrosmsg alarm failed to find match for field 'intensity'

【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法

Introduction to extensible system architecture

The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded

Three schemes of ZK double machine room

Mmclassification annotation file generation

How can people not love the amazing design of XXL job

Hands on deep learning (38) -- realize RNN from scratch

Normal vector point cloud rotation
随机推荐
[FAQ] summary of common causes and solutions of Huawei account service error 907135701
Kotlin set operation summary
Exercise 8-7 string sorting (20 points)
Write a mobile date selector component by yourself
libmysqlclient. so. 20: cannot open shared object file: No such file or directory
Deep learning 500 questions
Reprint: summation formula of proportional series and its derivation process
How can Huawei online match improve the success rate of player matching
智能网关助力提高工业数据采集和利用
用数据告诉你高考最难的省份是哪里!
Summary of small program performance optimization practice
2021-08-10 character pointer
Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
MySQL case
Lavel document reading notes -how to use @auth and @guest directives in lavel
对于程序员来说,伤害力度最大的话。。。
Exercise 9-5 address book sorting (20 points)
2. Data type
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
uniapp---初步使用websocket(长链接实现)