My Router's WAN IP is a public IP - 172.100.x.x And my public IP is - 182.x.x.x
Why do I have 2 public IP's? Does this probably mean that my router is behind another router? But then what is the use of configuring 2 public IP's?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.Sign up to join this community
I can see two possible explanations:
Your WAN address is your public address, but you are yourself using something that makes it look like you are accessing the internet somewhere else. One example is a proxy server which uses the 182-address to access the internet. A website telling you what your public IP is would see the 182 address. Often these sites will also tell you there is a proxy in play if the proxy sets the HTTP X-Forwarded-For header. Another possibility is a (VPN-)tunnel.
Your router is indeed behind another router performing address translation. Chances are your internet provider is doing carrier-grade nat. As to 'why?', ISPs do this to overcome an IPv4 address shortage. This way, they can provide internet access to many customers using just one public IP.
Assuming you are not using a proxy, something's off... It is indeed strange that a 172.100 address is being assigned to customers, which are then hidden behind some 182 network. 172.100 was assigned by ARIN, 182 by APNIC...
Assigning RFC1918 private addresses to customers when using carrier-grade NAT can cause problems when the same network is in use inside the customer's network. The right thing to do (according to RFC6598) would be using addresses from 100.64.0.0/10. Using (parts of) 172.100 avoids possible conflicts with private addresses, but could make (parts of) the hosts rightfully using 172.100 addresses unreachable for you. Also, using 172.100 creates a risk of these routes being leaked into the global BGP table.
This is speculation, but since your WAN IP starts with 172, someone could be assuming the whole 22.214.171.124/8 range is private (but actually only 172.16.0.0/12 is private). Otherwise, someone is knowingly squatting IP space.
There is another reason why this can occur and that is simply if you are using a 4G or 5G router (rather than a standard modem/router that connects an RJ45 ethernet cable to the incoming broadband connection at the wall or in the US this is sometimes a coaxial connection PLUS a wall plug to power it - a 4G/5G modem/router will only have the wall plug for power).
If this is the case then your 4G or 5G modem/router is connecting over the air to your ISP's physical servers first - the WAN address reported by the router - and then that server connects to the internet where a public WAN address is assigned to the imternet requests at the ISP's server.
Technically a 4G/5G router has a script sent over the 4G/5G cellular network called the APN - access point name - with your cellular networks handshake and connection settings to the ISP's physically located server that then connects to the internet. The first connection to the ISP's server reveals the IP address of that server to your modem/router as the WAN address that it has connected to.