Como configurar 6 placas de rede no Debian 7

1

Eu sou novo no Debian e tenho uma máquina com 6 (seis) placas de rede. É um roteador barato, mas o Linux faz dispositivos ethx apenas para 4 placas de rede (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

o lspci mostra todos os cartões:

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
 . . .

Então, como posso ativar eth4 e eth5? É possível? Muito obrigado e cumprimentos.

    
por gooamoko 16.05.2013 / 05:40

1 resposta

0

Então, quando substituí o NIC do SURECOM NIC pelo chipset RTL8139 , tudo estava bem.

O problema realmente estava nos drivers. Muito obrigado por conselhos para DerfK e Danila Ladner.

Apenas um problema ocorreu naquele momento - para fornecer IP "correto" para cada NIC.

Eu pesquisei no google por renomear ethX devices no udev e descobri que posso escrever riles para nomear dispositivos pelo udev. No Debian 7, essas regras já existem em /etc/udev/rules.d/70-persistent-net.rules . Eu editei este arquivo para minhas necessidades.

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"

Então, agora - não há problemas e tudo funciona bem. Eu acho que esta questão está encerrada.

    
por 22.05.2013 / 06:54