openmediavault设置静态ip

[复制链接]  1184查看
易西 发表于 2024-9-16 12:13:12 | 显示全部楼层 |阅读模式
openmediavault设置静态ip
https://www.jianshu.com/p/1b79da5633a5
参考

cherish_1217
IP属地: 上海
2021.01.12 16:19:41
字数 113
阅读 10,151
1.输入ifconfig查看网络接口名称,我的网络接口名称为enp3s0

2.修改配置文件/etc/network/interfaces
auto enp3s0

iface enp3s0 inet static      #static为静态,dhcp为动态获取

address  192.167.70.100     # ip地址

netmask  255.255.255.0      #子网掩码

gateway   172.20.2.254        #网关

3.修改配置文件/etc/resolv.conf

nameserver 192.167.70.254   #DNS服务器

nameserver 114.114.114.114

nameserver 8.8.8.8

4.reboot重启一下系统生效

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

邮箱|首页|小黑屋|吾侪 ( 蜀ICP备2020029307号-4 )

GMT+8, 2026-6-21 17:52 , Processed in 0.058999 second(s), 26 queries .

Powered by Discuz! X3.5

Copyright © , 吾侪网

快速回复 返回顶部 返回列表