Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[dhcrelay] Routeur Gentoo avec passerelle WiFi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
legabier
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 231

PostPosted: Sat Dec 27, 2008 9:51 pm    Post subject: [dhcrelay] Routeur Gentoo avec passerelle WiFi Reply with quote

Bonjour,

J'ai un ordi avec trois cartes réseau. L'une d'elle est une WMP54G qui servira a créer un lien (sans fil) vers un routeur sans fil qui lui est branché au modem.

Je ne sais pas par ou commencer. Avez-vous quelque chose à me recommander? Un howto?

Merci !
_________________
Néophyte ou novice, telle est la question...


Last edited by legabier on Mon Jan 05, 2009 9:25 am; edited 2 times in total
Back to top
View user's profile Send private message
titoucha
Advocate
Advocate


Joined: 21 Jul 2005
Posts: 2374
Location: Genève

PostPosted: Sun Dec 28, 2008 6:20 am    Post subject: Reply with quote

Regarde à cette adresse http://www.linuxidentity.com/fr/index.php?name=CmodsDownload&file=index&req=getit&lid=38
_________________
Assurez-vous que le titre de votre message soit conforme aux conventions de ce forum (paragraphe 3/3 : Comment poster sur le forum ??)
Back to top
View user's profile Send private message
legabier
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 231

PostPosted: Thu Jan 01, 2009 9:42 pm    Post subject: Reply with quote

Merci, c'était un bon départ. Ça ne semblait par contre pas à jour, mon noyau est un 2.6.25-r7 (jamais réussis avec le 2.6.27-r7, j'ai du aller trop vite dans menuconfig) et je n'ai ni trouvé CONFIG_NET_RADIO ni CONFIG_NET_WIRELESS dans les .config des deux noyaux.

Ma carte (WMP54G de Linksys) n'utilise pas non plus le pilote madwifi il semblerait, mais plutôt rt61pci à cause de son chipset RaLink.
lspci la voit comme ceci: 01:09.0 Network controller: RaLink RT2561/RT61 802.11g PCI
Dans mon /etc/conf.d/net j'ai ajouté ceci:
Code:
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Drt61pci"
config_MonSSID=( "dhcp" )
wpa_timeout_wlan0=15
mais quand je lance le script (j'ai fait mon ln) /etc/init.d/net.wlan0 start :
Code:
 * Starting wlan0
 *   Starting wpa_supplicant on wlan0 ...
Unsupported driver 'rt61pci'.


À partir de là, je suis perdu, je ne comprends même pas si wpa_supplicant est dépendant ou non de wireless-tools. Puisque mon réseau est en WPA2, puis-je unmerger wireless-tools ?

À titre informatif, je suis aussi tombé sur ces quelques pages intéressantes:
http://en.gentoo-wiki.com/wiki/RT61
http://en.gentoo-wiki.com/wiki/Wireless/Access_point#Ralink_rt2500
http://en.gentoo-wiki.com/wiki/Wireless_Networking#Connecting_to_a_wireless_network
http://www.gentoo.org/doc/fr/handbook/handbook-x86.xml?part=4&chap=4
_________________
Néophyte ou novice, telle est la question...
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Thu Jan 01, 2009 10:11 pm    Post subject: Reply with quote

Salut

Donnes des infos:

Code:
# lsmod


Code:
# iwconfig
(qui fait parti du paquet wireless-tools)

Test déja en ligne de commande pour trouver la bonne methode et lis tout d'abord la doc avec un man wpa_supplicant.conf, man wpa_supplicant

La syntaxe:
Code:
wpa_supplicant   -c  /chemin_du_fichier/wpa_supplicant.conf  -w  -D <pilote>  -i <interface>

essai le pilote générique wext
_________________
Get Up and Go !
Back to top
View user's profile Send private message
legabier
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 231

PostPosted: Thu Jan 01, 2009 10:26 pm    Post subject: Reply with quote

Code:
# lsmod
Module                  Size  Used by
rt61pci                23808  0
rt2x00pci              11008  1 rt61pci
rt2x00lib              19072  2 rt61pci,rt2x00pci
crc_itu_t               5888  1 rt2x00lib
eeprom_93cx6            5888  1 rt61pci

Code:
# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wmaster0  no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"linksys"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:1D:7E:D2:4F:25
          Tx-Power=27 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Code:
# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf  -w  -D rt61pci -i wlan0
Unsupported driver 'rt61pci'.

Code:
# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf  -w  -D wext -i wlan0
Line 8: Invalid configuration line 'trl_interface=/var/run/wpa_supplicant'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.


Le contenu de mon /etc/wpa_supplicant/wpa_supplicant.conf :
Code:
trl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

network={
        ssid="MonSSID"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        psk="Longue clé partagée"
        priority=1
}


...... man wpa_supplicant.
_________________
Néophyte ou novice, telle est la question...
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Fri Jan 02, 2009 12:41 am    Post subject: Reply with quote

legabier wrote:

Code:
# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf  -w  -D wext -i wlan0
Line 8: Invalid configuration line 'trl_interface=/var/run/wpa_supplicant'.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.


Le contenu de mon /etc/wpa_supplicant/wpa_supplicant.conf :
Code:
trl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

network={
        ssid="MonSSID"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        psk="Longue clé partagée"
        priority=1
}



Code:
# La ligne ci-dessous ne doit pas être changée sinon cela ne marchera pas :
ctrl_interface=/var/run/wpa_supplicant

_________________
Get Up and Go !
Back to top
View user's profile Send private message
legabier
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 231

PostPosted: Fri Jan 02, 2009 2:12 am    Post subject: Reply with quote

man in the hill wrote:
La ligne ci-dessous ne doit pas être changée sinon cela ne marchera pas :
ctrl_interface=/var/run/wpa_supplicant

Il manquait effectivement le c au début de ctrl, ça m'avait échappé.

Je fonctionne maintenant avec wext.

J'ai quand même un petit bug quand je démarre l'interface:
Code:
 # /etc/init.d/net.wlan0 start
 * Starting wlan0
 *   Starting wpa_supplicant on wlan0 ...
ioctl[SIOCSIWAUTH]: Operation not supported                                      [ ok ]th param 4 value 0x0 -
 *   Starting wpa_cli on wlan0 ...                                        [ ok ]
 *     Backgrounding ...

Mis à part ça, la connexion sans fil WPA2 s'établit et le DHCPd de l'autre routeur sans fil lui attribue une IP.

J'ai encore à faire pour arriver au résultat final. Il y a deux autres cartes réseau dans cet ordi (RJ-45), j'aimerais que les ordis qui s'y connectent reçoivent une IP du DHCPd de l'autre routeur. Je ne veux pas faire un deuxième serveur DHCP sur l'ordi dont il est question dans ce topic, il devra donc forwarder les demandes DHCP. Est-ce que je dois faire des bridges pour ça?
_________________
Néophyte ou novice, telle est la question...
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Sun Jan 04, 2009 9:47 pm    Post subject: Reply with quote

Voici une piste
http://www.delafond.org/traducmanfr/man/man8/dhcrelay.8.html
_________________
Get Up and Go !
Back to top
View user's profile Send private message
legabier
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 231

PostPosted: Mon Jan 05, 2009 9:24 am    Post subject: Reply with quote

Merci! C'est exactement ça que je veux faire!

Ça ne semble malheureusement pas faire parti du portage :(
Code:
# emerge -s dhcrelay
Searching...
[ Results for search key : dhcrelay ]
[ Applications found : 0 ]

# emerge -S dhcrelay
Searching...
[ Results for search key : dhcrelay ]
[ Applications found : 0 ]

Et finalement j'ai trouvé ça : dhcrelay doesn't work., sur bugs.gentoo.org.
_________________
Néophyte ou novice, telle est la question...
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Mon Jan 05, 2009 11:42 am    Post subject: Reply with quote

Tu peux aussi mettre des IP fixes qui pointent vers ton ordi routeur2 et tu mets une route static sur routeur2 pour lui dire d'envoyer toutes les trames qui viennent de réseau2 vers ton 1er routeur1, tu dois aussi faire connaitre ton 2ème réseau en rajoutant une route static à routeur1 .

Tu peux aussi activer le nat sur routeur2 si tu ne veux pas rajouter une route.

Tu peux aussi télécharger la dernière version de dhcrelay, le compiler à la mano et le tester toi même .

Post une topologie de ton réseau.
_________________
Get Up and Go !
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum