|
|
发表于 2022-7-3 04:08:19
|
显示全部楼层
本帖最后由 hjvn2211445 于 2022-7-3 04:11 编辑
如果你的系统的ubuntu 18以上的,可能通过netplan 配置网络,楼上说的方法就不可用了
需要面板进VNC修改这个地方的配置文件
- nano /etc/netplan/01-netcfg.yaml
复制代码
例如你的ip为149.57.99.99,网关一般为同C段的149.57.99.1(面板给的网关可能不正确)
- # This file describes the network interfaces available on your system
- # For more information, see netplan(5).
- network:
- version: 2
- renderer: networkd
- ethernets:
- ens3:
- addresses: [ 149.57.99.99/24 ]
- gateway4: 149.57.99.1
- nameservers:
- search: [ colocrossing.com ]
- addresses:
- - "8.8.8.8"
复制代码
修改后执行netplan apply即可生效
使用ip a或者ifconfig查看网卡
。 |
|