P|Pc|Pc console:\
:al=myuser:ht:np:sp#9600:
They use Terminator as CPU/ASIC moniker and number to designate series.I will use a chelsio supported by the drivers cxgbe(4), I understand that I should not have problems, does anyone know anything about it?
So the real clue here is not Chelsio, but it needs a vlan6.remember that you have to configure VLAN 6 (data) on the network interface of your card (on the SFP port to which you are going to connect the GPON ONU SFP.)"

I am not greatly familiar with vlans. PPP only with Cellular.but I can't get up from there the PPP session since I have to create a vlan and from there raise the ppp interface , so I'm a bit lost.
cloned_interfaces="vlan6"
create_args_vlan6="vlan 6 vlandev bge0 vlanpcp 1"
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether f0:1f:af:d7:cc:01
media: Ethernet autoselect
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
vlan6: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80103<RXCSUM,TXCSUM,TSO4,LINKSTATE>
ether f0:1f:af:d7:cc:01
groups: vlan
vlan: 6 vlanproto: 802.1q vlanpcp: 1 parent interface: bge0
media: Ethernet autoselect
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ifconfig_em0=up
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
telefonica:
set device PPPoE:em0
set authname adslppp@telefonicapa
set authkey XXXXXXXXX
set dial
set login
set timeout 30
enable dns
add default HISADDR
Routing tables
Internet:
Destination Gateway Flags Netif Expire
default 192.168.144.1 UGS tun0
79.154.XX.XX link#3 UHS lo0
127.0.0.1 link#2 UH lo0
192.168.144.1 link#3 UHS tun0
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
ether 28:d2:44:3c:b7:76
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
options=80000<LINKSTATE>
inet 79.154.XX.XX --> 192.168.144.1 netmask 0xffffffff
inet6 fe80::2ad2:44ff:XXXX:XXXX%tun0 prefixlen 64 scopeid 0x3
groups: tun
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 870
ppp -ddial telefonica
rc.confset device PPPoE:vlan6
ifconfig_em0=up
cloned_interfaces="vlan6"
ifconfig_vlan6="vlan 6 vlanpcp 1 vlandev em0"
ppp.logem0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
ether 28:d2:44:3c:b7:76
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
vlan6: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4000403<RXCSUM,TXCSUM,LRO,NOMAP>
ether 28:d2:44:3c:b7:76
groups: vlan
vlan: 6 vlanproto: 802.1q vlanpcp: 1 parent interface: em0
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
groups: tun
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 930
Jul 24 00:18:48 xv0 newsyslog[687]: logfile first created
Jul 24 00:20:31 xv0 ppp[928]: Phase: Using interface: tun0
Jul 24 00:20:31 xv0 ppp[928]: Phase: deflink: Created in closed state
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: set device PPPoE:vlan6
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: set authname adslppp@telefonicapa
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: set authkey ********
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: set dial
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: set login
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: set timeout 30
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: enable dns
Jul 24 00:20:31 xv0 ppp[928]: tun0: Command: telefonica: add default HISADDR
Jul 24 00:20:31 xv0 ppp[930]: tun0: Phase: PPP Started (ddial mode).
Jul 24 00:20:31 xv0 ppp[930]: tun0: Phase: bundle: Establish
Jul 24 00:20:31 xv0 ppp[930]: tun0: Phase: deflink: closed -> opening
Jul 24 00:20:31 xv0 ppp[930]: tun0: Phase: deflink: Connected!
Jul 24 00:20:31 xv0 ppp[930]: tun0: Phase: deflink: opening -> dial
Jul 24 00:20:31 xv0 ppp[930]: tun0: Phase: deflink: dial -> carrier
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: deflink: Disconnected!
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: deflink: carrier -> hangup
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Jul 24 00:20:31 2022
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: deflink: hangup -> opening
Jul 24 00:20:36 xv0 ppp[930]: tun0: Phase: deflink: Enter pause (30) for redialing.
Jul 24 00:21:06 xv0 ppp[930]: tun0: Phase: deflink: Connected!
Jul 24 00:21:06 xv0 ppp[930]: tun0: Phase: deflink: opening -> dial
Jul 24 00:21:06 xv0 ppp[930]: tun0: Phase: deflink: dial -> carrier
up #for em0
vlan 6 vlandev em0 txprio 1 rxprio 1 up #for vlan6
inet 0.0.0.0 0xffffffff NONE \
pppoedev em0 authproto pap \ # pppoedev vlan6 authproto pap \ ### for vlan6
authname adslppp@telefonicanetpa authkey adslppp up #for pppoe0
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1
Jul 23 23:35:21 xm1 /bsd: pppoe0: wrong interface, not accepting host unique
Jul 23 23:35:21 xm1 /bsd: pppoe: received PADO but could not find request for it
well, it rather works as expected and tun0 is your gateway interface. vlan6 is what is used for your ppp session establishment, and nothing else. And actually you used it per your ISP requirement. For regular internet you use tun0, which gets created upon successful ppp session start.Everything works fine, but ppp was created on the tun0 interface, not vlan6 as it is supposed to be. It shouldn't work this way, right? If my ISP requires that I use vlan6?
It looks like this is incorrect (and the password is the same for everyone, no need to censor it).set authname adslppp@telefonicapa
set authkey XXXXXXXXX
set authname adslppp@telefonicanetpa
set authkey adslppp
No change adding those directives in rc.conf,I show my log after adding them :well, it rather works as expected and tun0 is your gateway interface. vlan6 is what is used for your ppp session establishment, and nothing else. And actually you used it per your ISP requirement. For regular internet you use tun0, which gets created upon successful ppp session start.
However, you may need to add the following in your rc.conf:
ppp_nat="YES"
ppp_profile="telefonica"
Jul 25 22:23:30 xv0 newsyslog[688]: logfile first created
Jul 25 22:23:48 xv0 ppp[928]: Phase: Using interface: tun0
Jul 25 22:23:48 xv0 ppp[928]: Phase: deflink: Created in closed state
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: set device PPPoE:vlan6
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: set authname adslppp@telefonicapa
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: set authkey ********
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: set dial
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: set login
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: set timeout 0
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: enable dns
Jul 25 22:23:48 xv0 ppp[928]: tun0: Command: telefonica: add default HISADDR
Jul 25 22:23:48 xv0 ppp[930]: tun0: Phase: PPP Started (ddial mode).
Jul 25 22:23:48 xv0 ppp[930]: tun0: Phase: bundle: Establish
Jul 25 22:23:48 xv0 ppp[930]: tun0: Phase: deflink: closed -> opening
Jul 25 22:23:48 xv0 ppp[930]: tun0: Phase: deflink: Connected!
Jul 25 22:23:48 xv0 ppp[930]: tun0: Phase: deflink: opening -> dial
Jul 25 22:23:48 xv0 ppp[930]: tun0: Phase: deflink: dial -> carrier
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: deflink: Disconnected!
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: deflink: carrier -> hangup
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Jul 25 22:23:48 2022
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: deflink: hangup -> opening
Jul 25 22:23:53 xv0 ppp[930]: tun0: Phase: deflink: Enter pause (30) for redialing.
Jul 25 22:24:23 xv0 ppp[930]: tun0: Phase: deflink: Connected!
Jul 25 22:24:23 xv0 ppp[930]: tun0: Phase: deflink: opening -> dial
Jul 25 22:24:23 xv0 ppp[930]: tun0: Phase: deflink: dial -> carrier
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: deflink: Disconnected!
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: deflink: carrier -> hangup
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: deflink: 0 packets in, 0 packets out
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Jul 25 22:24:23 2022
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: deflink: hangup -> opening
Jul 25 22:24:28 xv0 ppp[930]: tun0: Phase: deflink: Enter pause (30) for redialing.
Regarding what you told us about configuring only the PPPoE connection without the VLAN ID, this is because even though you have configured your ISP's router in single-user mode (Bridge), the router is not really working in bridge mode. "Full transparent bridge", otherwise it continues to have the VLAN configured for the WAN (PON port) and performs an untag of the VLAN ID on the Ethernet interfaces of the LAN of said router.
When you work with an ONU like ours (Full transparent bridge), the data traffic that is tagged with a VLAN ID goes directly to your host (FreeBSD), and the VLAN IDs are not filtered or removed, so your router You must have this VLAN ID configured on the network interface so that it is able to understand the data being sent/received and establish the PPPoE connection on it.