Re: Connecting ISP problem

2004-02-27 Thread Toomas Aas
Hi!

 Now ISP connected but failure to connect Internet.  Tried twice


 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
 inet 203.88.164.90 -- 203.88.164.1 netmask 0x
 Opened by PID 236

This looks promising :-)

 # ping -c 3 [url]www.google.com[/url]
 ping: cannot resolve [url]www.google.com:[/url] Host name lookup failure.

Try ping 66.102.11.104

If this also fails, don't read on - wait for help from someone more 
experienced :-)

If this works, then the problem is that you don't have DNS server 
specified. You should put something like this into /etc/resolv.conf:

domain mydomain.net
nameserver xx.xx.xx.xx

xx.xx.xx.xx should be replaced with your ISP's DNS server. If you don't 
have your own domain name, you can use just your ISP's domain name 
here.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* I've got a life but it won't run on my operating system.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Connecting ISP problem

2004-02-26 Thread Stephen Liu
Hi JJB,

Tks for your advice.

This is wrong.
 is not comment or commandremove it.
You have all statements starting in position 1 this is
wrong, section header names start in position 1 and end with :
default:   anddialisp:

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=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet6 fe80::250:fcff:fe61:f394%rl0 prefixlen 64 scopeid 0x1
   inet 192.168.2.2 netmask 0xff00 broadcast 192.168.2.255
   ether 00:50:fc:61:f3:94
   media: Ethernet autoselect (10baseT/UTP)
   status: active
rl1: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   ether 00:50:fc:6c:70:f7
   media: Ethernet autoselect (10baseT/UTP)
   status: no carrier
plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet 127.0.0.1 netmask 0xff00
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1492
   inet 203.88.164.90 -- 203.88.164.1 netmask 0x
   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 

Re: Connecting ISP problem

2004-02-25 Thread Stephen Liu
Hi JJB,

Thanks for your advice.  Still can't connect ISP.

  start of DSL 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
password
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.
###   End of DSL ppp.conf
#
Replace the XXX in the [set device PPPoE:XXX] statement with the Nic
card FBSD interface name. Sometimes it will be necessary to use a
service tag to establish your connection depending on how your ISP
and/or the phone company has it's DSL network configured. Service
tags are used to distinguish between different PPPoE servers
attached to a given network. You should have been given any required
service tag information in the documentation provided by your ISP.
If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag
added
set device PPPoE:XXX:service_tag
The  is the FBSD interface name used by PPPoE, the interface
must be UP, (IE: enabled). It is only used as transport, and does
not need to be assigned an IP address. This can be done
automatically at boot time by updating the /etc/rc.conf file. The
format of the statement to add is ifconfig_=up where  is Nic
card FBSD interface name used by PPPoE that you specified in the
/etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statement
ifconfig_=up
Let my know if this works for you
 

# ifconfig
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet6 fe80::250:fcff:fe61:f394%rl0 prefixlen 64 scopeid 0x1
   inet 192.168.2.2 netmask 0xff00 broadcast 192.168.2.255
   ether 00:50:fc:61:f3:94
   media: Ethernet autoselect (10baseT/UTP)
   status: active
rl1: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   ether 00:50:fc:6c:70:f7
   media: Ethernet autoselect (10baseT/UTP)
   status: no carrier
plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet 127.0.0.1 netmask 0xff00
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
# cat /var/log/messages
Feb 26 02:00:26 localhost newsyslog[657]: logfile turned over due to 
size100K
Feb 26 02:10:43 localhost ppp[222]: tun0: Warning: Chat script failed
Feb 26 02:11:13 localhost ppp[222]: tun0: Warning: Chat script failed
Feb 26 02:13:43 localhost last message repeated 3 times
Feb 26 02:23:43 localhost last message repeated 12 times
Feb 26 02:24:23 localhost ppp[222]: tun0: Warning: Chat script failed
Feb 26 03:01:29 localhost ppp[222]: tun0: Warning: Chat script failed
Feb 26 03:11:41 localhost last message repeated 10 times
Feb 26 03:21:10 localhost last message repeated 10 times
Feb 26 03:31:29 localhost last message repeated 10 times
Feb 26 03:34:43 localhost dhclient: New IP Address (rl0): 192.168.2.2
Feb 26 03:34:44 localhost dhclient: New Subnet Mask (rl0): 255.255.255.0
Feb 26 03:34:44 localhost dhclient: New Broadcast Address (rl0): 
192.168.2.255
Feb 26 03:34:44 localhost dhclient: New Routers: 192.168.2.1
Feb 26 03:34:52 localhost reboot: rebooted by root
Feb 26 03:34:53 localhost syslogd: exiting on signal 15
Feb 26 02:22:25 localhost syslogd: kernel boot file is /boot/kernel/kernel
Feb 26 02:22:25 localhost kernel: Copyright (c) 1992-2004 The FreeBSD
...

# cat /etc/ppp/ppp.conf

default:
set log phase tun
set timeout 0
dialisp
set device pppoe:rl0
set authname x(login)
set authkey 11(password)
add default HISADDR
(mandatory)
enable dns
# default:
# set device /dev/cuaa1
# 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)
papchap:
# set phone PHONE_NUM
# set authname USERNAME
# set authkey PASSWORD
# set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
# add default HISADDR# Add a (sticky) default route
+
# 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
# ipv6_enable=YES
hostname=localhost
B.R.
Stephen




___
[EMAIL PROTECTED] 

RE: Connecting ISP problem

2004-02-25 Thread JJB
This is wrong.
 is not comment or commandremove it.
You have all statements starting in position 1 this is
wrong, section header names start in position 1 and end with :

default:   anddialisp:


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.






-Original Message-
From: Stephen Liu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 7:08 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Connecting ISP problem

Hi JJB,

Thanks for your advice.  Still can't connect ISP.

  start of DSL 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
password
 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.

###   End of DSL ppp.conf
#

Replace the XXX in the [set device PPPoE:XXX] statement with the
Nic
card FBSD interface name. Sometimes it will be necessary to use a
service tag to establish your connection depending on how your ISP
and/or the phone company has it's DSL network configured. Service
tags are used to distinguish between different PPPoE servers
attached to a given network. You should have been given any
required
service tag information in the documentation provided by your ISP.
If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag
added
set device PPPoE:XXX:service_tag
The  is the FBSD interface name used by PPPoE, the interface
must be UP, (IE: enabled). It is only used as transport, and does
not need to be assigned an IP address. This can be done
automatically at boot time by updating the /etc/rc.conf file. The
format of the statement to add is ifconfig_=up where  is
Nic
card FBSD interface name used by PPPoE that you specified in the
/etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statement
ifconfig_=up

Let my know if this works for you


# ifconfig
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet6 fe80::250:fcff:fe61:f394%rl0 prefixlen 64 scopeid 0x1
inet 192.168.2.2 netmask 0xff00 broadcast 192.168.2.255
ether 00:50:fc:61:f3:94
media: Ethernet autoselect (10baseT/UTP)
status: active
rl1: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
ether 00:50:fc:6c:70:f7
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4

# cat /var/log/messages
Feb 26 02:00:26 localhost newsyslog[657]: logfile turned over due to
size100K
Feb 26 02:10:43 localhost ppp[222]: tun0: Warning: Chat script
failed
Feb 26 02:11:13 localhost ppp[222]: tun0: Warning: Chat script
failed
Feb 26 02:13:43 localhost last message repeated 3 times
Feb 26 02:23:43 localhost last message repeated 12 times
Feb 26 02:24:23 localhost ppp[222]: tun0: Warning: Chat script
failed
Feb 26 03:01:29 localhost ppp[222]: tun0: Warning: Chat script
failed
Feb 26 03:11:41 localhost last message repeated 10 times
Feb 26 03:21:10 localhost last message repeated 10 times
Feb 26 03:31:29 localhost last message repeated 10 times
Feb 26 03:34:43 localhost dhclient: New IP Address (rl0):
192.168.2.2
Feb 26 03:34:44 localhost dhclient: New Subnet Mask (rl0):
255.255.255.0
Feb 26 03:34:44 localhost dhclient: New Broadcast Address (rl0):
192.168.2.255
Feb 26 03:34:44 localhost dhclient: New Routers: 192.168.2.1
Feb 26 03:34:52 localhost

RE: Connecting ISP problem

2004-02-23 Thread JJB
cat /etc/rc.conf
inetd_enable=YES
keymap=us.pc-ctrl
linux_enable=YES
sshd_enable=YES
usbd_enable=YES
hostname=icare.com.hk
ifconfig_rl0=up
# 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

  start of DSL 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
password
 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.

###   End of DSL ppp.conf
#

Replace the XXX in the [set device PPPoE:XXX] statement with the Nic
card FBSD interface name. Sometimes it will be necessary to use a
service tag to establish your connection depending on how your ISP
and/or the phone company has it's DSL network configured. Service
tags are used to distinguish between different PPPoE servers
attached to a given network. You should have been given any required
service tag information in the documentation provided by your ISP.
If you cannot locate it there, ask your ISP's tech support
personnel. This is the format of the command with the service tag
added
set device PPPoE:XXX:service_tag
The  is the FBSD interface name used by PPPoE, the interface
must be UP, (IE: enabled). It is only used as transport, and does
not need to be assigned an IP address. This can be done
automatically at boot time by updating the /etc/rc.conf file. The
format of the statement to add is ifconfig_=up where  is Nic
card FBSD interface name used by PPPoE that you specified in the
/etc/ppp/ppp.conf file.
ee /etc/rc.conf  # add following statement
ifconfig_=up


Let my know if this works for you




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stephen Liu
Sent: Monday, February 23, 2004 9:03 AM
To: [EMAIL PROTECTED]
Subject: Connecting ISP problem

Hi folks

FreeBSD 5.2
new installation

2 NICs
Broadband Connection - to ISP via ADSL modem, running pppoe

# start pptp
command not found

# ifconfig
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet6 fe80::250:fcff:fe61:f394%rl0 prefixlen 64 scopeid 0x1
inet 192.168.2.2 netmask 0xff00 broadcast 192.168.2.255
ether 00:50:fc:61:f3:94
media: Ethernet autoselect (10baseT/UTP)
status: active
rl1: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
ether 00:50:fc:6c:70:f7
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
plip0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4


cat /etc/rc.conf
inetd_enable=YES
keymap=us.pc-ctrl
linux_enable=YES
sshd_enable=YES
usbd_enable=YES

ifconfig_rl0=DHCP
ppp_enable=YES

ifconfig_rl0=DHCP
ipv6_enable=YES
hostname=icare.com.hk


cat /etc/resolv.conf
search domain.com
nameserver 192.168.2.1


cat /etc/ppp/ppp.conf
default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 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)

papchap:
 set phone PHONE_NUM
 set authname USERNAME
 set authkey PASSWORD

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR# Add a (sticky) default route


Kindly advise how to make
# start pptp
to work

TIA

B.R.
Stephen Liu
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]