NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: what network device to use?
Responding to two below:
On Sat, 6 Sep 2025, Michael van Elst wrote:
Would be interesting what card (in particular what PHY) then did work.
This connects but no DHCP:
re0 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet
(rev. 0x03)
re0: interrupting at msix1 vec 0
re0: Ethernet address b8:ac:6f:df:49:9d
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8211B 1000BASE-T media interface
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
Since you get tagged packets, you need to filter them with vlan(4)
and also tell dhcpcd to use the vlan interface (or ignore
the physical interface).
(See below.)
On Sat, 6 Sep 2025, Martin Husemann wrote:
See vlan(4), it has an example for vlan ID 6 with a tlp(4), just replacing
your physical interface and 6 with 0 should get you going.
Some providers do this here too, sometimes with a (http) management
interface for their device on a separate vlan ID (or w/o vlan tagging).
ifconfig vlan0 create
ifconfig vlan0 vlan 0 vlanif re0
ifconfig: SIOCSETVLAN: Invalid argument
I don't get that error when using vlan 1 for example. (But that isn't
what I need and dhcpcd using that vlan doesn't work for me.)
I was able to use the the network on a Linux system immediately
(automatic). tcpdump showed me:
07:38:33.074299 ce:e1:7f:9a:9d:6f > 00:2b:67:b8:1d:da, ethertype 802.1Q
(0x8100), length 1428: vlan 0, p 0, ethertype IPv4, 104.18.198.52.443 >
47.185.125.200.40598: Flags [P.], seq 1167108418:1167109776, ack
1025903144, win 16, options [nop,nop,TS val 1448907829 ecr 103792809],
length 1358
(But the Linux system using Driver r8169 only negotiated 100 Mb/s.)
On NetBSD tcpdump also shows me the tagging:
13:00:06.694196 ce:e1:7f:9a:9d:6f > ec:74:27:cf:e3:20, ethertype 802.1Q
(0x8100), length 60: vlan 0, p 0, ethertype IPv4, 176.65.149.186.40713 >
47.161.125.35.23: Flags [S], seq 1581101836, win 65535, length 0
13:00:08.862782 ce:e1:7f:9a:9d:6f > ff:ff:ff:ff:ff:ff, ethertype 802.1Q
(0x8100), length 60: vlan 0, p 0, ethertype IPv4, 47.185.64.1 >
224.0.0.1: igmp query v3
But I never saw any destined to my re0 (hw address).
As for SIOCSETVLAN: Invalid argument maybe the version of NetBSD I am
using doesn't support "vlan 0".
I can upgrade the NetBSD system, but before I do should I use current?
Home |
Main Index |
Thread Index |
Old Index