Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2025 17:54:21 +0800
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        paige@paige.bio
Cc:        net@freebsd.org, =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@freebsd.org>
Subject:   Re: [Bug 278028] VXLAN interface is not working
Message-ID:  <27C4D9F1-51D3-42D6-A490-A825C4EB6CC2@FreeBSD.org>
In-Reply-To: <1437AB6C-96E7-4445-8B9C-E1E6986C0568@paige.bio>
References:  <bug-278028-7501-5XtDSW7e3e@https.bugs.freebsd.org/bugzilla/> <1437AB6C-96E7-4445-8B9C-E1E6986C0568@paige.bio>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]


> On Apr 20, 2025, at 8:20 AM, paige@paige.bio wrote:
> 
> Hey I was kind of wondering for my own info, where would be a good place to open a bug for this particular problem if not here?
> I noticed something earlier which was upon specifying the tunneling parameter for a vxlan interface, I didn’t see tunnelfib in the summary for the interface after but it accepted the parameter. Maybe it’s not supposed to show it in summary I seem to remember on openbsd that it would though (seems like it should)

Just try to make it clear.

The support for ioctl SIOCSTUNFIB ( ifconfig vxlan[N] tunnelfib x ) was added via commit https://cgit.freebsd.org/src/commit/?id=7f7a804ae077 <https://cgit.freebsd.org/src/commit/?id=7f7a804ae077>; . 
The man page of ifconfig(8) was updated to reflect the change, but vxlan(4) was not.

Well by default the tunnelfib of a vxlan(4) interface is 0 ( the system's default fib ) and is not displayed. If you set it to a fib number other than 0, ifconfig(8) will show that.

```
# ifconfig vxlan0
vxlan0: flags=1008802<BROADCAST,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1470
	options=80020<JUMBO_MTU,LINKSTATE>
	ether 58:9c:fc:00:7c:2c
	groups: vxlan
	media: Ethernet autoselect (autoselect <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

# sysctl net.fibs=2
net.fibs: 1 -> 2

# ifconfig vxlan0 tunnelfib 1
# ifconfig vxlan0
vxlan0: flags=1008802<BROADCAST,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1470
	options=80020<JUMBO_MTU,LINKSTATE>
	ether 58:9c:fc:00:7c:2c
	groups: vxlan
	tunnelfib: 1
	media: Ethernet autoselect (autoselect <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
```

> where would be a good place to open an inquiry about that? 
> 
> Thanks 
> 
> Sent from my iPhone
> 
>> On Jan 24, 2025, at 8:11 AM, bugzilla-noreply@freebsd.org wrote:
>> 
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278028
>> 
>> Zhenlei Huang <zlei@FreeBSD.org> changed:
>> 
>>          What    |Removed                     |Added
>> ----------------------------------------------------------------------------
>>            Status|New                         |Closed
>>        Resolution|---                         |Works As Intended
>> 
>> --- Comment #14 from Zhenlei Huang <zlei@FreeBSD.org> ---
>> Given this is not the fault of if_vxlan(4) but is a configuration problem (
>> duplicated MAC address ), I'm closing this issue now.
>> 
>> --
>> You are receiving this mail because:
>> You are the assignee for the bug.


Best regards,
Zhenlei
[-- Attachment #2 --]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 20, 2025, at 8:20 AM, <a href="mailto:paige@paige.bio" class="">paige@paige.bio</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hey I was kind of wondering for my own info, where would be a good place to open a bug for this particular problem if not here?</div></div></blockquote><blockquote type="cite" class=""><div class=""><div class="">I noticed something earlier which was upon specifying the tunneling parameter for a vxlan interface, I didn’t see tunnelfib in the summary for the interface after but it accepted the parameter. Maybe it’s not supposed to show it in summary I seem to remember on openbsd that it would though (seems like it should) </div></div></blockquote><div><br class=""></div><div>Just try to make it clear.</div><div><br class=""></div><div>The support for ioctl SIOCSTUNFIB ( ifconfig vxlan[N] tunnelfib x ) was added via commit&nbsp;<a href="https://cgit.freebsd.org/src/commit/?id=7f7a804ae077" class="">https://cgit.freebsd.org/src/commit/?id=7f7a804ae077</a>&nbsp;.&nbsp;</div><div>The man page of ifconfig(8) was updated to reflect the change, but vxlan(4) was not.</div><div><br class=""></div><div>Well by default the tunnelfib of a vxlan(4) interface is 0 ( the system's default fib ) and is not displayed. If you set it to a fib number other than 0, ifconfig(8) will show that.</div><div><br class=""></div><div>```</div><div><div># ifconfig vxlan0</div><div>vxlan0: flags=1008802&lt;BROADCAST,SIMPLEX,MULTICAST,LOWER_UP&gt; metric 0 mtu 1470</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>options=80020&lt;JUMBO_MTU,LINKSTATE&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>ether 58:9c:fc:00:7c:2c</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>groups: vxlan</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>media: Ethernet autoselect (autoselect &lt;full-duplex&gt;)</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>status: active</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>nd6 options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&gt;</div><div><br class=""></div><div># sysctl net.fibs=2</div><div>net.fibs: 1 -&gt; 2</div><div><br class=""></div><div># ifconfig vxlan0 tunnelfib 1</div><div># ifconfig vxlan0</div><div>vxlan0: flags=1008802&lt;BROADCAST,SIMPLEX,MULTICAST,LOWER_UP&gt; metric 0 mtu 1470</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>options=80020&lt;JUMBO_MTU,LINKSTATE&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>ether 58:9c:fc:00:7c:2c</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>groups: vxlan</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>tunnelfib: 1</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>media: Ethernet autoselect (autoselect &lt;full-duplex&gt;)</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>status: active</div><div><span class="Apple-tab-span" style="white-space:pre">	</span>nd6 options=29&lt;PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL&gt;</div></div><div>```</div><br class=""><blockquote type="cite" class=""><div class=""><div class="">where would be a good place to open an inquiry about that? <br class=""><br class=""></div></div></blockquote><blockquote type="cite" class=""><div class=""><div class="">Thanks <br class=""><br class="">Sent from my iPhone<br class=""><br class=""><blockquote type="cite" class="">On Jan 24, 2025, at 8:11 AM, <a href="mailto:bugzilla-noreply@freebsd.org" class="">bugzilla-noreply@freebsd.org</a> wrote:<br class=""><br class=""><a href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278028" class="">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278028</a><br class=""><br class="">Zhenlei Huang &lt;<a href="mailto:zlei@FreeBSD.org" class="">zlei@FreeBSD.org</a>&gt; changed:<br class=""><br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;What &nbsp;&nbsp;&nbsp;|Removed &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|Added<br class="">----------------------------------------------------------------------------<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Status|New &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|Closed<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resolution|--- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|Works As Intended<br class=""><br class="">--- Comment #14 from Zhenlei Huang &lt;<a href="mailto:zlei@FreeBSD.org" class="">zlei@FreeBSD.org</a>&gt; ---<br class="">Given this is not the fault of if_vxlan(4) but is a configuration problem (<br class="">duplicated MAC address ), I'm closing this issue now.<br class=""><br class="">--<br class="">You are receiving this mail because:<br class="">You are the assignee for the bug.<br class=""></blockquote></div></div></blockquote></div><br class=""><div class="">
<div><br class=""></div>

</div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best regards,</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Zhenlei</div></body></html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27C4D9F1-51D3-42D6-A490-A825C4EB6CC2>