Vous pouvez utiliser une interface de pont. Vous pouvez utiliser brctl de bridge-utils pour créer une interface de pont. Par exemple,
$ brctl addbr br0
$ brctl addif br0 eth0 eth1
$ brctl show
bridge name bridge id STP enabled interfaces
br0 8000.00004c9f0bd2 no eth0
eth1
Donc après avoir ajouté les interfaces eth0 ð1 dans le dispositif pont br0 il vous reste la configuration suivante. Vous pouvez utiliser ifconfig pour le voir :
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr BC:AE:AA:34:22:11
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
...
$ ifconfig eth1
eth1 Link encap:Ethernet HWaddr BC:AE:AA:34:11:22
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
...
Et le périphérique pont avec l'adresse IP :
$ ifconfig br0
br0 Link encap:Ethernet HWaddr BC:AE:C5:11:22:33
inet addr:192.168.1.20 Bcast:192.168.1.255 Mask:255.255.255.0
...