centos7:
debian12:
普遍在
/etc/NetworkManager/system-connections/Wired\ connection\下的文件
格式:
[connection]
id=Wired connection 1
uuid=050db662-8281-4678-b4e2-6e8fbfff5180
type=ethernet
timestamp=1718802730
[ethernet]
[ipv4]
address1=10.11.11.11/8,10.0.1.2
dns=114.114.114.114;8.8.8.8;
method=manual
[ipv6]
ip6-privacy=2
method=auto
[proxy]
wubantu24:
配置文件路径
/etc/netplan/50-cloud-init.yaml
格式:
network:
version: 2
ethernets:
ens33:
addresses:
- 10.33.0.1/8
routes:
- to: default
via: 10.0.1.2
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4