ubuntu 16.04 usb tethering só funciona algumas vezes com lg k10

0

Para mim, amarrar só funciona às vezes Eu tenho que fazer sudo dhcpcd enp0s29u1u2 algumas vezes e, em seguida, reinicie o Ubuntu 16 até uma dúzia de vezes. Então, faça o ping em www.yahoo.com. Quando o ping funciona, o firefox também funciona. Às vezes funciona. Não consigo descobrir porque isso só funciona às vezes

amit@amit-Satellite-C640:~$ ifconfig -a
enp0s29u1u2 Link encap:Ethernet  HWaddr 02:7f:02:71:5d:54  
          inet addr:192.168.42.162  Bcast:192.168.42.255  Mask:255.255.255.0
          inet6 addr: fe80::131a:a74c:7194:6be7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:158 errors:0 dropped:0 overruns:0 frame:0
          TX packets:276 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:53185 (53.1 KB)  TX bytes:51947 (51.9 KB)

enp1s0    Link encap:Ethernet  HWaddr 00:26:6c:e4:1c:93  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:12276 (12.2 KB)  TX bytes:12276 (12.2 KB)

amit@amit-Satellite-C640:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp1s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:26:6c:e4:1c:93 brd ff:ff:ff:ff:ff:ff
3: enp0s29u1u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 02:7f:02:71:5d:54 brd ff:ff:ff:ff:ff:ff
amit@amit-Satellite-C640:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.42.129  0.0.0.0         UG    100    0        0 enp0s29u1u2
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 enp0s29u1u2
192.168.42.0    0.0.0.0         255.255.255.0   U     100    0        0 enp0s29u1u2
amit@amit-Satellite-C640:~$ lsusb
Bus 002 Device 004: ID 1004:6344 LG Electronics, Inc. G2 Android Phone [tethering mode]
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 10f1:1a34 Importek 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

amit@amit-Satellite-C640:~$ dmesg -w | grep usb
[   17.703501] usb 2-1.2: Product: LG-M250
[   17.703506] usb 2-1.2: Manufacturer: LGE
[   17.703511] usb 2-1.2: SerialNumber: LGM250CYW4TKR8UWM7
[   18.865568] usbcore: registered new interface driver cdc_acm
[   19.382515] usbcore: registered new interface driver cdc_ether
[   19.398839] rndis_host 2-1.2:1.0 usb0: register 'rndis_host' at usb-0000:00:1d.0-1.2, RNDIS device, 02:7f:02:71:5d:54
[   19.398872] usbcore: registered new interface driver rndis_host
[   19.400930] rndis_host 2-1.2:1.0 enp0s29u1u2: renamed from usb0

Atualizado agora, ele automaticamente não pega o ip fixo 162 e parece estar funcionando 100% ok

amit@amit-Satellite-C640:~$ ifconfig -a
enp0s29u1u2 Link encap:Ethernet  HWaddr 02:7f:02:71:5d:54  
          inet addr:192.168.10.245  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::222b:461f:e462:f51d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39703 errors:4 dropped:0 overruns:0 frame:4
          TX packets:34563 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:37102699 (37.1 MB)  TX bytes:6429355 (6.4 MB)

enp1s0    Link encap:Ethernet  HWaddr 00:26:6c:e4:1c:93  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:249 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:18409 (18.4 KB)  TX bytes:18409 (18.4 KB)
    
por Surya Kiran 15.08.2017 / 11:01

0 respostas