spppcontrol
andy at neu.net
andy at neu.net
Wed May 5 03:34:12 PDT 2004
I am trying to build a router based on the following components:
1.ADSL Pci card
2.FreeBSD 5.2.1
3.IPFilter
The card gets configured by the driver, and I am able to connect the ADSL
link, but I can't get authenticated to my ISP. I am trying to use a
spppcontrol script to negotiate the connection manually. So, after I
start the ADSL card service I run the script, but it doesn't seem to do
anything. Here is the script, and the response I get when I execute it:
]# cat sppp.sh
#!/bin/sh
#--------------------------------------
# ppp example setup
# last edit-date: [Tue May 4 21:18:13 2004 ]
#--------------------------------------
echo "Enable Debug for wpaadsl0:"
ifconfig wpaadsl0 debug
echo "--------------------"
echo ""
echo "setting PPP options"
spppcontrol wpaadsl0 disable-ipv6
spppcontrol wpaadsl0 myauthproto=pap
spppcontrol wpaadsl0 myauthname=andxxxx at IBxxxx
spppcontrol wpaadsl0 myauthsecret=xxxxxx
echo ""
echo "finished"
[root at duron ~]# ./sppp.sh
Enable Debug for wpaadsl0:
--------------------
setting PPP options
finished
-----------------------------------------------------------------------------------
The following is from /var/log/messages:
May 5 12:58:54 duron kernel: WANPIPE Hardware Support Module v2.7.2 (c)
1995-2002 Sangoma Technologies Corp.
May 5 12:58:54 duron kernel: WANPIPE(tm) Multiprotocol Driver v2.7.2 (c)
1995-2001 Sangoma Technologies Inc.
May 5 12:58:54 duron kernel: wanpipe: S518 PCI ADSL card found, cpu(s) 1,
bus #0, slot #11, irq #3
May 5 12:58:54 duron kernel: WANPIPE: Allocating maximum 1 devices:
May 5 12:58:54 duron kernel: WANPIPE: wanpipe1-wanpipe1.
May 5 12:58:54 duron kernel: Processing WAN device wanpipe1...
May 5 12:58:54 duron kernel: wanpipe1: Locating: ADSL card, CPU ,
PciSlot=11, PciBus=0
May 5 12:58:54 duron kernel: wanpipe1: Found: ADSL card, CPU ,
PciSlot=11, PciBus=0
May 5 12:58:54 duron kernel: wanpipe1: Starting hardware setup...
May 5 12:58:54 duron kernel: wanpipe1: ADSL PCI memory at 0xcffb0000
May 5 12:58:54 duron kernel: wanpipe1: IRQ 3 allocated to the ADSL card
May 5 12:58:54 duron kernel: wanpipe1: Set interrupt handler...
May 5 12:58:54 duron kernel: wanpipe1: Starting ADSL device.
May 5 12:58:54 duron kernel: wanpipe1: Initializing S518 ADSL card...
May 5 12:58:54 duron kernel: wanpipe1: Initializing LAN Interface
May 5 12:58:54 duron kernel: wanpipe1: Enabling ADSL (ATM OAM) Watchdog
May 5 12:58:54 duron kernel: wanpipe1: ADSL HW Addr: 00:77:77:77:78:e6
May 5 12:58:54 duron kernel: wanpipe1: Creating new WAN interface
wpaadsl0...
May 5 12:58:54 duron kernel: wanpipe1: Configuring Interface: wpaadsl0
May 5 12:58:54 duron kernel: wanpipe1: ATM configured for PPP (VC) over
ATM
May 5 12:58:54 duron kernel: wanpipe1: ADSL Link connecting...
May 5 12:58:54 duron kernel: wanpipe1: Attaching SPPP protocol
May 5 12:58:54 duron kernel: wanpipe1: Attaching network interface
wpaadsl0...
May 5 12:59:22 duron kernel: wanpipe1: Cell Delination successful
May 5 12:59:22 duron kernel: wanpipe1: GP_LINK_UP, State Trained
May 5 12:59:22 duron kernel: wanpipe1: ADSL Link connected (Down 1856
kbps, Up 128 kbps)
May 5 12:59:30 duron kernel: wanpipe1: Link connected!
May 5 12:59:32 duron kernel: wanpipe1: Network device is not UP!
May 5 12:59:42 duron kernel: wanpipe1: Network device is not UP!
----------------------------------------------------------------------------------------
Not sure what to do now, any advice would be really appreciated. Thanks
in advance.
Andy
More information about the freebsd-questions
mailing list