You are not logged in.

#1 2015-07-29 12:14:40

chaoxifer
Member
Registered: 2013-09-09
Posts: 9

[SOLVED] Blackberry usb connection problem...

Hello,

I have a problem with usb connection with blackberry.

To develop blackberry application, it has to be connected via usb or wifi. Regularily, when I connect blackberry via USB, I can access with static IP (169.254.0.1).

However, to connect to blackberry successfully, I have to modify routing table. I just figured this solution but I don't understand why this works.


When I plugged in the blackberry with USB cable, the network would be following:

enp0s20u2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.0.2  netmask 255.255.255.252  broadcast 169.254.0.3
        inet6 fe80::94eb:cdff:fea2:1580  prefixlen 64  scopeid 0x20<link>
        ether 96:eb:cd:a2:15:80  txqueuelen 1000  (Ethernet)
        RX packets 9  bytes 1544 (1.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 34  bytes 5596 (5.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s20u5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.81.19.75  netmask 255.255.255.224  broadcast 10.81.19.95
        inet6 fe80::2e0:4cff:fe37:a631  prefixlen 64  scopeid 0x20<link>
        ether 00:e0:4c:37:a6:31  txqueuelen 1000  (Ethernet)
        RX packets 166573  bytes 223474185 (213.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 92431  bytes 9335785 (8.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s20u2i2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 96:eb:cd:a2:15:8d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 22  bytes 1140 (1.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22  bytes 1140 (1.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet 10.81.21.19  netmask 255.255.255.128  broadcast 10.81.21.127
        inet6 fe80::ea2a:eaff:fe2d:4281  prefixlen 64  scopeid 0x20<link>
        ether e8:2a:ea:2d:42:81  txqueuelen 1000  (Ethernet)
        RX packets 8130  bytes 1204788 (1.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 154  bytes 23301 (22.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

And execute 'route':

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    100    0        0 enp0s20u5
default         gateway         0.0.0.0         UG    600    0        0 wlp1s0
10.81.19.64     *               255.255.255.224 U     100    0        0 enp0s20u5
10.81.21.0      *               255.255.255.128 U     600    0        0 wlp1s0
169.254.0.0     *               255.255.255.252 U     100    0        0 enp0s20u2
169.254.0.1     laptop_SBK      255.255.255.255 UGH   100    0        0 enp0s20u2

So at this moment, I have to remove last item (169.254.0.1) to make it work by executing `route del 169.254.0.1`. I am not sure why this works... Can somebody explain about this?

And how can I prevent it from creating new item into routing table?

Last edited by chaoxifer (2015-07-29 15:34:05)

Offline

#2 2015-07-29 15:33:15

chaoxifer
Member
Registered: 2013-09-09
Posts: 9

Re: [SOLVED] Blackberry usb connection problem...

The reason was route obtained automatically by network manager. By selecting the option 'ignoring automatically obtain routes', the problem can be solved.

http://s23.postimg.org/f447kjnnf/solved_bb.png

Offline

Board footer

Powered by FluxBB