[srslte-users] ue can not connect to the internet
putaogan
15829620095 at 163.com
Fri Mar 23 09:20:27 UTC 2018
Thanks for your detailed reply so much.I am so sorry that i haven't solved my problem.here is what i have done:
step 1.The pc in which enb and epc run can connect to internet throught router,and another pc in which ue runs can not connect to internet because all network were closed. then run epc,enb,and ue,a virtual interface named srs_spgw_sgi (172.16.0.1) forms in enb pc and virtual interface named tun_srsue (172.16.0.2) forms in ue pc,they can ping each other.
step 2.As what you say,i run the "sudo ./srsLTE/srsepc/if_masq.sh" (it seems to be named 'if_masq.sh',not if_mask.sh),it reminds me :USage:‘sudo ./if_masq
.sh <Interface Name>' So i run the command :
sudo ./srsLTE/srsepc/if_masq.sh srs_spgw_sgi
step 3.I run the route -n to check the route table,and add default gw .The resault is in the mail attachment named add_gw.
step 4.I change the DNS by changing the file /etc/resolv.conf as mail attachment named ADD_DNS.then i restart the network by command "sudo/etc/init.d/networking restart".
but now ue still can not connect to the internet .i don not know what step i miss or what step i do wrong.
i am looking for you reply,
thanks
At 2018-03-22 19:42:29, "Pedro Alvarez" <pedro.alvarez at softwareradiosystems.com> wrote:
>Hi --
>
>If the UE and the eNB can ping each other it seems that the srsLTE
>system is working fine and the issue is more with the networking of
>your system.
>I did the following to be able use the Internet with srsUE:
>
>Step 1: Make sure that you've masqueraded the outgoing interface at
>the EPC. There is a convenience script for this at
>"srsLTE/srsepc/if_mask.sh".
>Step 2: Make sure you've set your default gateway at the UE. You can
>check your default gateway by doing "route -n" and you can add a gw by
>doing "route add default gw {SGI-IP-ADDRESS} {TUN-SRSUE-INTERFACE}".
>Step 3: If you are having DNS issues, make sure your DNS server is set
>up correctly. There is a discussion on how to do this for ubuntu here:
>https://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf
>On ubuntu 16.04, what worked for me was to disable the network
>manager, update "/etc/resolvconf/resolv.conf.d/head" and run "sudo
>resolvconf -u"; but there are a few different ways to do this.
>
>Hope this helps,
>Pedro
>
>On Thu, Mar 22, 2018 at 2:03 AM, putaogan <15829620095 at 163.com> wrote:
>> Dear all,
>> i am a newer and recently i am using a usrp B210 as srsUE running ,a usrp
>> B210 as srsENB and srsEPC as epc(enb and epc run in the same pc).I find that
>> ue
>> and enb can ping and transport video files each other,but ue can not connect
>> to the internet.I don not know what shall i do to get ue access to
>> internet,could you give me some advices?
>>
>> Best wishes,
>> thanks
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> srslte-users mailing list
>> srslte-users at lists.softwareradiosystems.com
>> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180323/5f3f1e0e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_gw.png
Type: image/png
Size: 321593 bytes
Desc: not available
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180323/5f3f1e0e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ADD_DNS.png
Type: image/png
Size: 146364 bytes
Desc: not available
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180323/5f3f1e0e/attachment-0001.png>
More information about the srsran-users
mailing list