Hi, Suman.
Let me try to explain how UE IP is configured in general.
o Read configuration.
ue_pool:
- addr: cafe::1/64
- src/pgw/pgw_context.c:739
subnet = pgw_subnet_add(ipstr, mask_or_numbits, apn, dev);
o Generate UE Pool
- src/pgw/pgw_init.c:32
rv = pgw_ue_pool_generate();
o If UE try to attach, new IP is allocated from the UE POOL.
- src/pgw/pgw_context.c:923
pgw_sess_t *pgw_sess_add(....)
{
...
}
- src/pgw/pgw_context.c:960
sess->ipv4 = pgw_ue_ip_alloc(AF_INET, apn);
And then, the UE IP is delivered to SGW/MME using GTPv2-C.
Finally, MME is sending the UE IP through NAS message(Activate default EPS bearer context request.)
Let me know if you have more information.
Thanks!