我是新的Debian,我有6(6)网卡的机器。 这是一个便宜的路由器,但Linux使ethX设备仅用于4个网卡(eth0 … eth3):
root@dc-02:~# dmesg | grep eth [ 1.474080] 8139too 0000:00:0c.0: eth0: RealTek RTL8139 at 0xd400, 00:50:ba:ca:90:87, IRQ 19 [ 1.475862] 8139too 0000:00:13.0: eth1: RealTek RTL8139 at 0x7800, 00:c0:df:12:05:1f, IRQ 18 [ 1.477545] eth2: 100/10M Ethernet PCI Adapter at 0001d000, 00:02:44:45:01:84, IRQ 16. [ 1.479051] eth3: 100/10M Ethernet PCI Adapter at 0001b800, 00:02:44:47:04:b0, IRQ 17. [ 15.225247] 8139too 0000:00:0c.0: eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
lspci显示所有卡片:
root@dc-02:~# lspci . . . 00:0a.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 00:0b.0 Ethernet controller: Device 0000:f640 (rev 10) 00:0c.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10) 00:0d.0 Ethernet controller: MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter 00:0e.0 Ethernet controller: MYSON Technology Inc SURECOM EP-320X-S 100/10M Ethernet PCI Adapter . . .
那么,我怎样才能打开eth4和eth5? 可能吗? 非常感谢和最好的问候。
所以,当我用基于RTL8139的芯片组网卡replaceSURECOM网卡时,一切都很好。
问题真的是在司机。 非常感谢您对DerfK和Danila Ladner的build议。
这一刻只有一个问题 – 为每个NIC提供“正确的”IP。
我已经在谷歌search重命名在udev的ethX设备,并发现,我可以写由udev命名设备riles。 在Debian 7中,这个规则已经存在于/etc/udev/rules.d/70-persistent-net.rules 。 II已经为我的要求编辑了这个文件。
root@dc-02:/etc/udev/rules.d# cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x1186:/sys/devices/pci0000:00/0000:00:0d.0 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:ba:ca:90:87", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:0d.0 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:22:88:86:78", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:0a.0 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:22:39:47:4f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:13.0 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:50:22:39:47:64", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:0b.0 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:40:f4:87:f6:e4", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:0a.0 (8139too) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="4c:00:10:a1:e9:9c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth5"
所以,现在 – 没有任何问题,一切正常。 我想这个问题是closures的。