使用新买的联想thinkserver,安装Ubuntu 18.04.3 server版,在清华校园网中使用。
版本信息如下
代码: 全选
jmi@JMIServer2019:/etc/netplan$ uname -a
Linux JMIServer2019 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
然后按照网上资料修改成了静态ip,/etc/netplan/下的文件如下
代码: 全选
jmi@JMIServer2019:/etc/netplan$ cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
eno1:
addresses: [166.111.185.11/25]
gateway4: 166.111.185.1
dhcp4: no
dhcp6: no
nameservers:
addresses: [166.111.8.28, 166.111.8.29]
optional: true
version: 2
代码: 全选
jmi@JMIServer2019:/etc/netplan$ ping 166.111.8.28
PING 166.111.8.28 (166.111.8.28) 56(84) bytes of data.
^C
--- 166.111.8.28 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3049ms