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



边栏推荐
- Latex insert picture, insert formula
- Hands on deep learning (34) -- sequence model
- Exercise 8-7 string sorting (20 points)
- 技术管理进阶——如何设计并跟进不同层级同学的绩效
- Exercise 9-1 time conversion (15 points)
- Exercise 9-5 address book sorting (20 points)
- Modules golang
- 对于程序员来说,伤害力度最大的话。。。
- Doris / Clickhouse / Hudi, a phased summary in June
- Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
猜你喜欢

Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2

leetcode1-3

技术管理进阶——如何设计并跟进不同层级同学的绩效

Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}

For programmers, if it hurts the most...

uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前

华为联机对战如何提升玩家匹配成功几率

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

MySQL develops small mall management system

El Table Radio select and hide the select all box
随机推荐
Golang Modules
Exercise 9-1 time conversion (15 points)
7-17 crawling worms (15 points)
Ruby time format conversion strftime MS matching format
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Regular expression (I)
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Hands on deep learning (33) -- style transfer
Exercise 9-3 plane vector addition (15 points)
JDBC and MySQL database
C语言指针面试题——第二弹
A little feeling
用数据告诉你高考最难的省份是哪里!
【OpenCV 例程200篇】218. 多行倾斜文字水印
Golang defer
【Day1】 deep-learning-basics
Hands on deep learning (32) -- fully connected convolutional neural network FCN
原生div具有编辑能力
Servlet基本原理与常见API方法的应用