我有一台服务器与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
然后,我使用vSphere客户端创build了一个标准交换机( sw1 ),将VLAN ID设置为All (4095) ,我还创build了一个具有Debian 6的虚拟机,其中一个网卡连接到sw1 ,现在,我想configuration此NIC对于一组选定的vlan
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
所以,当我重新启动networking使用/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虚拟机,VLAN等,这是一个Debian的问题? 可以解决? 我已经阅读了Debian中名为z25_persistent-net.rules的文件,但是在我的安装中并不存在。 在里面
在“ vSphere Networking for ESX5指南”中,可以阅读:
如果input0或将该选项留空,则端口组只能看到未标记的(非VLAN)stream量。 如果input4095,端口组可以看到任何VLAN上的stream量,同时保持VLAN标记不变。
所以,从理论上讲,它应该工作,对吧?
希望你能帮助我这个
谢谢
vlan软件包没有安装在我的系统中,安装成功后,一切正常