[srslte-users] ue can not connect to the internet

putaogan 15829620095 at 163.com
Tue Mar 27 01:51:35 UTC 2018


Thank you very much.As you said ,i masqueraded the wrong interface.I tried again and made it.Thanks again.
I have a problem that now i run epc and enb in two computers separately.The computer in which enb runs reminds me that enb can not connect to epc,i don not know if i forget to change the parameters in the conf files or miss some steps, i want to know what operations it differ from the case that epc and enb run in the same pc.And what if i use a phone to replace usrp as UE,what should i pay attention to when i make sim card and do some configuration to get my phone connect to the Internet?







At 2018-03-25 20:00:01, srslte-users-request at lists.softwareradiosystems.com wrote:
>Send srslte-users mailing list submissions to
>	srslte-users at lists.softwareradiosystems.com
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>or, via email, send a message with subject or body 'help' to
>	srslte-users-request at lists.softwareradiosystems.com
>
>You can reach the person managing the list at
>	srslte-users-owner at lists.softwareradiosystems.com
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of srslte-users digest..."
>
>
>Today's Topics:
>
>   1. Re: ue can not connect to the internet (Pedro Alvarez)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 24 Mar 2018 16:43:19 +0000
>From: Pedro Alvarez <pedro.alvarez at softwareradiosystems.com>
>To: srslte-users at lists.softwareradiosystems.com
>Subject: Re: [srslte-users] ue can not connect to the internet
>Message-ID:
>	<CACYSAhexZcG_7aQYbYRR5tD=3en4cjJpukos1RqVaD-QE6ow2g at mail.gmail.com>
>Content-Type: text/plain; charset="UTF-8"
>
>You've masqueraded the wrong interface. I need to masquerade the
>interface that is connecting to the Internet.
>So, if your interface that is connecting to the Internet is called
>'eth0', you need to run 'sudo ./if_masq.sh eth0'
>
>If that doesn't help, Joe's suggestions should help you debug the problem.
>
>Cheers,
>Pedro
>
>On Fri, Mar 23, 2018 at 12:30 PM, J Giovatto <jgiovatto at adjacentlink.com> wrote:
>> Hi,
>>
>> Here are a few things to check:
>> 1) verify that your ue traffic is ingress from the vif device using tcpdump
>> at the enb node
>> 2) verify that ip_forwarding is enabled sysctl net.ipv4.ip_forward should
>> yield net.ipv4.ip_forward = 1
>> 3) check that iptables is not filtering any traffic at the enb node
>> 4) verify that ue traffic is egress from the external device (internet
>> connected) using tcpdump at the enb node
>>
>> Joe
>>
>>
>>
>>
>> On 03/23/2018 05:20 AM, putaogan wrote:
>>
>> 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
>>>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> srslte-users mailing list
>> srslte-users at lists.softwareradiosystems.com
>> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>>
>>
>>
>> _______________________________________________
>> srslte-users mailing list
>> srslte-users at lists.softwareradiosystems.com
>> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>>
>
>
>------------------------------
>
>Subject: Digest Footer
>
>_______________________________________________
>srslte-users mailing list
>srslte-users at lists.softwareradiosystems.com
>http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
>
>
>------------------------------
>
>End of srslte-users Digest, Vol 37, Issue 18
>********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180327/fb890f47/attachment.htm>


More information about the srsran-users mailing list