Configurer network manager pour point d'accès

Bonjour,
Je cherche à faire fonctionner la structure suivante pour distribuer internet par wifi :
livebox <=wifi=> portable ubuntu 10.04.3 LTS avec network manager <=wifi=>
sachant que j'ai un wifi interne au portable et une clé wifi usb smc
et j'ai un autre portable sous xp pro avec netstumbler.
je cherche une solution avec interface graphique, network manager si possible.

8 réponses

  • Votes
  • Date
  • Date décroissante
  1. Modérateur
    Eh bien normalement nm est déjà installé, il ne reste plus qu'à configurer ton point d'accès ?
    http://doc.ubuntu-fr.org/network-manager

    Bonne chance
    1. oui merci, j'avais vu mais ça ne marche pas, je n'ai pas par exemple dans le menu : dhcp lien local qui apparait quand j'en crée un
  2. Modérateur
    À mon avis ta carte wifi n'est pas détectée en l'état.

    Peux-tu me donner le résultat des commandes suivantes ?

    lspci
    dpkg -l | grep network-manager
    /sbin/ifconfig -a
    /sbin/iwconfig


    (oui je sais tu as dit que tu préférais le mode graphique je me souviens ! mais ce sera plus facile pour toi de me faire un copier coller :p)

    Si dans la dernière commande une carte wifi apparaît (par exemple wlan0), dis-moi si tu parviens à scanner les réseaux wifi alentours avec la commande :

    /sbin/iwlist wlan0 scan


    Si ma théorie est juste il faudra faire en sorte que ta carte soit reconnue, soit en installant le pilote propriétaire correspondant, soit si ce dernier ne trouve rien, à l'aide de ndisgtk :
    http://doc.ubuntu-fr.org/gestionnaire_de_pilotes_proprietaires
    http://doc.ubuntu-fr.org/ndisgtk

    Tu peux également commencer à regarder ici :
    http://www.mistra.fr/tutoriel-linux-configurer-le-reseau.html

    Bonne chance
    1. salut mamiemando et merci pour ton intervention, j'ai pas encore regardé les liens mais je vais, en attendant voilà le résultat :

      pierre@pierre-laptop:~$ lspci
      00:00.0 Host bridge: VIA Technologies, Inc. CN333/CN400/PM880 Host Bridge
      00:00.1 Host bridge: VIA Technologies, Inc. CN333/CN400/PM880 Host Bridge
      00:00.2 Host bridge: VIA Technologies, Inc. CN333/CN400/PM880 CPU Host Bridge
      00:00.3 Host bridge: VIA Technologies, Inc. CN333/CN400/PM880 Host Bridge
      00:00.4 Host bridge: VIA Technologies, Inc. CN333/CN400/PM880 Host Bridge
      00:00.7 Host bridge: VIA Technologies, Inc. CN333/CN400/PM880 Host Bridge
      00:01.0 PCI bridge: VIA Technologies, Inc. VT8237/VX700 PCI Bridge
      00:06.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
      00:0c.0 CardBus bridge: ENE Technology Inc CB1410 Cardbus Controller (rev 01)
      00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
      00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
      00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
      00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
      00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
      00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
      00:11.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller (rev 80)
      00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
      01:00.0 VGA compatible controller: VIA Technologies, Inc. CN400/PM800/PM880/PN800/PN880 [S3 UniChrome Pro] (rev 02)
      pierre@pierre-laptop:~$ dpkg -l | grep network-manager
      ii network-manager 0.8-0ubuntu3.2 network management framework daemon
      ii network-manager-gnome 0.8-0ubuntu3 network management framework (GNOME frontend
      ii network-manager-kde 1:0.9~svn1112085-0ubuntu4 KDE system tray applet for controlling Netwo
      ii network-manager-openconnect 0.8-0ubuntu2 network management framework (Openconnect pl
      ii network-manager-openconnect-gnome 0.8-0ubuntu2 network management framework (Openconnect pl
      ii network-manager-openvpn 0.8-0ubuntu3 network management framework (OpenVPN plugin
      ii network-manager-openvpn-gnome 0.8-0ubuntu3 network management framework (OpenVPN plugin
      ii network-manager-pptp 0.8-0ubuntu3 network management framework (PPTP plugin)
      ii network-manager-pptp-gnome 0.8-0ubuntu3 network management framework (PPTP plugin, G
      ii network-manager-vpnc 0.8-0ubuntu3 network management framework (VPNC plugin)
      ii network-manager-vpnc-gnome 0.8-0ubuntu3 network management framework (VPNC plugin, G
      pierre@pierre-laptop:~$ /sbin/ifconfig -a
      eth0 Link encap:Ethernet HWaddr 00:40:ca:d3:77:b5
      UP BROADCAST MULTICAST MTU:1500 Metric:1
      Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 lg file transmission:1000
      Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
      Interruption:7 Adresse de base:0xe400

      lo Link encap:Boucle locale
      inet adr:127.0.0.1 Masque:255.0.0.0
      adr inet6: ::1/128 Scope:Hôte
      UP LOOPBACK RUNNING MTU:16436 Metric:1
      Packets reçus:57 erreurs:0 :0 overruns:0 frame:0
      TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 lg file transmission:0
      Octets reçus:5116 (5.1 KB) Octets transmis:5116 (5.1 KB)

      wlan0 Link encap:Ethernet HWaddr 00:90:4b:ff:04:4b
      inet adr:192.168.1.15 Bcast:192.168.1.255 Masque:255.255.255.0
      adr inet6: fe80::290:4bff:feff:44b/64 Scope:Lien
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      Packets reçus:1844 erreurs:0 :0 overruns:0 frame:0
      TX packets:1915 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 lg file transmission:1000
      Octets reçus:1032792 (1.0 MB) Octets transmis:332149 (332.1 KB)

      pierre@pierre-laptop:~$ /sbin/iwconfig
      lo no wireless extensions.

      eth0 no wireless extensions.

      wlan0 IEEE 802.11bg ESSID:"Livebox-9328"
      Mode:Managed Frequency:2.437 GHz Access Point: 00:19:70:37:1B:E9
      Bit Rate=54 Mb/s Tx-Power=20 dBm
      Retry long limit:7 RTS thr:off Fragment thr:off
      Power Management:on
      Link Quality=34/70 Signal level=-76 dBm
      Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
      Tx excessive retries:0 Invalid misc:0 Missed beacon:0

      pierre@pierre-laptop:~$ /sbin/iwlist wlan0 scan
      wlan0 Scan completed :
      Cell 01 - Address: 00:19:70:37:1B:E9
      Channel:6
      Frequency:2.437 GHz (Channel 6)
      Quality=41/70 Signal level=-69 dBm
      Encryption key:on
      ESSID:"Livebox-9328"
      Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
      9 Mb/s; 12 Mb/s; 18 Mb/s
      Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
      Mode:Master
      Extra:tsf=0000006b5afd9819
      Extra: Last beacon: 35360ms ago
      IE: Unknown: 000C4C697665626F782D39333238
      IE: Unknown: 010882848B960C121824
      IE: Unknown: 030106
      IE: IEEE 802.11i/WPA2 Version 1
      Group Cipher : TKIP
      Pairwise Ciphers (2) : CCMP TKIP
      Authentication Suites (1) : PSK
      IE: WPA Version 1
      Group Cipher : TKIP
      Pairwise Ciphers (2) : CCMP TKIP
      Authentication Suites (1) : PSK
      IE: Unknown: 2A0100
      IE: Unknown: 32043048606C
      IE: Unknown: DD180050F2020101820003A4000027A4000042435E0062322F00
      IE: Unknown: 2D1A4C101B0000000000000000000000000000000000000000000000
      IE: Unknown: 3D1606001B00000000000000000000000000000000000000
      IE: Unknown: DD0900037F01010000FF7F
      IE: Unknown: DD0A00037F04010020000000
      IE: Unknown: 0706465220010D14
      IE: Unknown: DD880050F204104A000110104400010210570001001041000100103B000103104700100026919893280026919893289198932810210005536167656D102300084C697665626F7832102400084C697665626F78321042000A4C4B31303039314450331054000800060050F20400011011000D4C697665626F78322D39333238100800020086103C000101
      1. Modérateur
        Ok alors la bonne nouvelle c'est que ton wifi semble parfaitement marcher sous ubuntu, nous sommes d'accord ?

        Maintenant ce que je n'ai pas très bien compris, c'est ce que tu veux faire. Tu veux faire en sorte qu'ubuntu serve de pont réseau entre ta livebox et un ton portable xp ?
        1. voilà mamiemando, c'est ça, le wifi interne fonctionne avec internet. Et je voudrais configurer ubuntu pour faire un répéteur wifi (problème de portée de la livebox), et j'ai un dongle wifi avec une grande antenne qui doit porter loin (sans nom mais puce ralink) qui fonctionne aussi je pense. Je pensais donc faire un point d'accès sur ubuntu de manière à voir sur les autres ordinateurs comme si c'était une box.

          Le truc c'est que quand je branche le dongle, les deux wifi se connecte à internet j'ai l'impression et je n'arrive pas à trouver la bonne formule pour que ça fonctionne comme je veux.
          J'ai trouvé un schéma qui correspond à ce que je veux faire :
          http://blog.theclimber.be/public/img/informatique/Tutorial/wifi.png
          1. bonjour mamiemando,
            ça ne marche toujours pas, que des tutos incompréhensible et inexploitable. est-ce que je peux faire un pont en mettant les bonnes ips simplement ?
            j'ai installé hostpd (paquet synaptique)
            ou il faut une configuration plus fine ?
            1. Modérateur
              Pour moi il faut que tu aies dans /etc/network/interfaces un truc dans ce genre (à vérifier) :

              # The loopback network interface
              auto lo
              iface lo inet loopback
              
              # Ethernet
              auto eth0
              iface eth0 inet static
                address 192.168.20.106
                netmask 255.255.255.0
                network 192.168.20.0
                broadcast 192.168.20.255
                gateway 192.168.20.1
              
              # Bridge setup
              iface br0 inet static
                   bridge_ports eth0 ra0
                   pre-up ifconfig eth0 up
                   pre-up ifconfig ra0 up
                   pre-up iwconfig ra0 mode master
                   pre-up brctl addbr br0
                   pre-up brctl addif br0 eth0 ra0
                   address 192.168.157.1
                   broadcast 192.168.157.255
                   netmask 255.255.255.0
                   post-down ifconfig eth0 down
                   post-down ifconfig ra0 down
                   post-down brctl delif br0 eth0
                   post-down brctl delif br0 ra0
                   post-down brctl delbr br0
              


              Ensuite, connecte-toi en wifi à ta machine ubuntu. Puis sur ta machine ubuntu :

              ifup br0


              Normalement tu devrais voir l'interface ra0, br0 et eth0... correctement initialisées. Pour s'en assurer renvoie moi le résultat de :

              /sbin/ifconfig -a
              /sbin/route -n


              Les articles sur lesquels je me base :
              https://www.ibm.com/developerworks/library/l-wap/index.html
              https://wiki.debian.org/BridgeNetworkConnections

              Bonne chance