[srslte-users] ue can not connect to the internet
Pedro Alvarez
pedro.alvarez at softwareradiosystems.com
Sat Mar 24 16:43:19 UTC 2018
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
>
More information about the srsran-users
mailing list