可能是一个简单的答案,但我似乎找不到它。我正在运行一个多宿主 Debian Stable(最新)并且在接口 eth1 上我需要 IPv4 和 IPv6 地址。我的 /etc/network/interfaces 看起来像这样:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
up ip -6 address add 2001:470:28:5b2::1/64 dev $IFACE
Run Code Online (Sandbox Code Playgroud)
问题是接口只被分配了 IPv4 地址,而不是 IPv6 地址。我错过了什么?
运行 …