我有一个带有ESX5的服务器,有一个有大约20个vlans的交换机,这就是设置主干端口的方法
interface GigabitEthernet0/1/1
description ToOper
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 2 to 14
stp disable
ntdp enable
ndp enable
bpdu enable然后,我使用sw1客户机创建了一个标准交换机( vSphere ),vlans设置为All (4095),我还创建了一个带有Debian6的VM,一个连接到sw1的NIC,现在,我想为选定的一组VLAN配置这个NIC
auto vlan10
iface vlan10 inet static
address 11.10.1.0
netmask 255.255.255.224
mtu 1500
vlan_raw_device eth0
auto vlan14
iface vlan14 inet static
address 11.10.1.65
netmask 255.255.255.248
mtu 1500
vlan_raw_device eth0所以,当我使用/etc/init.d/networking restart重新启动网络时,我得到了这个错误
Reconfiguring network interfaces...SIOCSIFADDR: No such device
vlan14: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
vlan14: ERROR while getting interface flags: No such device
SIOCSIFMTU: No such device
vlan14: ERROR while getting interface flags: No such device
Failed to bring up vlan14.
done.这只是错误的一部分,所以,我的问题是:这有可能吗?我的意思是,我试图使用ESX虚拟机、VLANS等实现什么,这是一个Debian问题吗?能解决吗?我在Debian中读过一个名为z25_persistent-net.rules的文件,但它在我的安装中并不存在。在
在vSphere Networking for ESX5指南中,您可以阅读:
如果输入0或将选项保留为空,则端口组只能看到无标记(非VLAN)通信量。如果输入4095,端口组可以看到任何VLAN上的通信量,同时保留VLAN标记。
所以,从理论上讲,这应该是可行的,对吧?
希望你能帮我解决这个问题
谢谢
发布于 2012-11-15 17:50:22
vlan包没有安装在我的系统中,在成功安装之后,一切正常
https://serverfault.com/questions/447159
复制相似问题