I have a home router. I have taken a broad band connection from a ISP.
When I google "what is my IP", I get an IP address. So I assume that is my public IP
address. When I do
ifconfig on my Linux box, I get a class C private IP, say 192.168.1.4. I
understand that my router has assigned this local IP to me.
I access my router on 192.168.1.1 from my Linux box. I also understand that my router has 2 NICs. One facing the local network (with 192.168.1.1) and the other public facing. The public facing NIC has an IP, say 10.a.b.c which is not the same as my public IP.
So should the public facing NIC not have the same address as reported by googling "what is my IP"? If not, why? And when I do a traceroute to google.com, the 1st hop is 192.168.1.1, second should, in this case, be 10.a.b.c right? But it is not. It is something else. Why is it so?
(All discussion here is in respect to IP v4.)