赞
踩
为了让Linux系统的IP地址在重新启动电脑之后IP地址不进行变更,所以将其IP地址设置为静态IP地址。
- # This is the network config written by 'subiquity'
- network:
- ethernets:
- ens33:
- dhcp4: true
- version: 2
- # This is the network config written by 'subiquity'
- network:
- ethernets:
- ens33:
- dhcp4: false
- addresses: [192.aaa.aaa.100/24] # 静态IP和子网掩码
- gateway4: 192.aaa.aaa.2 # 默认网关
- nameservers:
- addresses: [8.8.8.8, 8.8.4.4] # DNS服务器
- version: 2
sudo netplan apply
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。