dell 服务器 安装系统
cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
uname -r
3.10.0-1160.el7.x86_64
固定IP地址
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope host valid_lft forever preferred_lft forever
2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 4c:d7:17:a1:30:40 brd ff:ff:ff:ff:ff:ffinet 192.168.99.105/24 brd 192.168.99.255 scope global noprefixroute dynamic enp0s31f6valid_lft 17216sec preferred_lft 17216secinet6 fe80::3111:4a78:7f0a:42da/64 scope link noprefixroute valid_lft forever preferred_lft forever
设置静态IP地址
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
NAME="enp0s31f6"
UUID="9d4ee916-e293-4088-bdf7-424f873da537"
DEVICE="enp0s31f6"
ONBOOT="yes"
IPADDR="192.168.99.113"
PREFIX="24"
GATEWAY="192.168.99.1"
DNS1="192.168.99.1"
DNS2="8.8.8.8"
IPV6_PRIVACY="no"
sudo systemctl restart network
如何生成一个新的UUID