我尝试并阅读了几乎每一篇关于如何使用Bonds安装VLAN的文章,但是,我似乎无法让它工作。
我正在运行:Ubuntu12.04.4LTS在一个带有2 INTEL 10 on的IBM上运行。
当我安装操作系统时,我无法访问互联网,我不得不在上面安装一个带有vlan_1.9-3ubuntu6_amd64.deb的ISO,以获得VLAN支持。我运行modprobe 8021q并将8021q添加到/etc/modules中。我能够独立地配置eth1和eth6来使用vlan (我们将称之为vlan1),我更新和升级了Ubuntu以及智能更新和升级。
我的接口文件如下所示:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth1
iface eth1 inet manual
bond-master bond0
auto eth6
iface eth6 inet manual
bond-master bond0
# Start bond0
auto bond0
iface bond0 inet manual
bond-mode 4
bond-miimon 100
bond-lacp-rate fast (have tried slow as well)
mtu 11000
bond-slaves none
# Start VLAN 1
auto bond0.1
iface bond0.1 inet static
address 10.1.1.100
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.247.255
gateway 10.1.1.3
dns-nameservers 10.1.1.10
vlan-raw-device( IP信息是故意错误的)
每当我试图打开bond0.1时,我都会得到以下错误:
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #1 to IF -:bond0:- error: Operation not supported
Cannot find device "bond0.1"
Failed to bring up bond0.1如果运行vconfig add bond0 1,就会得到以下错误:
ERROR: trying to add VLAN #1 to IF -:bond0:- error: Operation not supported有什么办法解决这个问题吗?
发布于 2014-10-01 23:10:24
当我错过"ifenslave“包时,我在Ubuntu12.04上得到了同样的错误消息。我用以下命令修正了这个问题:sudo apt-get install ifenslave-2.6
https://askubuntu.com/questions/462413
复制相似问题