Bonjour à tous,
J’ai actuellement un ordinateur connecté en wifi à une livebox, et je souhaite utiliser celui-ci comme routeur en utilisant sa carte ethernet interne.
J’ai pour cela configuré mon fichier “interfaces”, puis connecté un client en ethernet sur le PC/routeur mais je n’arrive qu’a le pinger lui mais pas ma box, le WAN etc…
Voici mon fichier interfaces :
[code]auto lo
iface lo inet loopback
#Option Forward pour routeur
up echo “1” > /proc/sys/net/ipv4/ip_forward
#Mode ethernet classique
#auto eth0
#iface eth0 inet dhcp
#Mode routeur
auto eth0
iface eth0 inet static
address 192.168.2.5
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
#Table de routage
up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.5
up route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.2.5
auto wlan0
iface wlan0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
wpa-driver wext
wpa-ap-scan 1
wpa-scan-ssid 1
wpa-ssid Livebox
wpa-key-mgmt WPA-PSK
wpa-pairwise CCMP
wpa-group CCMP
wpa-conf managed
wpa-proto WPA
wpa-psk maclef
wpa-priority 1
[/code]
Mon client est en static :
La commande “route -n” me donne ceci:
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.2.0 192.168.2.5 255.255.255.0 UG 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
Quelqu’un peut-il me venir en aide s’il vous plait? Merci d’avance.