我的戴尔服务器上有最新的 Ubuntu 服务器。这台机器上有 3 个以太网接口,但只有一个在使用中。如何禁用其余的?我问这个问题是因为每次启动时我都会得到正在运行启动作业,等待网络配置消息约 3 分钟...这里有一些IP地址输出:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: enp8s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:10:18:39:b0:22 brd ff:ff:ff:ff:ff:ff
3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:22:19:82:07:d1 brd ff:ff:ff:ff:ff:ff
altname enp1s0
inet 172.30.31.2/24 brd 172.30.31.255 scope global eno1
valid_lft forever preferred_lft forever
4: eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 00:22:19:82:07:d2 brd ff:ff:ff:ff:ff:ff
altname enp2s0