我有一个包含多个适配器的服务器,bond0。
我不确定(即使经过广泛的研究)如何在没有IP地址的情况下启动bond0设备。我希望VLAN使用bond0,但在服务器上不使用无标记接口。
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
bond-slaves none
bond-miimon 100
bond-mode 802.3ad
auto vlan50
iface vlan50 inet static
address 192.168.248.241
netmask 255.255.255.0
network 192.168.248.0
vlan-raw-device bond0上述配置工作正常,但bond0的地址不在标记的vlan上。
开关设置正确。VLAN工作正常。服务器是多个VLAN的成员,上面的配置是简化的,因为配置的其余部分与我的问题无关。
是的,我可以把一个虚拟地址扔到bond0接口中,但对我来说,这似乎不太干净。
我试过以下几点:
https://wiki.debian.org/NetworkConfiguration#Bringing_向上_一个_接口_不带_一个_IP地址_地址
但是,这不起作用,使bond0没有配置,因此没有网络连接。
操作系统: Ubuntu 14.04.2 LTS
发布于 2015-02-26 14:54:37
我想像这样的东西应该能起作用:
auto lo
iface lo inet loopback
auto bond0
iface bond0 inet static
pre-up ifconfig bond0 up
pre-up ifenslave bond0 eth0 || /bin/true
pre-up ifenslave bond0 eth1 || /bin/true
down ifenslave -d bond0 eth0 || /bin/true
down ifenslave -d bond0 eth1 || /bin/true
auto bond0.50
iface bond0.50 inet static
address 192.168.248.241
netmask 255.255.255.0
network 192.168.248.0https://serverfault.com/questions/670780
复制相似问题