mirror of
https://gitee.com/callmer/pve_toss_notes.git
synced 2026-09-01 14:32:53 +08:00
更新内网地址规划
This commit is contained in:
+6
-6
@@ -540,8 +540,8 @@ iface ens18 inet static
|
||||
address 172.16.1.2/24
|
||||
gateway 172.16.1.1
|
||||
# dns-* options are implemented by the resolvconf package, if installed
|
||||
dns-nameservers 172.16.1.3
|
||||
dns-search fox.lab
|
||||
dns-nameservers 172.16.1.2
|
||||
dns-search fox.local
|
||||
```
|
||||
|
||||
检查系统的 `hosts` ,执行以下命令:
|
||||
@@ -553,7 +553,7 @@ cat /etc/hosts
|
||||
## 示例输出
|
||||
|
||||
127.0.0.1 localhost
|
||||
172.16.1.2 dns001.fox.lab dns001
|
||||
172.16.1.2 dns001.fox.local dns001
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 localhost ip6-localhost ip6-loopback
|
||||
@@ -571,9 +571,9 @@ sudo vim /etc/resolv.conf
|
||||
在编辑器对话框中输入以下内容,注意命令中间的空格:
|
||||
|
||||
```bash
|
||||
search fox.lab
|
||||
nameserver 172.16.1.3
|
||||
nameserver fc00::3
|
||||
search fox.local
|
||||
nameserver 172.16.1.2
|
||||
nameserver fdac::2
|
||||
nameserver 127.0.0.1
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user