05-03-2018 08:18 AM - edited 03-08-2019 02:53 PM
I am using a LTE CISCO router CISCO-IR829GW-LTE-GGA-EK9. I have a SIM card inserted in slot 0. Cellular connection works properly (verified with "show cellular 0 network" command). I would like to know my public IP address but when I run "show ip interface Cellular 0 | inc Internet" command, it returns "Internet address will be assigned dynamically by the network". When I run "show ip interface brief" command, it tells me that for "Cellular0", "IP-Address" is "unassigned". I know that I have one because I control the network, and I decided which address to give to my 4G router. I just want to check that it works properly, but I can't find a way to see the assigned IP address on my router. Do I do something wrong? Or does it exist another way to show the public IP address assigned by the network?
05-03-2018 09:10 AM
Unless I've misunderstood your question, the easiest way would probably be to connect a device such as a laptop to the router on an access port, and navigate to http://www.whatsmyip.org/
This will show you your current public IP address.
05-04-2018 01:13 AM
Thanks, your solution works for half of my problem (and I didn't even have thought about it!). But I am also using a networking simulator which is not connected to the Internet. This is the main part of my problem. I would like to use IPv6 to make my connection, but I can't find a way to be sure that IPv6 is used as I cannot see the IP address of my 4G router. "show ipv6 interface Cellular 0" does not return anything. Does that mean I'm only using IPv4 ?
05-03-2018 10:21 AM
Hello,
you probably have NAT configured. The command 'sh ip nat translations' should give you the external address as well...
05-04-2018 01:14 AM
05-04-2018 01:49 AM
Hello,
can you post the configuration of your router ?
05-04-2018 01:59 AM
05-04-2018 04:36 AM
Hello,
can you post the output of 'show cellular 0/0/0 profile' where 0/0/0 might differ on your router ?
05-04-2018 04:57 AM
Profile 1 = ACTIVE* **
--------
PDP Type = IPv4
PDP address = 10.160.3.108
Access Point Name (APN) = mobiledata
Authentication = None
Primary DNS address = 176.241.248.126
Secondary DNS address = 176.241.248.127
Note that I changed the APN. Before I changed, profile was INACTIVE (but still connected), with no PDP address, no DNS address. When I go to www.whatsmyip.org, the address is not 10.160.3.108. It is 176.241.250.28. Which one should I consider ?
Now I see the 10.x.x.x address with every command... Expect changing the APN, I didn't do anything else, and I already got connection before that. How can this be explained ?
05-04-2018 08:01 AM
Hello,
176.241.248.126 translates to ns1.gsm.transatel.net, so it is fair to assume that the 176 addresses are your nameserver, and the 10 address is your actual IP address.
Changing APNs could be related to roaming access points ?
05-04-2018 08:13 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide