当前位置:网站首页>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
边栏推荐
- leetcode1-3
- Exercise 9-4 finding books (20 points)
- Hands on deep learning (41) -- Deep recurrent neural network (deep RNN)
- Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
- Lavel document reading notes -how to use @auth and @guest directives in lavel
- 六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
- Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
- Ruby时间格式转换strftime毫秒匹配格式
- 对于程序员来说,伤害力度最大的话。。。
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
猜你喜欢
El Table Radio select and hide the select all box
今日睡眠质量记录78分
入职中国平安三周年的一些总结
SQL replying to comments
Qtreeview+ custom model implementation example
leetcode1-3
【Day1】 deep-learning-basics
C language pointer interview question - the second bullet
Introduction to extensible system architecture
libmysqlclient. so. 20: cannot open shared object file: No such file or directory
随机推荐
C语言指针面试题——第二弹
转载:等比数列的求和公式,及其推导过程
Work order management system OTRs
Hands on deep learning (36) -- language model and data set
How can Huawei online match improve the success rate of player matching
Vs201 solution to failure to open source file HPP (or link library file)
【Day2】 convolutional-neural-networks
Hands on deep learning (37) -- cyclic neural network
Go context basic introduction
查看CSDN个人资源下载明细
Exercise 9-4 finding books (20 points)
Ruby时间格式转换strftime毫秒匹配格式
Advanced technology management - how to design and follow up the performance of students at different levels
El Table Radio select and hide the select all box
【Day1】 deep-learning-basics
7-17 crawling worms (15 points)
Hands on deep learning (35) -- text preprocessing (NLP)
[200 opencv routines] 218 Multi line italic text watermark
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
MySQL develops small mall management system