Bonjour !
J’ai une carte mère gigabit H77N-wifi sur laquelle il y a 2 ports ethernet.
J’ai fait toutes ma configuration initiale avec un seul cable réseau et comme cela marchait, je ne me suis pas plus penché sur le sujet.
Je veux maintenant utiliser le 2e port mais celui ci refuse de fonctionner en dehors de mon réseau local (et encore seul le ping et le DHCP fonctionnent…)
j’ai tout configuré comme il faut (enfin je pense…)
Mon fichier interfaces :
[code]root@debian:/root# cat /etc/network/interfaces
This file describes the network interfaces available on your system
and how to activate them. For more information, see interfaces(5).
The loopback network interface
auto lo
iface lo inet loopback
The primary network interface
allow-hotplug eth0
uncomment the following for dhcp use dhcp
#iface eth0 inet dhcp
static configuration for eth0
auto eth0
iface eth0 inet static
address 192.168.101.1
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.254
The secondary network interface
allow-hotplug eth1
#uncomment the following for dhcp use dhcp
#iface eth1 inet dhcp
static configuration for eth0
auto eth1
iface eth1 inet static
address 192.168.101.2
netmask 255.255.255.0
broadcast 192.168.101.255
network 192.168.101.0
gateway 192.168.101.254[/code]
Ce que donne l’ifconfig :
[code]root@debian:/root# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:34:d0:42:b7
inet adr:192.168.101.1 Bcast:192.168.101.255 Masque:255.255.255.0
adr inet6: fe80::922b:34ff:fed0:42b7/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1318 errors:0 dropped:0 overruns:0 frame:0
TX packets:1241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:399849 (390.4 KiB) TX bytes:231812 (226.3 KiB)
Interruption:41
eth1 Link encap:Ethernet HWaddr 00:01:34:d0:42:b5
inet adr:192.168.101.2 Bcast:192.168.101.255 Masque:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:19 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:2324 (2.2 KiB) TX bytes:3184 (3.1 KiB)
Interruption:42 Adresse de base:0x2000
lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:174 errors:0 dropped:0 overruns:0 frame:0
TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:18435 (18.0 KiB) TX bytes:18435 (18.0 KiB)
wlan0 Link encap:Ethernet HWaddr 84:01:c8:3a:fb:9c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
[/code]
(wlan0 non configuré, j’ai juste fait un up à la main pour voir si je détectait les réseau wifi)
J’ai cherché un peu plus et j’ai d’autres infos :
root@debian:/root# lshw -class network
*-network
description: Ethernet interface
produit: RTL8111/8168B PCI Express Gigabit Ethernet controller
fabriquant: Realtek Semiconductor Co., Ltd.
identifiant matériel: 0
information bus: pci@0000:03:00.0
nom logique: eth0
version: 06
numéro de série: 00:01:34:d0:42:b7
taille: 1Gbit/s
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.101.1 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
ressources: irq:41 portE/S:e000(taille=256) mémoire:f0104000-f0104fff mémoire:f0100000-f0103fff
*-network
description: Ethernet interface
produit: RTL8111/8168B PCI Express Gigabit Ethernet controller
fabriquant: Realtek Semiconductor Co., Ltd.
identifiant matériel: 0
information bus: pci@0000:04:00.0
nom logique: eth1
version: 06
numéro de série: 00:01:34:d0:42:b5
taille: 10Mbit/s
capacité: 1Gbit/s
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.101.93 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
ressources: irq:42 portE/S:d000(taille=256) mémoire:f0004000-f0004fff mémoire:f0000000-f0003fff
*-network
description: Interface réseau sans fil
produit: Centrino Wireless-N 2230
fabriquant: Intel Corporation
identifiant matériel: 0
information bus: pci@0000:05:00.0
nom logique: wlan0
version: c4
numéro de série: 84:01:c8:3a:fb:9c
bits: 64 bits
horloge: 33MHz
fonctionnalités: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi driverversion=3.2.0-4-amd64 firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
ressources: irq:46 mémoire:f7c00000-f7c01fff
et
[code]root@debian:/root# 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 0x10ec:/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0 (r8169)
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS=="?", ATTR{address}==“00:01:34:d0:42:b7”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth", NAME=“eth0”
PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.5/0000:04:00.0 (r8169)
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS=="?", ATTR{address}==“00:01:34:d0:42:b5”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth", NAME=“eth1”
PCI device 0x8086:/sys/devices/pci0000:00/0000:00:1c.6/0000:05:00.0 (iwlwifi)
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS=="?", ATTR{address}==“84:01:c8:3a:fb:9c”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="wlan", NAME=“wlan0”[/code]
J’ai essayé de configurer en DHCP et eth1 récupère bien une ip du routeur
Si j’essaye un ping vers le routeur ca passe, vers un autre PC, ca passe aussi mais vers un site extérieur ca passe plus.
De même je ne peux me connecter en SSH via cette interface, le FTP ne passe pas non plus…
Je n’ai aucune règle de firewall…
J’ai essayé d’inverser le eth0 et le eth1 dans le fichier /etc/udev/rules.d/70-persistent-net.rules et après avoir tout bien redémarrer c’est le contraire, c’est l’autre port qui ne marche plus !
J’ai aussi essayé d’utiliser le firmware realtek mais cela ne change rien (avant j’avais un message qui me disait qu’il était manquant, mais avec ou sans, même combat…
Si quelqu’un a une idée, je suis preneur
Merci de votre aide !