Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[Long] bridge je bloque ...

1 réponse
Avatar
Huwiler Sylvain
hello

voila je cherche a utiliser un vieux pc comme bridge filtrant
alors je lui ai mis trois interface pour le moment pour tester il est relier
a un switch et de l'autre coté mon portable ceci le temps de le confiurer
...
j'ai 3 interface :
eth0 : relié au swith via un cable droit
eth1: relié au portable via un cable croisé

eth2: relié au switch configuration dhcp pour administration a distance

donc mon bridge est en fait consitué de eth0 et eth1

j'ai fais le ptit script de config suivant :

coridoras:~# more bridge.sh

#! /bin/sh

#modification des interface
ifconfig eth0 0.0.0.0 promisc
ifconfig eth1 0.0.0.0 promisc

#mise en place du pont
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1

brctl sethello br0 1
brctl setmaxage br0 4
brctl setfd br0 4

ifconfig br0 up

je le lance pas d'erreur rien

dans le syslog j'ai :

Feb 29 16:42:20 coridoras kernel: device eth0 entered promiscuous mode
Feb 29 16:42:20 coridoras kernel: device eth1 entered promiscuous mode
Feb 29 16:42:20 coridoras kernel: TLAN: eth0: Starting autonegotiation.
Feb 29 16:42:20 coridoras kernel: TLAN: eth1: Starting autonegotiation.
Feb 29 16:42:21 coridoras kernel: br0: port 2(eth1) entering learning state
Feb 29 16:42:21 coridoras kernel: br0: port 1(eth0) entering learning state
Feb 29 16:42:22 coridoras kernel: TLAN: Giving autonegotiation more time.
Feb 29 16:42:22 coridoras kernel: TLAN: Please check that your adapter has
Feb 29 16:42:22 coridoras kernel: TLAN: been properly connected to a HUB or
Switch.
Feb 29 16:42:22 coridoras kernel: TLAN: Trying to establish link in the
background...
Feb 29 16:42:22 coridoras kernel: TLAN: eth1: Autonegotiation complete.
Feb 29 16:42:22 coridoras kernel: TLAN: eth1: Link active with
AutoNegotiation enabled, at 100Mbps Full-Duplex
Feb 29 16:42:22 coridoras kernel: TLAN: Partner capability: 10BaseT-HD
10BaseT-FD 100baseTx-HD 100baseTx-FD<NULL>
Feb 29 16:42:25 coridoras kernel: br0: port 2(eth1) entering forwarding
state
Feb 29 16:42:25 coridoras kernel: br0: topology change detected, propagating
Feb 29 16:42:25 coridoras kernel: br0: port 1(eth0) entering forwarding
state
Feb 29 16:42:25 coridoras kernel: br0: topology change detected, propagating
Feb 29 16:42:30 coridoras kernel: TLAN: eth0: Autonegotiation complete.
Feb 29 16:42:30 coridoras kernel: TLAN: eth0: Link active

il apprends bien les macs car quand que fais un brctl showmacs br0 j'ai bien
les adresses mac de mes différents pc qui aparaissent aussi bien mon
portable sur eth1 que les machine se trouvant sur le switch (donc eht0)

et pourtant impossible de pinger une machine se trouvant sur le swith depuis
le protable :-/ la je bloque

si quelqu'un avait une petite idée

1 réponse

Avatar
Huwiler Sylvain
j'ai oublié quelque détails qui pourrait être utilies:

coridoras:~# ifconfig
br0 Link encap:Ethernet HWaddr 00:80:5F:31:66:A3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:732 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75202 (73.4 KiB) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:80:5F:FE:52:BC
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:973 errors:0 dropped:0 overruns:0 frame:0
TX packets:699 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:226138 (220.8 KiB) TX bytes:67416 (65.8 KiB)
Interrupt:11 Base address:0x1030

eth1 Link encap:Ethernet HWaddr 00:80:5F:31:66:A3
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:699 errors:0 dropped:0 overruns:0 frame:0
TX packets:973 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66159 (64.6 KiB) TX bytes:227204 (221.8 KiB)
Interrupt:11 Base address:0x1020

eth2 Link encap:Ethernet HWaddr 00:80:5F:CB:B6:5E
inet addr:192.168.1.44 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6832 errors:0 dropped:0 overruns:0 frame:0
TX packets:7181 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4322004 (4.1 MiB) TX bytes:1094266 (1.0 MiB)
Interrupt:11 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)

coridoras:~# brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00805f3166a3 no eth0

eth1

voila si y a besoin de plus de détails ....