To set bind an addy to loopback (any incoming traffic destined for that ip address (in this case, 80.0.2.1) get pushed to lo:

ip addr add 80.0.2.1/32 broadcast + dev lo

Now when you ping for that host, your loopback will actually be the one responding. For work, I’m actually on a client machine that knows about a server (has it in its routing table) which needs to have this set up in order to respond.

Blog Logo

Mario Loria


Published

Image

./scriptthe.net

Because 127.0.0.1 gets old after a while.

Back to Overview