CentOS7如何添加本地回环地址?
时间:2023-06-01 22:13:33
1、临时添加
ip addr add 10.10.1.1/32 dev lo:1
重启失效
2、永久添加
cd /etc/sysconfig/network-scripts
cp ifcfg-lo ifcfg-lo:1
[root@localhost network-scripts]# cat ifcfg-lo:1
DEVICE=lo:1
IPADDR=10.10.1.1
NETMASK=255.255.255.255
ONBOOT=yes
NAME=loopback1
[root@localhost network-scripts]# ip addr
1: lo:
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet 10.10.1.1/32 brd 10.10.1.1 scope global lo:1
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
[root@localhost network-scripts]# ping -c1 10.10.1.1
PING 10.10.1.1 (10.10.1.1) 56(84) bytes of data.
64 bytes from 10.10.1.1: icmp_seq=1 ttl=64 time=0.045 ms
标签:CentOS7,添加本地回环地址
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
SUMIFS多字段多条件求和
2023-01-06 05:11:29
![](https://img.aspxhome.com/file/2023/7/a142267_0s.png)
abbyy finereader如何提高识别正确率?abbyy finereader提高识别正确率的方法步骤
2022-03-07 05:34:57
![](https://img.aspxhome.com/file/2023/8/a332880_0s.jpg)
Excel如何将数字转换为文本格式
2022-12-10 00:20:37
![](https://img.aspxhome.com/file/2023/2/a161692_0s.jpg)
如何用excel打印的教程
2022-04-15 20:08:46
word2013如何画直线
2022-05-29 19:51:05
快递100如何寄快递?快递100寄快递的方法
2023-05-05 04:45:35
![](https://img.aspxhome.com/file/2023/8/a332776_0s.jpg)
WPS学会使用制表符排版
2023-05-18 12:05:07
![](https://img.aspxhome.com/file/2023/5/a164285_0s.png)
Win10系统玩dnf出现非法模块解决方法
2022-12-24 15:09:21
![](https://img.aspxhome.com/file/2023/28/a244794_0s.jpg)
excel如何修改文本格式的日期?
2023-05-08 07:56:38
![](https://img.aspxhome.com/file/2023/1/41171_0s.jpg)
Excel折线图如何添加垂直线
2022-06-13 13:51:50
![](https://img.aspxhome.com/file/2023/0/37160_0s.png)
Win7/Win8系统IE浏览器下载文件没反应的7种解决方法
2022-02-28 05:08:07
![](https://img.aspxhome.com/file/2023/28/a245661_0s.jpg)
WPS中Excel中对包含文字的数字求和的操作步骤
2022-05-14 22:55:21
![](https://img.aspxhome.com/file/2023/6/a153476_0s.png)
哪里下载最新Win11 22H2?最新Win11 22H2下载地址
2023-11-05 03:40:52
![](https://img.aspxhome.com/file/2023/27/a234804_0s.jpg)
dwg格式如何打开详细图文教程
2022-08-06 05:15:48
![](https://img.aspxhome.com/file/2023/1/a277095_0s.png)
Win11更新太慢怎么办?Win11更新缓慢解决方法
2022-11-14 23:46:46
![](https://img.aspxhome.com/file/2023/27/a236658_0s.png)
请慎用Windows10系统PIN码登录功能!
2023-04-16 11:46:12
![](https://img.aspxhome.com/file/2023/28/a250504_0s.jpg)
WPS查找对话框不必关闭,可以应用在多个工作表中
2022-07-31 22:58:15
![](https://img.aspxhome.com/file/2023/8/a185428_0s.jpg)
Win10资源管理器删除不了文件怎么办?
2023-11-21 12:26:07
![](https://img.aspxhome.com/file/2023/3/50353_0s.jpg)
WPS表格怎么输入0开头数字
2023-07-13 16:34:06
Win10系统如何设置默认浏览器?
2023-12-23 01:29:12
![](https://img.aspxhome.com/file/2023/5/a315673_0s.jpg)