You are not logged in.

#1 2018-02-12 12:39:11

Tigraiou
Member
Registered: 2018-02-12
Posts: 5

Can pair with wifi but cannot talk to the network

Hi, I'm on my network but I cannot connect to the dhcp server nor acces the network with a static ip.
I know the network work because i'm currently connected with my phone and deliver wifi to my computer via bluetooth.

wpa_cli output

# sudo wpa_cli status
Selected interface 'wlo1'
bssid=00:30:4f:82:13:b0
freq=2462
ssid=Origyne
id=2
mode=station
pairwise_cipher=CCMP
group_cipher=TKIP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
p2p_device_address=20:68:9d:0c:97:0e
address=20:68:9d:0c:97:0e
uuid=9d0d3a84-9ade-5020-9a06-efcee57588b6

dhcpcd output

 
# sudo dhcpcd -4 wlo1
DUID 00:01:00:01:1e:6c:78:21:b4:b5:2f:7a:0d:5f
wlo1: IAID 9d:0c:97:0e
wlo1: soliciting a DHCP lease
timed out
dhcpcd exited

iwconfig output

# iwconfig
...
wlo1      IEEE 802.11  ESSID:"Origyne"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:30:4F:82:13:B0   
          Bit Rate=1 Mb/s   Tx-Power=18 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=6 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:54  Invalid misc:4   Missed beacon:0
...

I've done research on the forum and on google but i cannot find anyone with the same problem as me. It's weird because this is my work network but I can connect to my home network.

Offline

#2 2018-02-12 13:22:37

robg
Member
Registered: 2015-03-05
Posts: 218

Re: Can pair with wifi but cannot talk to the network

So you are using bluetooth tethering and connecting via WLAN-standard methods? First, to strengthen the belief that the issue doesn't lie somewhere else, disable all network services and try tethering via USB. If this works, we'll have to see how to set it up for bluetooth. Judging from this and this, it appears to be somewhat tedious although NetworkManager seems to be able to handle it relatively well.

Btw, welcome to Arch!

Last edited by robg (2018-02-12 13:23:39)

Offline

#3 2018-02-12 16:11:04

Tigraiou
Member
Registered: 2018-02-12
Posts: 5

Re: Can pair with wifi but cannot talk to the network

Thanks for the welcome smile

The problem is not when I use bluetooth, it's when I try to connect my laptop to the wifi.
My bluetooth.service is disable at start so I use bluetooth only when I fail to connect to the wifi.

When I want to connect to wifi I first launch wpa_supplicant

# sudo wpa_supplicant -i wlo1 - c /etc/wpa_supplicant/wpa_supplicant.conf -B

Then I start dhcpcd

# sudo dhcpcd wlo1

I don't use NetworkManager (I learn it exist today ^^') I just test with it and it fail to talk to the dhcp (with nmcli)

Offline

#4 2018-02-12 17:41:58

robg
Member
Registered: 2015-03-05
Posts: 218

Re: Can pair with wifi but cannot talk to the network

Oh I see, thanks for the clarification.

May I then inquire

1) how you connect via Bluetooth? Could you please post the issued commands along with their outputs?
2) what happens if you disable all network-related services and try connecting via nmcli? Again, please post commands & outputs and the output of `systemctl list-unit-files --state=enabled`.

Offline

#5 2018-02-12 17:50:17

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: Can pair with wifi but cannot talk to the network

The obvious thing is that dhcpcd did not obtain an IP address.  What are the output of iw dev wlo1 info  and of ip addr  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Online

#6 2018-02-14 15:48:23

Tigraiou
Member
Registered: 2018-02-12
Posts: 5

Re: Can pair with wifi but cannot talk to the network

@ewaller

# iw dev wlo1 info
Interface wlo1
        ifindex 3
        wdev 0x1
        addr 20:68:9d:0c:97:0e
        ssid Origyne
        type managed
        wiphy 0
        channel 11 (2462 MHz), width: 20 MHz, center1: 2462 MHz
        txpower 18.00 dBm
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether b4:b5:2f:7a:0d:5f brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 20:68:9d:0c:97:0e brd ff:ff:ff:ff:ff:ff
    inet6 fe80::429a:b12:21a7:6458/64 scope link
       valid_lft forever preferred_lft forever
4: bnep0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 20:68:9d:0d:32:ea brd ff:ff:ff:ff:ff:ff
    inet 192.168.44.82/24 brd 192.168.44.255 scope global bnep0
       valid_lft forever preferred_lft forever
    inet6 fe80::2268:9dff:fe0d:32ea/64 scope link
       valid_lft forever preferred_lft forever

Here bnep0 is my bluetooth interface.

Offline

#7 2018-02-14 16:02:26

Tigraiou
Member
Registered: 2018-02-12
Posts: 5

Re: Can pair with wifi but cannot talk to the network

@robg
for the bluetooth:

# sudo systemctl start bluetooth.service
<No output>
# sudo bluetoothctl
[NEW] Controller 20:68:9D:0D:32:EA skyrim-reborn [default]
[NEW] Device 84:C7:EA:C4:36:BE Xperia L1
[NEW] Device 00:18:09:2E:D5:4A MDR-ZX330BT
Agent registered
[bluetooth]# power on
[CHG] Controller 20:68:9D:0D:32:EA Class: 0x000c010c
Changing power on succeeded
[CHG] Controller 20:68:9D:0D:32:EA Powered: yes
[CHG] Device 84:C7:EA:C4:36:BE Connected: yes
[Xperia L1]#

#### In an other tab

# dbus-send --system --type=method_call --dest=org.bluez /org/bluez/hci0/dev_84_C7_EA_C4_36_BE org.bluez.Network1.Connect string:'nap'
# sudo dhcpcd enp0s29u1u6
DUID 00:01:00:01:1e:6c:78:21:b4:b5:2f:7a:0d:5f
enp0s29u1u6: IAID 9d:0d:32:ea
enp0s29u1u6: soliciting a DHCP lease
enp0s29u1u6: offered 192.168.44.82 from 192.168.44.1
enp0s29u1u6: probing address 192.168.44.82/24
enp0s29u1u6: soliciting an IPv6 router
enp0s29u1u6: leased 192.168.44.82 for 3600 seconds
enp0s29u1u6: adding route to 192.168.44.0/24
enp0s29u1u6: adding default route via 192.168.44.1
forked to background, child pid 1260

With nmcli

# sudo systemctl start NetworkManager

#nmcli dev wifi c Origyne password $MY_SUPER_SECRET
Error: Connection activation failed: (5) IP configuration could not be reserved (no available address, timeout, etc.).

The log of systemctl

# sudo systemctl status NetworkManager -n 30
● NetworkManager.service - Network Manager
   Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: disabled)
  Drop-In: /usr/lib/systemd/system/NetworkManager.service.d
           └─NetworkManager-ovs.conf
   Active: active (running) since Wed 2018-02-14 16:50:28 CET; 3min 14s ago
     Docs: man:NetworkManager(8)
 Main PID: 506 (NetworkManager)
    Tasks: 3 (limit: 4581)
   CGroup: /system.slice/NetworkManager.service
           └─506 /usr/bin/NetworkManager --no-daemon
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0818] device (wlo1): Activation: (wifi) connection 'Origyne 4' has security, and secrets exist.  No new secrets needed.
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0820] Config: added 'ssid' value 'Origyne'
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0821] Config: added 'scan_ssid' value '1'
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0822] Config: added 'bgscan' value 'simple:30:-80:86400'
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0823] Config: added 'key_mgmt' value 'WPA-PSK'
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0823] Config: added 'auth_alg' value 'OPEN'
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0824] Config: added 'psk' value '<hidden>'
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.0859] device (wlo1): supplicant interface state: disabled -> inactive
Feb 14 16:52:01 skyrim-reborn NetworkManager[506]: <info>  [1518623521.3869] device (wlo1): supplicant interface state: inactive -> scanning
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.3510] device (wlo1): supplicant interface state: scanning -> authenticating
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.3671] device (wlo1): supplicant interface state: authenticating -> associating
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.3671] device (wlo1): supplicant interface state: associating -> associated
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.5829] device (wlo1): supplicant interface state: associated -> 4-way handshake
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.6205] device (wlo1): supplicant interface state: 4-way handshake -> completed
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.6206] device (wlo1): Activation: (wifi) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'Origyne'.
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.6207] device (wlo1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Feb 14 16:52:02 skyrim-reborn NetworkManager[506]: <info>  [1518623522.6212] dhcp4 (wlo1): activation: beginning transaction (timeout in 45 seconds)
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <warn>  [1518623568.0052] dhcp4 (wlo1): request timed out
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.0053] dhcp4 (wlo1): state changed unknown -> timeout
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.0192] dhcp4 (wlo1): canceled DHCP transaction
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.0193] dhcp4 (wlo1): state changed timeout -> done
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.0201] device (wlo1): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.0205] manager: NetworkManager state is now DISCONNECTED
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <warn>  [1518623568.0235] device (wlo1): Activation: failed for connection 'Origyne 4'
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.0863] device (wlo1): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.5186] device (wlo1): set-hw-addr: set MAC address to E6:4E:C3:C1:3A:84 (scanning)
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <warn>  [1518623568.5331] sup-iface[0x562415fda170,wlo1]: connection disconnected (reason -3)
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.5332] device (wlo1): supplicant interface state: completed -> disconnected
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.5370] device (wlo1): supplicant interface state: disconnected -> disabled
Feb 14 16:52:48 skyrim-reborn NetworkManager[506]: <info>  [1518623568.5491] device (wlo1): supplicant interface state: disabled -> disconnected

Offline

#8 2018-02-15 13:17:22

unixman
Member
Registered: 2015-03-12
Posts: 64

Re: Can pair with wifi but cannot talk to the network

It seems that dhcpcd step is the source of the error. So look at <man dhcpcd.conf>  then tweak /etc/dhcpcd.conf

Edit: even you can try static IP?

Last edited by unixman (2018-02-15 13:19:23)

Offline

#9 2018-02-15 16:14:33

Tigraiou
Member
Registered: 2018-02-12
Posts: 5

Re: Can pair with wifi but cannot talk to the network

I tried static ip but i still cannot talk to the network

# sudo ip addr add dev wlo1 192.168.15.200
# ip a s
...
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueu state UP group default qlen 1000
    link/ether 20:68:9d:0c:97:0e brd ff:ff:ff:ff:ff:ff
    inet 192.168.15.200/24 scope global wlo1
        valid_lft foreever prefered_lft forever
    inet6 fe80::429a:b12:21a7:6458/64 scope link
         valid_lft foreever prefered_lft forever
# ping 192.168.15.1 (this is my box ip)
PING 192.168.15.1 (192.168.15.1) 56(84) bytes of data.
^C
--- 192.168.15.1 ping statistics ---
30 packets transmitted, 0 recieved, 100% packet loss, time 29715ms

Offline

Board footer

Powered by FluxBB