extension_d_un_reseaux_sans-fil
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
extension_d_un_reseaux_sans-fil [2015/07/25 21:51] – created samer | extension_d_un_reseaux_sans-fil [2015/07/26 02:01] – [4- Limitation du débit] samer | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Extension d'un réseaux sans-fil ====== | ====== Extension d'un réseaux sans-fil ====== | ||
- | Le but de cette réalisation est d'étendre un réseau local à l'aide d'un point d' | + | ===== -- Contexte et objectifs ===== |
- | | + | |
- | * Le point d' | + | La maquette mise en place dans ce document consiste à étendre un réseau local à l'aide d'un point d' |
- | * Le point d' | + | [{{ :schema-extension-wifi.png? |
+ | On dispose d'un modem routeur connecté à Internet. Ce modem annonce un SSID '' | ||
+ | ===== -- Matériel ===== | ||
+ | Les configurations suivantes sont proposées pour un point d' | ||
+ | |||
+ | ===== -- Configuration du point d' | ||
+ | |||
+ | Commençons par modifier le contenu du fichier ''/ | ||
+ | * Une première interface '' | ||
+ | * Une deuxième interface '' | ||
<file autoconf / | <file autoconf / | ||
Line 36: | Line 45: | ||
option key ' | option key ' | ||
</ | </ | ||
+ | |||
+ | Ensuite, modifions le contenu du fichier ''/ | ||
<file autoconf / | <file autoconf / | ||
Line 55: | Line 66: | ||
option proto ' | option proto ' | ||
</ | </ | ||
+ | |||
+ | ===== -- Limitation du débit ===== | ||
+ | Afin de préserver la bande passante du réseau, il est possible de limiter le débit du trafic vers ou depuis les machines associées au point d' | ||
+ | |||
+ | Commençons par mesurer le débit du réseau avec l' | ||
+ | |||
+ | < | ||
+ | PC-test-guest-network$ iperf3 -c iperf.testdebit.info | ||
+ | Connecting to host iperf.testdebit.info, | ||
+ | [ 6] local 192.168.66.156 port 58318 connected to 89.84.127.54 port 5201 | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | |||
+ | iperf Done. | ||
+ | |||
+ | PC-test-guest-network$ iperf3 -Rc iperf.testdebit.info | ||
+ | Connecting to host iperf.testdebit.info, | ||
+ | Reverse mode, remote host iperf.testdebit.info is sending | ||
+ | [ 6] local 192.168.66.156 port 58324 connected to 89.84.127.54 port 5201 | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | |||
+ | iperf Done. | ||
+ | </ | ||
+ | |||
+ | Nous choisissons de limiter le débit montant à 200 Kbits/sec et descendant à 2 Mbits/ | ||
+ | |||
+ | < | ||
+ | opkg update | ||
+ | $ opkg install tc iptables-mod-ipopt | ||
+ | $ opkg kmod-sched | ||
+ | insmod sch_tbf | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@OpenWrt: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@OpenWrt: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | simurgh: | ||
+ | Connecting to host iperf.testdebit.info, | ||
+ | [ 6] local 192.168.66.156 port 58340 connected to 89.84.127.54 port 5201 | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | |||
+ | iperf Done. | ||
+ | simurgh: | ||
+ | Connecting to host iperf.testdebit.info, | ||
+ | Reverse mode, remote host iperf.testdebit.info is sending | ||
+ | [ 6] local 192.168.66.156 port 58348 connected to 89.84.127.54 port 5201 | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | [ ID] Interval | ||
+ | [ 6] | ||
+ | [ 6] | ||
+ | |||
+ | iperf Done. | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@OpenWrt: | ||
+ | br-lan | ||
+ | inet addr: | ||
+ | UP BROADCAST RUNNING MULTICAST | ||
+ | RX packets: | ||
+ | TX packets: | ||
+ | collisions: | ||
+ | RX bytes: | ||
+ | |||
+ | eth0 Link encap: | ||
+ | UP BROADCAST MULTICAST | ||
+ | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | ||
+ | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | collisions: | ||
+ | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) | ||
+ | Interrupt: | ||
+ | |||
+ | lo Link encap:Local Loopback | ||
+ | inet addr: | ||
+ | UP LOOPBACK RUNNING | ||
+ | RX packets:44 errors:0 dropped:0 overruns:0 frame:0 | ||
+ | TX packets:44 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | collisions: | ||
+ | RX bytes:3636 (3.5 KiB) TX bytes:3636 (3.5 KiB) | ||
+ | |||
+ | wlan0 Link encap: | ||
+ | UP BROADCAST RUNNING MULTICAST | ||
+ | RX packets: | ||
+ | TX packets: | ||
+ | collisions: | ||
+ | RX bytes: | ||
+ | |||
+ | wlan0-1 | ||
+ | inet addr: | ||
+ | UP BROADCAST RUNNING MULTICAST | ||
+ | RX packets: | ||
+ | TX packets: | ||
+ | collisions: | ||
+ | RX bytes: | ||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | root@OpenWrt: | ||
+ | qdisc tbf 8004: root refcnt 2 rate 2000Kbit burst 10Kb peakrate 4000Kbit minburst 1540b lat 50.0ms | ||
+ | Sent 10180 bytes 35 pkt (dropped 0, overlimits 9 requeues 0) | ||
+ | | ||
+ | root@OpenWrt: | ||
+ | qdisc tbf 8003: root refcnt 5 rate 200000bit burst 10Kb peakrate 350000bit minburst 1540b lat 50.0ms | ||
+ | Sent 3682 bytes 28 pkt (dropped 0, overlimits 0 requeues 0) | ||
+ | | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | tc -s qdisc ls dev eth0 | ||
+ | tc qdisc del dev eth0 root | ||
+ | </ |
extension_d_un_reseaux_sans-fil.txt · Last modified: 2015/07/27 14:17 by samer