D
D
Dred Wolf2021-01-17 22:45:47
Computer networks
Dred Wolf, 2021-01-17 22:45:47

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

5 answer(s)
A
aleks-th, 2021-01-18
@aleks-th

In Yandex, type "my ip"

A
Aelliari, 2021-01-17
@Aelliari

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

D
Drno, 2021-01-17
@Drno

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.

C
CityCat4, 2021-01-18
@CityCat4

Fuck you rested on the provider - to identify you by IP, which he apparently has little. ISPs have a hundred thousand ways to identify you without an IP. And you can find out your "external" IP on sites like 2ip.ru/2ip.ua (these are different sites :) )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question