0

Ubuntu 20. I do

ip -4 route add local 172.20.30.0/24 dev lo

It's OK. Again - I got

RTNETLINK answers: File exists

This is OK.

But 'ip route' not shows this rule, neither 'netstat -rn', neither 'route -en'.

Where can I view this rule?

1
  • Check ip addr instead. Either way, loopback is special.
    – Daniel B
    Commented May 25, 2021 at 20:20

1 Answer 1

0

The lo interface is a virtual interface. It's only purpose is to return all the packets it receives.

You may check the routing table associated with it using the command:

ip route show table local

This way you will be able to check if the route you are trying to add is actually there.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .