From: "Eduardo Trápani" <etrapani@gmail.com>
To: netdev@vger.kernel.org
Subject: Network prefix length for local tunnel address
Date: Tue, 14 Jan 2020 12:57:34 -0300 [thread overview]
Message-ID: <bafe4bfa-17e4-14b2-cdde-54938784b257@gmail.com> (raw)
The manual for ip-address says:
> If a peer address is specified, the local address cannot have a
prefix length. The network prefix is associated with the peer rather
than with the local address.
Does it means that the local address has no prefix at all? Or that it
inherits the prefix from the peer address?
The question arises because I found out I can "duplicate" the local ip
address, instead of getting a "RTNETLINK answers: File exists".
These are the steps:
# ip tuntap add dev tun3 mode tun user alice group alice
# ip address add 10.8.0.1 peer 10.8.0.2/32 dev tun3
# ip address add 10.8.0.1/32 dev tun3
# ip address list dev tun3
…
inet 10.8.0.1 peer 10.8.0.2/32 scope global tun3
…
inet 10.8.0.1/32 scope global tun3
…
Is that the expected behaviour?
reply other threads:[~2020-01-14 15:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bafe4bfa-17e4-14b2-cdde-54938784b257@gmail.com \
--to=etrapani@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).