Bonjour,
J’ai également un problème avec mon bridge, dans une configuration similaire a la tienne : serveur de fichier (bigbox, IP fixe 192.168.1.10) établi en bridge entre mon ordi fixe (bibblebox) et mon routeur(MyHub), afin de bénéficier d’une connection Gbit entre les deux PC malgré le routeur 100Mbits.
[code]12:18 root@bigbox ~# 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
auto br0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
The primary network interface
#auto eth0
#iface eth0 inet static
address 0.0.0.0
netmask 255.255.255.0
gateway 192.168.1.1
#auto eth1
#iface eth1 inet static
address 0.0.0.0
netmask 255.255.255.0
12:18 root@bigbox ~# ifconfig
br0 Link encap:Ethernet HWaddr 00:0E:2E:C0:6D:A4
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fec0:6da4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15149151 errors:0 dropped:0 overruns:0 frame:0
TX packets:13941421 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:78860110 (75.2 MiB) TX bytes:1354359625 (1.2 GiB)
eth0 Link encap:Ethernet HWaddr 00:15:58:3E:C5:44
inet6 addr: fe80::215:58ff:fe3e:c544/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5688358 errors:0 dropped:0 overruns:0 frame:0
TX packets:5967198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3719192790 (3.4 GiB) TX bytes:861783757 (821.8 MiB)
Interrupt:17 Base address:0xd400
eth1 Link encap:Ethernet HWaddr 00:0E:2E:C0:6D:A4
inet6 addr: fe80::20e:2eff:fec0:6da4/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:19490133 errors:0 dropped:0 overruns:0 frame:0
TX packets:18059374 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3995907547 (3.7 GiB) TX bytes:3615020263 (3.3 GiB)
Interrupt:18 Base address:0x4000
12:18 root@bigbox ~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost bigbox
255.255.255.O broadcasthost
192.168.1.1 MyHub
192.168.1.11 bibblebox
#204.152.189.173 us.v29.distributed.net
The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
12:19 root@bigbox ~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
[/code]
Wamba, si ma connection internet (qui passe par le bridge) n’est pas plus lente depuis mon fixe, en revanche la connection (que ce soit par ssh ou ftp) a mon serveur prend generalement de longues secondes. Je ne peux pas non plus accéder au réseau exterieur, ni meme faire un loopback :
[code]12:25 root@bigbox ~# ping 127.0.0.1
connect: Network is unreachable
zsh: exit 2 ping 127.0.0.1
12:34 root@bigbox ~# ping www.google.com
ping: unknown host www.google.com
zsh: exit 2 ping www.google.com
12:37 root@bigbox ~# ping MyHub
PING MyHub (192.168.1.1) 56(84) bytes of data.
64 bytes from MyHub (192.168.1.1): icmp_seq=1 ttl=255 time=0.654 ms
64 bytes from MyHub (192.168.1.1): icmp_seq=2 ttl=255 time=0.680 ms
64 bytes from MyHub (192.168.1.1): icmp_seq=3 ttl=255 time=0.707 ms
— MyHub ping statistics —
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.654/0.680/0.707/0.030 ms
[/code]
Je ne parviens a “pinger” que mon routeur et mon fixe, tous les deux en IP static. Les autres ordis du reseau (portables en wireless, donc DHCP) ne sont pas trouvés.
Cela pourrait être du a un probleme dans la configuration de la table /etc/hosts. La tienne est-elle très différente ? Parviens-tu a pingé d’autres IP ? Si oui, lesquelles (locales, externes, fixes, DHCP) ?
[EDIT]Le probleme n’est peut-etre pas du coté du /etc/hosts, en fait…
[code]13:21 root@bigbox ~# /etc/init.d/networking restart
- /etc/network/options is deprecated (see README.Debian of netbase).
Setting up IP spoofing protection…done (rp_filter).
Reconfiguring network interfaces…/etc/network/interfaces:9: misplaced option
ifdown: couldn’t read interfaces file “/etc/network/interfaces”
/etc/network/interfaces:9: misplaced option
ifup: couldn’t read interfaces file "/etc/network/interfaces"
failed.[/code]