Tks for your advice.
This is wrong. ++++++++++++++++ is not comment or command remove it. You have all statements starting in position 1 this is wrong, section header names start in position 1 and end with :
default: and dialisp:
make ppp.conf look like this default: & dialisp: start in position 1 and everything else starts in position 2 delete all the other stuff you have in your ppp.conf.
default: set log Phase tun #use to avoid excessive log sizes set timeout 0 # no idle time out, will not disconnect
dialisp: set device PPPoE:rl0 # replace xxx with your Nic device name set authname YOURLOGINNAME # Replace with your ISP account IP set authkey YOURPASSWORD # Replace with your ISP account PW add default HISADDR # Add a (sticky) default route Mandatory enable dns # Gets the ISP's DNS IP address & places them # in resolv.conf for reference by FBSD box
In rc.conf you have ifconfig-rl0=up
and it should be
ifconfig_rl0=up
hostname="localhost" is wrong it needs to be FQDN as in hostname="fbsdstephenliu.com.hk"
check /etc/syslog.conf and make sure ppp.log is enabled. Empty ppp.log before test and post ppp.log if this does not work.
Now ISP connected but failure to connect Internet. Tried twice
# ifconfig
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::250:fcff:fe61:f394%rl0 prefixlen 64 scopeid 0x1 inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 ether 00:50:fc:61:f3:94 media: Ethernet autoselect (10baseT/UTP) status: active rl1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> ether 00:50:fc:6c:70:f7 media: Ethernet autoselect (10baseT/UTP) status: no carrier plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492 inet 203.88.164.90 --> 203.88.164.1 netmask 0xffffffff Opened by PID 236
# ping -c 3 [url]www.google.com[/url] ping: cannot resolve [url]www.google.com:[/url] Host name lookup failure.
Tried follows without success; # /sbin/route add default gw 203.88.164.1 dev tun0 # /sbin/route add default gw 203.88.164.1 dev ppp0 # /sbin/route add default gw 203.88.164.1 dev pppoe
all hanged on screen
# cat /var/log/ppp.log
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "TSW3-2-RX")
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: carrier -> login
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: login -> lcp
Feb 27 07:56:39 localhost ppp[236]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: bundle: Authenticate
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: his = PAP, mine = none
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Pap Output: [EMAIL PROTECTED]/email] ********
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: Pap Input: SUCCESS ()
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: lcp -> open
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: bundle: Network
Feb 27 07:56:39 localhost ppp[236]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "TSW3-2-RX")
Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: deflink: carrier -> login
Feb 27 08:05:30 localhost ppp[236]: tun0: Phase: deflink: login -> lcp
Feb 27 08:05:30 localhost ppp[236]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: bundle: Authenticate
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: deflink: his = PAP, mine = none
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: Pap Output: [EMAIL PROTECTED]/email] ********
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: Pap Input: SUCCESS ()
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: deflink: lcp -> open
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: bundle: Network
Feb 27 08:05:31 localhost ppp[236]: tun0: Phase: deflink: IPV6CP protocol reject closes IPV6CP !
# cat /etc/rc.conf inetd_enable="YES" keymap="us.pc-ctrl" linux_enable="YES" sshd_enable="YES" usbd_enable="YES"
ifconfig_rl0="up" ifconfig_rl0="DHCP" # ppp_enable="YES"
# Activate user ppp auto-start at boot time ppp_enable="YES" # Start User ppp task ppp_mode="ddial" # ddial, auto, background ppp_profile="dialisp": # Section in ppp.conf to exec
# cat /etc/ppp/ppp.conf [code] default: set log phase tun set timeout 0 dialisp:: set device pppoe:rl0 set authname [EMAIL PROTECTED]/email] set authkey msliu20h add default HISADDR # (mandatory) enable dns
'dialisp::' is correct 'dialisp:' complained as follow; dialisp:: Configuration lable not found
B.R. Stephen _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
