I wanted to share a DSL modem that is in bridge mode between two
FreeBSD boxes that make use of many VLANs on a pair of em
interfaces. In other words, I cant dedicate a physical interface to
just using the DSL. Normally, when creating vlans, I like to create them as so
/sbin/ifconfig em1.172 create 192.168.1.3/24
em1.172: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
1500
options=3<RXCSUM,TXCSUM>
ether 00:30:48:d2:d6:11
inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseTX <full-duplex>)
status: active
vlan: 172 parent interface: em1
However, if I try and bring up pppoe using em1.10 as the PPPoE
device, it does not work.
Jul 9 14:34:17 fw02 ppp[1484]: tun0: Phase: deflink: closed -> opening
Jul 9 14:34:17 fw02 kernel: ng_ether_attach: can't name node em1.10
Jul 9 14:34:17 fw02 kernel: ng_ether_attach: can't name node em1.172
Jul 9 14:34:17 fw02 kernel: ng_ether_attach: can't name node em1.24
Jul 9 14:34:17 fw02 kernel: WARNING: attempt to
net_add_domain(netgraph) after domainfinalize()
Jul 9 14:34:17 fw02 kernel: Jul 9 14:34:17 fw02 kernel:
ng_ether_attach: can't name node em1.10
Jul 9 14:34:17 fw02 kernel: Jul 9 14:34:17 fw02 kernel:
ng_ether_attach: can't name node em1.172
Jul 9 14:34:17 fw02 kernel: Jul 9 14:34:17 fw02 kernel:
ng_ether_attach: can't name node em1.24
Jul 9 14:34:17 fw02 ppp[1484]: tun0: Warning: em1.172: Cannot send a
netgraph message: Invalid argument
Jul 9 14:34:17 fw02 ppp[1484]: tun0: Chat: Failed to open device
Jul 9 14:34:17 fw02 ppp[1484]: tun0: Phase: deflink: Enter pause
(30) for redialing.
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Chat: deflink: Redial timer expired.
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Warning: em1.172: Cannot send a
netgraph message: Invalid argument
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Warning: deflink: PPPoE: unknown host
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Warning: deflink: PPPoE: unknown host
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Warning: deflink: Device
(PPPoE:em1.172) must begin with a '/', a '!' or contain at least
one ':'
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Chat: Failed to open device
Jul 9 14:34:47 fw02 ppp[1484]: tun0: Phase: deflink: Enter pause
(30) for redialing.
Jul 9 14:34:50 fw02 ppp[1484]: tun0: Phase: Signal 15, terminate.
BUT, if I make the vlan device the "old way"
/sbin/ifconfig vlan172 create 192.168.1.3/24 vlandev em1 vlan 172
it works
It still complains about the other 2 interfaces, but it does not seem
to interfere with the PPPoE connection
Jul 9 14:48:15 macs-fw02 kernel: ng_ether_attach: can't name node em1.10
Jul 9 14:48:15 macs-fw02 kernel: ng_ether_attach: can't name node em1.24
Jul 9 14:48:15 macs-fw02 kernel: Jul 9 14:48:15 macs-fw02 kernel:
ng_ether_attach: can't name node em1.10
Jul 9 14:48:15 macs-fw02 kernel: Jul 9 14:48:15 macs-fw02 kernel:
ng_ether_attach: can't name node em1.24
Jul 9 14:48:16 macs-fw02 kernel: WARNING: attempt to
net_add_domain(netgraph) after domainfinalize()
Is there some reason this does not work ?
---Mike
--------------------------------------------------------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike@sentex.net
Providing Internet since 1994 www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike