A
A
Adel Khalitov2019-12-16 21:38:40
linux
Adel Khalitov, 2019-12-16 21:38:40

Why different ip linux?

Acquired VPS on aws
There are connections:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9001
        inet 172.31.17.93  netmask 255.255.240.0  broadcast 172.31.31.255
        inet6 fe80::61:6aff:fe3b:d49a  prefixlen 64  scopeid 0x20<link>
        ether 02:61:6a:3b:d4:9a  txqueuelen 1000  (Ethernet)
        RX packets 58  bytes 8440 (8.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 62  bytes 8842 (8.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

public ip
wget -qO- eth0.me
18.195.174.252
I want to set up vps on this server, I don't understand why eth0 shows an ip different from the public one. Explain please)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mikes, 2019-12-16
@mikes

possibly NAT 1in1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question