Answer the question
In order to leave comments, you need to log in
How to find out the IP address of the router by which the provider identifies me?
I have a gray IP address. I go to the Internet through the address of the provider. Using the "ip" command in Linux, do I get the ip of the router or the PC from which I am connected to this router?
Answer the question
In order to leave comments, you need to log in
You get the address of the device on which you entered this command. If it's a PC on *nix connected to a router, then it's a PC, if it's a router, then it's a router.
You can find out the address assigned to you by the provider on the router, if the address is white and routable, then you can also find it, for example, on sites like ifconfig.co (a specific representative has an api and the answer can be received through the terminal). If the address is gray, then this way you will only find out the address of the provider's gateway (even if it forwards all traffic from it to your gray address, the so-called DMZ and everything looks like a white ip to you), you can find out this gray address by connecting a PC directly, in the web interface of the router or in its command shells (if any).
PS It is unrealistic that the identification of your equipment from the provider goes through ip
If the scheme is pc>router>provider - then you get the IP that the router gave you via dhcp
. The address can be viewed in the router's webmord.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question