Re: OpenBSD 6.0: PPPOE with vlan configure problem
On 2020-01-25, Peter Wong wrote: > Dear All, > I'm trying to setup openbsd as router but could not get any internet > connection. > I need to set my external interface to vnetid 500. Below is my > configuration: > > /etc/hostname.vlan500 > -inet vnetid 500 parent fxp0 up > > /etc/hostname.pppoe0 > inet 0.0.0.0.0 255.255.255.255 NONE pppoedev *vlan500 *authproto chap \ > authname "username" authkey "pass" up > dest 0.0.0.1 > !/sbin/route add default -ifp pppoe0 0.0.0.1 > > Questions: > 1. How to diagnose pppoe connection, any log file? > 2. Should the vlan interface name follow vlan or vnetid? > 3. Does it need to change the pppoedev interface to fxp0 or vlan500 or > something else? Many ISP access concentrators seem to require that the priority field in the vlan header is set to a specific value (often 0 IIRC). Try "txprio 0" on the vlan interface, but you will need to upgrade first, 6.0 is too old.
Re: OpenBSD 6.0: PPPOE with vlan configure problem
Dear Tom, I had tried with different authentication protocol like pap and chap but not successful. On top of that, should i set mtu to bigger size like 1510 bytes. Regards, -- Peter Wong 016-396 3326 On Sat, Jan 25, 2020 at 10:26 AM Tom Smyth wrote: > Peter > > I would check the authentication protocol and cycle > through various authentication protocols to see if the isp > has only one type of authentication protocol enabled > im not certain the "\" is required, I havent had to use > that on hostname.if files (in my experience) > I see it in the manual page example but that may be > try without that ... > also keep an eye on the MTU of the PPPoE .. > > if the parent interface has an MTU of 1500 Bytes... > unencrypted pppoe would have an MTU of 1492 > PPPoE with encryption would need an MTU of 1488 > Hope this helps > > > > > > On Sat, 25 Jan 2020 at 02:16, Peter Wong wrote: > >> Dear All, >> I'm trying to setup openbsd as router but could not get any internet >> connection. >> I need to set my external interface to vnetid 500. Below is my >> configuration: >> >> /etc/hostname.vlan500 >> -inet vnetid 500 parent fxp0 up >> >> /etc/hostname.pppoe0 >> inet 0.0.0.0.0 255.255.255.255 NONE pppoedev *vlan500 *authproto chap \ >> authname "username" authkey "pass" up >> dest 0.0.0.1 >> !/sbin/route add default -ifp pppoe0 0.0.0.1 >> >> Questions: >> 1. How to diagnose pppoe connection, any log file? >> 2. Should the vlan interface name follow vlan or vnetid? >> 3. Does it need to change the pppoedev interface to fxp0 or vlan500 or >> something else? >> >> Please advise. Thank you. >> >> Regards, >> -- >> Peter Wong >> 016-396 3326 >> > > > -- > Kindest regards, > Tom Smyth. >
Re: OpenBSD 6.0: PPPOE with vlan configure problem
On Fri, Jan 24, 2020, at 18:03, Peter Wong wrote: > Dear All, > I'm trying to setup openbsd as router but could not get any internet > connection. > I need to set my external interface to vnetid 500. Below is my > configuration: > > /etc/hostname.vlan500 > -inet vnetid 500 parent fxp0 up > > /etc/hostname.pppoe0 > inet 0.0.0.0.0 255.255.255.255 NONE pppoedev *vlan500 *authproto chap \ > authname "username" authkey "pass" up > dest 0.0.0.1 > !/sbin/route add default -ifp pppoe0 0.0.0.1 > > Questions: > 1. How to diagnose pppoe connection, any log file? > 2. Should the vlan interface name follow vlan or vnetid? > 3. Does it need to change the pppoedev interface to fxp0 or vlan500 or > something else? > > Please advise. Thank you. > > Regards, > -- > Peter Wong > 016-396 3326 >
Re: OpenBSD 6.0: PPPOE with vlan configure problem
Peter I would check the authentication protocol and cycle through various authentication protocols to see if the isp has only one type of authentication protocol enabled im not certain the "\" is required, I havent had to use that on hostname.if files (in my experience) I see it in the manual page example but that may be try without that ... also keep an eye on the MTU of the PPPoE .. if the parent interface has an MTU of 1500 Bytes... unencrypted pppoe would have an MTU of 1492 PPPoE with encryption would need an MTU of 1488 Hope this helps On Sat, 25 Jan 2020 at 02:16, Peter Wong wrote: > Dear All, > I'm trying to setup openbsd as router but could not get any internet > connection. > I need to set my external interface to vnetid 500. Below is my > configuration: > > /etc/hostname.vlan500 > -inet vnetid 500 parent fxp0 up > > /etc/hostname.pppoe0 > inet 0.0.0.0.0 255.255.255.255 NONE pppoedev *vlan500 *authproto chap \ > authname "username" authkey "pass" up > dest 0.0.0.1 > !/sbin/route add default -ifp pppoe0 0.0.0.1 > > Questions: > 1. How to diagnose pppoe connection, any log file? > 2. Should the vlan interface name follow vlan or vnetid? > 3. Does it need to change the pppoedev interface to fxp0 or vlan500 or > something else? > > Please advise. Thank you. > > Regards, > -- > Peter Wong > 016-396 3326 > -- Kindest regards, Tom Smyth.
OpenBSD 6.0: PPPOE with vlan configure problem
Dear All, I'm trying to setup openbsd as router but could not get any internet connection. I need to set my external interface to vnetid 500. Below is my configuration: /etc/hostname.vlan500 -inet vnetid 500 parent fxp0 up /etc/hostname.pppoe0 inet 0.0.0.0.0 255.255.255.255 NONE pppoedev *vlan500 *authproto chap \ authname "username" authkey "pass" up dest 0.0.0.1 !/sbin/route add default -ifp pppoe0 0.0.0.1 Questions: 1. How to diagnose pppoe connection, any log file? 2. Should the vlan interface name follow vlan or vnetid? 3. Does it need to change the pppoedev interface to fxp0 or vlan500 or something else? Please advise. Thank you. Regards, -- Peter Wong 016-396 3326