Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 17/01/2015, à 21:41

Tameiki

[Non résolu] Partage connexion Wi-Fi avec une carte réseau

Bonjour !

Une demi journée que je suis dessus, et comme je commence sérieusement à patauger, je me dis qu'un peu d'aide... Bah.... M'aiderai ?

M'fin boilà !

Mon FAI étant un FAI de résidence, je n'ai droit avec mon compte de client de FAI qu'à un seul appareil connecté à la fois. Seulement, j'ai mon PC portable, et mon téléphone portable.

Aimant me lancer des défis (et ne pouvant pas contourner cette "routine" du serveur de mon FAI), j'ai voulu partager la connexion de mon ordinateur (uniquement avec mon portable en revanche, donc avec MdP etc... bref, réglages).

J'ai entendu dire qu'on pouvait le faire, de partager la connexion Ethernet, mais aussi Wi-Fi/Wi-Fi avec une seule carte réseau, à l'aide de réseaux virtuels.

J'ai donc cherché, etc... Et... Bah j'arrive plus. Voici où j'en suis:

D'après ce que j'ai compris, je dois utiliser la commande  => iw dev wlan0 interface add ubuntushared type AP
Mais on me demande d'abord de lancer hostapd.

root@guiguy-GT70-2PC:~# iw dev wlan0 interface add ubuntushared type ap
You need to run a management daemon, e.g. hostapd,
see http://wireless.kernel.org/en/users/Documentation/hostapd
for more information on how to do that.
root@guiguy-GT70-2PC:~#

Lorsque je l'éxécute => hostapd /etc/hostapd/hostapd.conf (contenu plus bas), j'ai les messages suivants:

root@guiguy-GT70-2PC:/etc/hostapd# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Could not configure driver mode
nl80211 driver initialization failed.
hostapd_free_hapd_data: Interface wlan0 wasn't started
root@guiguy-GT70-2PC:/etc/hostapd# 

J'ai entendu dire qu'il fallait éteindre le service networking, mais j'y arrive pas, et à partir de là mon problème doit être assez pointilleux pour ne rien trouver sur Google.

Si on pouvait me donner un petit coup de main pour cette configuration, je vous en remercierais plus que je ne le fais déjà car vous lisez ces lignes: Merci ^_^

J'ai également exécuté le script qu'il y a en Post-it du forum, pour que vous ayez toutes les informations qu'il vous faut, je suis présent pour vous en donner d'autres si vous le désirez.

Merci d'avance

Cordialement



---CONTENU DE HOSTAPD.CONF---

#### Personnal configuration ####

# interface wlan du Wi-Fi
interface=ubuntushared

# nl80211 avec tous les drivers Linux mac80211 
driver=nl80211

# Nom du spot Wi-Fi
ssid=UbuntuShared

# mode Wi-Fi (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g)
hw_mode=g

# canal de fréquence Wi-Fi (1-14)
channel=6

# Config MdP Wi-Fi -- MdP = ubuntuguiguyaccess80
wpa=1
#wpa_psk=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
wpa_passphrase=ubuntuguiguyaccess80
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP

# Beacon interval in kus (1.024 ms)
beacon_int=100

# DTIM (delivery trafic information message) 
dtim_period=2

# Maximum number of stations allowed in station table
max_num_sta=255

# RTS/CTS threshold; 2347 = disabled (default)
rts_threshold=2347

# Fragmentation threshold; 2346 = disabled (default)
fragm_threshold=2346

---CONTENU SCRIPT INFO---

>>    cat /etc/lsb-release 

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"

>>    lsusb 

Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 1770:ff00  
Bus 003 Device 004: ID 0cf3:3004 Atheros Communications, Inc. 
Bus 003 Device 003: ID 046d:c537 Logitech, Inc. 
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

>>    lspci -k -nn | grep -A 3 -i net 

03:00.0 Ethernet controller [0200]: Qualcomm Atheros Killer E2200 Gigabit Ethernet Controller [1969:e091] (rev 13)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:10ec]
	Kernel driver in use: alx
04:00.0 Network controller [0280]: Qualcomm Atheros AR9462 Wireless Network Adapter [168c:0034] (rev 01)
	Subsystem: Bigfoot Networks, Inc. Killer Wireless-N 1202 Half-size Mini PCIe Card [1a56:2003]
	Kernel driver in use: ath9k
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10ec:5227] (rev 01)
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:10ec]

>>    sudo lshw -C network 

  *-network
       description: Ethernet interface
       produit: Killer E2200 Gigabit Ethernet Controller
       fabriquant: Qualcomm Atheros
       identifiant matériel: 0
       information bus: pci@0000:03:00.0
       nom logique: eth0
       version: 13
       numéro de série: 44:8a:5b:41:f8:5a
       capacité: 1Gbit/s
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pm pciexpress msi msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=alx latency=0 link=no multicast=yes port=twisted pair
       ressources: irq:49 mémoire:f7a00000-f7a3ffff portE/S:d000(taille=128)
  *-network
       description: Interface réseau sans fil
       produit: AR9462 Wireless Network Adapter
       fabriquant: Qualcomm Atheros
       identifiant matériel: 0
       information bus: pci@0000:04:00.0
       nom logique: wlan0
       version: 01
       numéro de série: 34:23:87:a7:f9:47
       bits: 64 bits
       horloge: 33MHz
       fonctionnalités: pm msi pciexpress bus_master cap_list rom ethernet physical wireless
       configuration: broadcast=yes driver=ath9k driverversion=3.13.0-44-generic firmware=N/A ip=10.188.175.100 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       ressources: irq:19 mémoire:f7900000-f797ffff mémoire:f7980000-f798ffff

>>    lsmod 

Module                  Size  Used by
vmnet                  56072  13 
parport_pc             32701  0 
vmw_vsock_vmci_transport    26278  0 
vsock                  34903  1 vmw_vsock_vmci_transport
vmw_vmci               62966  1 vmw_vsock_vmci_transport
vmmon                  80278  0 
pci_stub               12622  1 
vboxpci                23194  0 
vboxnetadp             25670  0 
vboxnetflt             27613  0 
vboxdrv               339502  3 vboxnetadp,vboxnetflt,vboxpci
bbswitch               13943  0 
snd_hda_codec_realtek    65580  1 
bnep                   19624  2 
rfcomm                 69160  8 
ath3k                  13318  0 
btusb                  32412  0 
bluetooth             391136  23 bnep,ath3k,btusb,rfcomm
nvidia              10744943  39 
hid_generic            12548  0 
mxm_wmi                13021  0 
msi_wmi                13354  0 
sparse_keymap          13948  1 msi_wmi
usbhid                 52659  0 
hid                   106148  2 hid_generic,usbhid
snd_hda_intel          56451  3 
snd_hda_codec         192906  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep              13602  1 snd_hda_codec
arc4                   12608  2 
snd_pcm               102099  2 snd_hda_codec,snd_hda_intel
x86_pkg_temp_thermal    14205  0 
intel_powerclamp       14705  0 
coretemp               13435  0 
snd_page_alloc         18710  2 snd_pcm,snd_hda_intel
snd_seq_midi           13324  0 
kvm_intel             143187  0 
snd_seq_midi_event     14899  1 snd_seq_midi
ath9k                 164164  0 
ath9k_common           13551  1 ath9k
snd_rawmidi            30144  1 snd_seq_midi
ath9k_hw              453856  2 ath9k_common,ath9k
kvm                   455835  1 kvm_intel
crct10dif_pclmul       14289  0 
crc32_pclmul           13113  0 
ghash_clmulni_intel    13216  0 
aesni_intel            55624  0 
aes_x86_64             17131  1 aesni_intel
lrw                    13286  1 aesni_intel
ath                    28698  3 ath9k_common,ath9k,ath9k_hw
gf128mul               14951  1 lrw
glue_helper            13990  1 aesni_intel
mac80211              630669  1 ath9k
ablk_helper            13597  1 aesni_intel
cryptd                 20359  3 ghash_clmulni_intel,aesni_intel,ablk_helper
joydev                 17381  0 
i915                  784207  2 
rtsx_pci_ms            18151  0 
mei_me                 18627  0 
serio_raw              13462  0 
memstick               16966  1 rtsx_pci_ms
snd_seq                61560  2 snd_seq_midi_event,snd_seq_midi
cfg80211              484040  3 ath,ath9k,mac80211
snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              29482  2 snd_pcm,snd_seq
mei                    82276  1 mei_me
snd                    69322  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
lpc_ich                21080  0 
soundcore              12680  1 snd
binfmt_misc            17468  1 
drm_kms_helper         55071  1 i915
drm                   303102  5 i915,drm_kms_helper,nvidia
video                  19476  1 i915
i2c_algo_bit           13413  1 i915
wmi                    19177  2 msi_wmi,mxm_wmi
mac_hid                13205  0 
ppdev                  17671  0 
lp                     17759  0 
parport                42348  3 lp,ppdev,parport_pc
rtsx_pci_sdmmc         23274  0 
ahci                   25819  2 
psmouse               106714  0 
alx                    32452  0 
rtsx_pci               46245  2 rtsx_pci_ms,rtsx_pci_sdmmc
libahci                32716  1 ahci
mdio                   13807  1 alx
>>    iwconfig 

wlan0     IEEE 802.11abgn  ESSID:"Wifirst/B Res. Aldebert Bellier"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: C8:BE:19:0A:3E:A8   
          Bit Rate=52 Mb/s   Tx-Power=17 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=59/70  Signal level=-51 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:14  Invalid misc:177   Missed beacon:0


>>    ifconfig -a 

eth0      Link encap:Ethernet  HWaddr 44:8a:5b:41:f8:5a  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TXパケット:0 エラー:0 損失:0 オーバラン:0 キャリア:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)
          Interruption:18 

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:65536  Metric:1
          Packets reçus:1328 erreurs:0 :0 overruns:0 frame:0
          TXパケット:1328 エラー:0 損失:0 オーバラン:0 キャリア:0
          collisions:0 lg file transmission:0 
          Octets reçus:140520 (140.5 KB) Octets transmis:140520 (140.5 KB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:c0:00:01  
          inet adr:172.16.162.1  Bcast:172.16.162.255  Masque:255.255.255.0
          adr inet6: fe80::250:56ff:fec0:1/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TXパケット:108 エラー:0 損失:0 オーバラン:0 キャリア:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:c0:00:08  
          inet adr:172.16.23.1  Bcast:172.16.23.255  Masque:255.255.255.0
          adr inet6: fe80::250:56ff:fec0:8/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:0 erreurs:0 :0 overruns:0 frame:0
          TXパケット:108 エラー:0 損失:0 オーバラン:0 キャリア:0
          collisions:0 lg file transmission:1000 
          Octets reçus:0 (0.0 B) Octets transmis:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 34:23:87:a7:f9:47  
          inet adr:10.188.175.100  Bcast:10.188.255.255  Masque:255.255.0.0
          adr inet6: fe80::3623:87ff:fea7:f947/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:15751 erreurs:0 :486 overruns:0 frame:0
          TXパケット:7426 エラー:0 損失:0 オーバラン:0 キャリア:0
          collisions:0 lg file transmission:1000 
          Octets reçus:7834315 (7.8 MB) Octets transmis:874422 (874.4 KB)


>>    sudo iwlist scan 


>>    uname -r -m 

3.13.0-44-generic x86_64

>>    cat /etc/network/interfaces 

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

>>    nm-tool 


NetworkManager Tool

State: connected (global)

- Device: B4:CE:F6:BE:9B:17 ----------------------------------------------------
  Type:              Bluetooth
  Driver:            bluez
  State:             disconnected
  Default:           no

  Capabilities:


- Device: wlan0  [Wifirst/B Res. Aldebert Bellier] -----------------------------
  Type:              802.11 WiFi
  Driver:            ath9k
  State:             connected
  Default:           yes
  HW Address:        34:23:87:A7:F9:47

  Capabilities:
    Speed:           26 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points (* = current AP)
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:DC:60, Freq 2437 MHz, Rate 54 Mb/s, Strength 89
    FOYER:           Infra, 00:22:55:F1:D2:70, Freq 2412 MHz, Rate 54 Mb/s, Strength 80
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D8:18, Freq 2437 MHz, Rate 54 Mb/s, Strength 69
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D6:30, Freq 2437 MHz, Rate 54 Mb/s, Strength 60
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D4:60, Freq 2462 MHz, Rate 54 Mb/s, Strength 45
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D5:E8, Freq 2412 MHz, Rate 54 Mb/s, Strength 37
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D8:28, Freq 2437 MHz, Rate 54 Mb/s, Strength 44
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D5:B0, Freq 2437 MHz, Rate 54 Mb/s, Strength 40
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D6:20, Freq 2437 MHz, Rate 54 Mb/s, Strength 40
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D4:18, Freq 2462 MHz, Rate 54 Mb/s, Strength 29
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:DC:50, Freq 2437 MHz, Rate 54 Mb/s, Strength 44
    Wifirst/B Res. Aldebert Bellier: Infra, C8:BE:19:0A:42:80, Freq 2437 MHz, Rate 54 Mb/s, Strength 59
    *Wifirst/B Res. Aldebert Bellier: Infra, C8:BE:19:0A:3E:A8, Freq 2437 MHz, Rate 54 Mb/s, Strength 63
    GALAXY Ace:      Infra, 98:52:B1:AD:69:0D, Freq 2437 MHz, Rate 54 Mb/s, Strength 24 WPA2
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D4:90, Freq 2437 MHz, Rate 54 Mb/s, Strength 30
    Wifirst/B Res. Aldebert Bellier: Infra, CC:B2:55:8C:D3:C0, Freq 2437 MHz, Rate 54 Mb/s, Strength 22

  IPv4 Settings:
    Address:         10.188.175.100
    Prefix:          16 (255.255.0.0)
    Gateway:         10.188.0.1

    DNS:             10.188.0.1


- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            alx
  State:             unavailable
  Default:           no
  HW Address:        44:8A:5B:41:F8:5A

  Capabilities:
    Carrier Detect:  yes

  Wired Properties
    Carrier:         off



>>    sudo rfkill list 

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hci0: Bluetooth
	Soft blocked: yes
	Hard blocked: no

Dernière modification par Guiguy (Le 27/01/2015, à 19:36)

Hors ligne

#2 Le 20/01/2015, à 22:42

Tameiki

Re : [Non résolu] Partage connexion Wi-Fi avec une carte réseau

Petit up pour prévenir que je suis toujours dessus sans rien trouver (et que je continue à surveiller ce post par la même occasion).

Hors ligne

#3 Le 28/03/2018, à 07:44

Bob36180

Re : [Non résolu] Partage connexion Wi-Fi avec une carte réseau

Toujours dessus ?? lol


La différence entre Linux et Windows, c'est que Linux c'est comme une belle fille, il faut l'apprivoiser, la comprendre, la séduire. Windows, c'est comme une prostituée, il faut payer et surtout bien se protéger...

Hors ligne