[srslte-users] UE can not connect to internet through enb+epc

Jane Zhang janezhang76201 at gmail.com
Thu Jun 4 20:58:15 UTC 2020


Dear srsLTE team
I run srsue on a machine, enb+epc on another machine. LimeSDR USB are
RF end on both sides.
I try to use chrome to open www.google.com on UE machine. But i failed.
I did:
1\ UE attached the eNB. UE got an IP address :172.16.0.2
2\ use command on UE:
sudo route add default gw 172.16.0.1 tun_srsue
3\ use command on epc:
sudo ./srsepc_if_masq.sh wlp2s0

on ue:

dell at dell-OptiPlex-9020:/etc$ ping google.com
ping: google.com: Name or service not known
dell at dell-OptiPlex-9020:/etc$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=3 ttl=53 time=54.0 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=53 time=85.7 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=53 time=97.8 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=53 time=80.4 ms
^C
--- 8.8.8.8 ping statistics ---
14 packets transmitted, 4 received, 71% packet loss, time 13164ms
rtt min/avg/max/mdev = 54.024/79.514/97.834/16.011 ms
dell at dell-OptiPlex-9020:/etc$ ping 172.217.1.46
PING 172.217.1.46 (172.217.1.46) 56(84) bytes of data.
>From 192.168.1.3 icmp_seq=12 Destination Host Unreachable
>From 192.168.1.3 icmp_seq=13 Destination Host Unreachable
>From 192.168.1.3 icmp_seq=14 Destination Host Unreachable
64 bytes from 172.217.1.46: icmp_seq=2 ttl=50 time=14140 ms
64 bytes from 172.217.1.46: icmp_seq=3 ttl=50 time=13174 ms
64 bytes from 172.217.1.46: icmp_seq=5 ttl=50 time=11477 ms
64 bytes from 172.217.1.46: icmp_seq=7 ttl=50 time=9632 ms
64 bytes from 172.217.1.46: icmp_seq=17 ttl=50 time=139 ms
64 bytes from 172.217.1.46: icmp_seq=18 ttl=50 time=250 ms
64 bytes from 172.217.1.46: icmp_seq=22 ttl=50 time=143 ms
^C
--- 172.217.1.46 ping statistics ---
25 packets transmitted, 7 received, +3 errors, 72% packet loss, time 24418ms
rtt min/avg/max/mdev = 139.604/6994.191/14140.324/6044.177 ms, pipe 14

on epc:
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=17.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=17.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=19.1 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=16.5 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 16.585/17.606/19.197/0.989 ms
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ ping google.com
PING google.com (172.217.1.46) 56(84) bytes of data.
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=1
ttl=51 time=34.1 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=2
ttl=51 time=38.5 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=3
ttl=51 time=33.6 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=4
ttl=51 time=36.6 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=5
ttl=51 time=37.2 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=6
ttl=51 time=37.3 ms
^C

I dont know whats wrong.

I attach output on ue ,epc, and resolv.conf.

May anyone help with this?

Thank you so much.
Please stay safe.


Jane
-------------- next part --------------
dell at dell-OptiPlex-9020:/etc$ route add default gw 172.16.0.1 tun_srsue
SIOCADDRT: Operation not permitted
dell at dell-OptiPlex-9020:/etc$ sudo route add default gw 172.16.0.1 tun_srsue
dell at dell-OptiPlex-9020:/etc$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    0      0        0 tun_srsue
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 tun_srsue
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 tun_srsue
dell at dell-OptiPlex-9020:/etc$ ping google.com
ping: google.com: Name or service not known
dell at dell-OptiPlex-9020:/etc$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=3 ttl=53 time=54.0 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=53 time=85.7 ms
64 bytes from 8.8.8.8: icmp_seq=11 ttl=53 time=97.8 ms
64 bytes from 8.8.8.8: icmp_seq=13 ttl=53 time=80.4 ms
^C
--- 8.8.8.8 ping statistics ---
14 packets transmitted, 4 received, 71% packet loss, time 13164ms
rtt min/avg/max/mdev = 54.024/79.514/97.834/16.011 ms
dell at dell-OptiPlex-9020:/etc$ ping 172.217.1.46
PING 172.217.1.46 (172.217.1.46) 56(84) bytes of data.
From 192.168.1.3 icmp_seq=12 Destination Host Unreachable
From 192.168.1.3 icmp_seq=13 Destination Host Unreachable
From 192.168.1.3 icmp_seq=14 Destination Host Unreachable
64 bytes from 172.217.1.46: icmp_seq=2 ttl=50 time=14140 ms
64 bytes from 172.217.1.46: icmp_seq=3 ttl=50 time=13174 ms
64 bytes from 172.217.1.46: icmp_seq=5 ttl=50 time=11477 ms
64 bytes from 172.217.1.46: icmp_seq=7 ttl=50 time=9632 ms
64 bytes from 172.217.1.46: icmp_seq=17 ttl=50 time=139 ms
64 bytes from 172.217.1.46: icmp_seq=18 ttl=50 time=250 ms
64 bytes from 172.217.1.46: icmp_seq=22 ttl=50 time=143 ms
^C
--- 172.217.1.46 ping statistics ---
25 packets transmitted, 7 received, +3 errors, 72% packet loss, time 24418ms
rtt min/avg/max/mdev = 139.604/6994.191/14140.324/6044.177 ms, pipe 14
dell at dell-OptiPlex-9020:/etc$ ping google.com
ping: google.com: Name or service not known

-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolv.conf
Type: application/octet-stream
Size: 715 bytes
Desc: not available
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200604/11b223b9/attachment.obj>
-------------- next part --------------
dell at dell-XPS-15-9550:/etc$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=26.2 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=19.3 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=16.8 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=16.6 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=54 time=19.6 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 5 received, 16% packet loss, time 5006ms
rtt min/avg/max/mdev = 16.687/19.734/26.209/3.465 ms
dell at dell-XPS-15-9550:/etc$ ping google.com
PING google.com (172.217.4.238) 56(84) bytes of data.
64 bytes from ord30s31-in-f14.1e100.net (172.217.4.238): icmp_seq=1 ttl=51 time=33.6 ms
64 bytes from ord30s31-in-f14.1e100.net (172.217.4.238): icmp_seq=2 ttl=51 time=38.6 ms
64 bytes from ord30s31-in-f14.1e100.net (172.217.4.238): icmp_seq=3 ttl=51 time=35.9 ms
64 bytes from ord30s31-in-f14.1e100.net (172.217.4.238): icmp_seq=4 ttl=51 time=35.7 ms
64 bytes from ord30s31-in-f14.1e100.net (172.217.4.238): icmp_seq=5 ttl=51 time=39.2 ms
64 bytes from ord30s31-in-f14.1e100.net (172.217.4.238): icmp_seq=6 ttl=51 time=35.0 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5005ms
rtt min/avg/max/mdev = 33.621/36.374/39.268/1.973 ms
dell at dell-XPS-15-9550:/etc$ ifconfig
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 1000  (Local Loopback)
        RX packets 16432  bytes 4173371 (4.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16432  bytes 4173371 (4.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

srs_spgw_sgi: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1500
        inet 172.16.0.1  netmask 255.255.255.0  destination 172.16.0.1
        inet6 fe80::287f:ba8e:1052:21cd  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 101  bytes 8484 (8.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 331  bytes 29378 (29.3 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.3  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::5721:373f:efb:1808  prefixlen 64  scopeid 0x20<link>
        ether 44:1c:a8:e2:64:99  txqueuelen 1000  (Ethernet)
        RX packets 247319  bytes 286758991 (286.7 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 139308  bytes 17051476 (17.0 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

dell at dell-XPS-15-9550:/etc$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    600    0        0 wlp2s0
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 srs_spgw_sgi
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0



dell at dell-XPS-15-9550:~$ cd srsLTE/srsepc
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ ls
bak             epc.conf.example    epcTestDuration.txt  mbms.conf.example  usbextender.txt
CMakeLists.txt  epcdl.txt           hdr                  src                user_db.csv
epc.conf        epcoutputdis1m.txt  mbms.conf            srsepc_if_masq.sh  user_db.csv.example
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ sudo ./srsepc_if_masq.sh wlp2s0
[sudo] password for dell: 
Masquerading Interface wlp2s0
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         _gateway        0.0.0.0         UG    600    0        0 wlp2s0
link-local      0.0.0.0         255.255.0.0     U     1000   0        0 wlp2s0
172.16.0.0      0.0.0.0         255.255.255.0   U     0      0        0 srs_spgw_sgi
192.168.1.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=17.5 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=17.0 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=19.1 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=16.5 ms
^C
--- 8.8.8.8 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 16.585/17.606/19.197/0.989 ms
dell at dell-XPS-15-9550:~/srsLTE/srsepc$ ping google.com
PING google.com (172.217.1.46) 56(84) bytes of data.
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=1 ttl=51 time=34.1 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=2 ttl=51 time=38.5 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=3 ttl=51 time=33.6 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=4 ttl=51 time=36.6 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=5 ttl=51 time=37.2 ms
64 bytes from ord37s07-in-f46.1e100.net (172.217.1.46): icmp_seq=6 ttl=51 time=37.3 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5006ms
rtt min/avg/max/mdev = 33.662/36.271/38.510/1.760 ms




More information about the srsran-users mailing list