PPPoE on freeBSD setting up /etc/ppp/ppp.conf

#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.11.2.1.2.1 2009/10/25 01:10:29 kensmith Exp
#################################################################

default:
set log Phase tun #Chat LCP IPCP CCP tun command ident user-ppp VERSION (built
#set ifaddr 10.0.0.1/0 10.0.0.2/0

qtnet: # название прова можно поставить as you like
# set device /dev/cuau1
set device PPPoE:bge0 # bge0 – my network interface
# set speed 115200
#set dial “ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
# \”\” AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT”
#set timeout 180 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)

#set phone PHONE_NUM
set authname login
set authkey pass

set ifaddr my_ip/my_mask may_gateway_and_PC_where_I_connect/0 #255.255.255.0 0.0.0.0
set dial
set login
add default HISADDR # Add a (sticky) default route

# settings tested on QtNet provider
# to connect ppp -ddial qtnet