I have one router which connects to two different networks as shown in the diagram . I have few silly doubts. Please help me.
For every NIC the router will have different IP. Lets assume we have two private networks ( Here the image shows network id's which are actually not private but lets assume they are private ) connected to the same router. So the router will have two ip for each network as the network id will be different.
Then my question is which one is public ip (which is visible over internet) in this case? Or there is another network(our ISP) to which the router should be connected and that interface will have the public IP for both the private network.I think each router will have at max one public ip even if it is connected to many private networks. I am confused about number of public IP in this case.
But we can see in this diagram the router does have two public IP for two different networks or they are not actually public IP? I am just claiming it to be public IP as these IP address can not be used for private IP allocation.
If a router is connected to another router then the interface connecting to both will have what public IP address? Previously it was the same network ID that router uses but in this case it is connected to another router.
I understand there may be lots of wrong things I would have said in those above lines but badly need help to get into it.