From owner-freebsd-atm@FreeBSD.ORG Tue Jun 21 12:19:44 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 282EC16A41C for ; Tue, 21 Jun 2005 12:19:44 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from ns2.bilch.com (ns2.bilch.com [213.217.66.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8965A43D5C for ; Tue, 21 Jun 2005 12:19:41 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from [10.0.0.1] (sieben.schlaf.bilch.com [10.0.0.1]) by ns2.bilch.com (8.13.1/8.13.1) with ESMTP id j5LCJceq043131 for ; Tue, 21 Jun 2005 14:19:39 +0200 (CEST) (envelope-from heiner@bilch.com) Message-ID: <42B805F6.9050804@bilch.com> Date: Tue, 21 Jun 2005 14:20:06 +0200 From: Heiner Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050601 X-Accept-Language: de, de-ch, de-at, en-us, en, fr-fr, zh-tw MIME-Version: 1.0 To: freebsd-atm@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Switched virtual connection X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 12:19:44 -0000 Hello, Im trying to set up a SVC directly to an atm edge switch (3Com SS II with an ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card. I have 2 Questions: 1. Which of the 3 ATM implementations do I have to use ? 2. Do I need ATMARPD ? 3. Are there examples for SVCs in netgraph/natm/HARP ? I have googled around and found examples for PVCs, but the switch supports only SVCs. Both ends seem to send/receive SONET frames but nothing more: hatm0: flags=841 mtu 9180 media: ATM Multi-mode/155MBit status: active fa0: flags=43 mtu 9180 ether 00:20:48:2e:13:67 On the switch the Link Status LED is green. At the end I want to build something like this: Telco -- DSL Router -- FreeBSD as a IP/ATM bridge/router or switch -- 3Com with ethernet clients Is this possible or do I need a real ATM switch ? Greetings, Heiner -- Heiner Strauss heiner@bilch.com Bilch International Consulting www.bilch.com Hamburg Markusstrasse 4 20355 Hamburg Tel.: +49 40 3480667 From owner-freebsd-atm@FreeBSD.ORG Tue Jun 21 12:59:39 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D6F916A41C; Tue, 21 Jun 2005 12:59:39 +0000 (GMT) (envelope-from stephanweaver@hotmail.com) Received: from hotmail.com (bay20-f1.bay20.hotmail.com [64.4.54.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id E720E43D49; Tue, 21 Jun 2005 12:59:38 +0000 (GMT) (envelope-from stephanweaver@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 21 Jun 2005 05:59:38 -0700 Message-ID: Received: from 200.108.17.200 by by20fd.bay20.hotmail.msn.com with HTTP; Tue, 21 Jun 2005 12:59:38 GMT X-Originating-IP: [200.108.17.200] X-Originating-Email: [stephanweaver@hotmail.com] X-Sender: stephanweaver@hotmail.com From: "Stephan Weaver" To: freebsd-atm@freebsd.org, freebsd-questions@freebsd.org Date: Tue, 21 Jun 2005 08:59:38 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 21 Jun 2005 12:59:38.0871 (UTC) FILETIME=[15270070:01C57661] Cc: Subject: Connecting My ADSL MODEM To My FreeBSD Pc. X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 12:59:39 -0000 Hello Friendly FreeBSD people. Let me get straight to the point. I am implimenting a FreeBSD Based Firewall. I have an ADSL Speedtouch 5200 Modem/Router, Currently Plugged into my Switch. I want to connect the ADSL modem to my FreeBSD Firewall; So that the FreeBSD Firewall will be creating a PPP connection directly to my ISP. E.g., my vr0 interface will have a PUBLIC Internet Address (IF Possible?). My Isp Uses PPPoA, i used the instructions from the handbook; Using 'mpd'. I set the ADSL router in 'bridge' mode and connect the Ethernet cable from the Dsl Router/Modem to my FreeBSD Firewall. ON the Interface vr0. But i have little success getting the results i want. [The Firewall doesn't connect to my ISP] Anyone willing to give me a clue? --------------------------------------- Config stuff. rc.conf -- #FireWall Stuff #--------------- inetd_enable="NO" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" check_quotas="NO" gateway_enable="YES" ipnat_enable="YES" ipnat_rules="/etc/ipnat.rules" ipfilter_enable="YES" ipfilter_flags="" ipfilter_rules="/etc/ipf.rules" ipmon_enable="YES" ipmon_flags="-Dsn" #vr0 Connects to DSL MODEM ifconfig_vr0="inet 192.168.0.1 netmask 255.255.255.0" #------------------------- mpd.conf default: load adsl adsl: new -i ng0 adsl adsl set bundle authname USER****** set bundle password PASS***[changed] set bundle disable multilink set link no pap acfcomp protocomp set link disable chap set link accept chap set link keep-alive 30 10 set ipcp no vjcomp set ipcp ranges 0.0.0.0/0 0.0.0.0/0 set iface route default set iface disable on-demand set iface enable proxy-arp set iface idle 0 open ----------------- mpd.links -- adsl: set link type pptp set pptp mode active set pptp enable originate outcall set pptp self 192.168.0.1 set pptp peer 192.168.0.254 ---------------- 192.168.0.1 = vr0 interface [ firewall ] 192.168.0.254 = dsl modem/router. Empty /etc/ipnat.rules; empty /etc/ipf.rules ------------------ MPD.LOG --- Multi-link PPP for FreeBSD, by Archie L. Cobbs. Based on iij-ppp, by Toshiharu OHNO. mpd: pid 523, version 3.18 (root@pizzaboys.org 20:57 16-Jun-2005) [adsl] ppp node is "mpd523-adsl" set pptp mode: unknown command. Try "help". [adsl] using interface ng0 [adsl] IPCP: peer address cannot be zero [adsl] IFACE: Open event [adsl] IPCP: Open event [adsl] IPCP: state change Initial --> Starting [adsl] IPCP: LayerStart [adsl:adsl] [adsl] bundle: OPEN event in state CLOSED [adsl] opening link "adsl"... [adsl] link: OPEN event [adsl] LCP: Open event [adsl] LCP: state change Initial --> Starting [adsl] LCP: LayerStart [adsl] device: OPEN event in state DOWN pptp0: connecting to 192.168.0.254:1723 [adsl] device is now in state OPENING pptp0: connection to 192.168.0.254:1723 failed pptp0: killing connection with 192.168.0.254:1723 pptp0-0: killing channel [adsl] PPTP call failed [adsl] device: DOWN event in state OPENING [adsl] device is now in state DOWN [adsl] link: DOWN event [adsl] LCP: Down event [adsl] device: OPEN event in state DOWN [adsl] pausing 7 seconds before open [adsl] device is now in state DOWN ----------------------------- pptp.log -=------=-=-=-=-= pizzaboys# 192.168.0.254 adsl anon warn[open_inetsock:pptp_callmgr.c:311]: connect: Connection refused anon fatal[callmgr_main:pptp_callmgr.c:123]: Could not open control connection to 192.168.0.254 ----- pptp / ppp.conf file pizzaboys# less /etc/ppp/ppp.conf adsl: set log phase chat lcp ipcp ccp tun command set timeout 0 enable dns set authname USER(***** set authkey PASSWD**** set ifaddr 0 0 add default HISADDR Regards, Stephan Weaver. stephanweaver@hotmail.com _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From owner-freebsd-atm@FreeBSD.ORG Tue Jun 21 13:25:05 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C45016A41C; Tue, 21 Jun 2005 13:25:05 +0000 (GMT) (envelope-from bms@spc.org) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37A6543D4C; Tue, 21 Jun 2005 13:25:04 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 5275B6520E; Tue, 21 Jun 2005 14:24:59 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 59252-03; Tue, 21 Jun 2005 14:24:58 +0100 (BST) Received: from empiric.dek.spc.org (host81-136-156-39.in-addr.btopenworld.com [81.136.156.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 7B6E4651F4; Tue, 21 Jun 2005 14:24:58 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 63AE461F0; Tue, 21 Jun 2005 14:24:48 +0100 (BST) Date: Tue, 21 Jun 2005 14:24:48 +0100 From: Bruce M Simpson To: Stephan Weaver Message-ID: <20050621132448.GD803@empiric.icir.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-atm@freebsd.org, freebsd-questions@freebsd.org Subject: Re: Connecting My ADSL MODEM To My FreeBSD Pc. X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 13:25:05 -0000 On Tue, Jun 21, 2005 at 08:59:38AM -0400, Stephan Weaver wrote: > My Isp Uses PPPoA, i used the instructions from the handbook; > Using 'mpd'. > I set the ADSL router in 'bridge' mode and connect the Ethernet cable > from the Dsl Router/Modem to my FreeBSD Firewall. ON the Interface vr0. > But i have little success getting the results i want. [The Firewall doesn't > connect to my ISP] I don't think the SpeedTouch modems support bridging from PPPoA to Ethernet to the best of my knowledge -- I only know of one very specific model of D-Link ADSL modem which will do this (DSL-500G+ I think). You'll probably have more luck using a native ATM card hooked up to the ATM-25 passthrough port on the SpeedTouch and using userland PPP to get PPPoA encapsulation through to the BSD box. We don't support PPPoA in Netgraph [yet], I have a paper design for such a thing I haven't had any free time to implement. BMS From owner-freebsd-atm@FreeBSD.ORG Tue Jun 21 13:42:07 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A264D16A420 for ; Tue, 21 Jun 2005 13:42:07 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-1.dlr.de (smtp-1.dlr.de [195.37.61.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DF9B43D5C for ; Tue, 21 Jun 2005 13:42:06 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Tue, 21 Jun 2005 15:42:05 +0200 Date: Tue, 21 Jun 2005 15:42:07 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Heiner Strauss In-Reply-To: <42B805F6.9050804@bilch.com> Message-ID: <20050621153222.U20063@beagle.kn.op.dlr.de> References: <42B805F6.9050804@bilch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 21 Jun 2005 13:42:05.0385 (UTC) FILETIME=[02FE3390:01C57667] Cc: freebsd-atm@freebsd.org Subject: Re: Switched virtual connection X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 13:42:07 -0000 On Tue, 21 Jun 2005, Heiner Strauss wrote: Hi, HS>Im trying to set up a SVC directly to an atm edge switch (3Com SS II with an HS>ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card. I HS>have 2 Questions: HS> HS>1. Which of the 3 ATM implementations do I have to use ? You should use the HARP stack (that is netatm) plus the hatm driver (that needs options atm) and the if_harp driver. Something like: natm_interfaces="hatm0" plus HARP configuration. See also rc.d/atm[123]. HS>2. Do I need ATMARPD ? You should google around for HARP. There is somewhere documentation on the net. I think, that atmarpd is only needed if you want to synchronize several atmarp daemons. HS>3. Are there examples for SVCs in netgraph/natm/HARP ? There is some documentation in /usr/share/examples/atm. For the rc.conf variables you should refer to the rc files. HS>I have googled around and found examples for PVCs, but the switch supports HS>only SVCs. Both ends seem to send/receive SONET frames but nothing more: HS> HS>hatm0: flags=841 mtu 9180 HS> media: ATM Multi-mode/155MBit HS> status: active HS>fa0: flags=43 mtu 9180 HS> ether 00:20:48:2e:13:67 HS> HS>On the switch the Link Status LED is green. At the end I want to build HS>something like this: HS> HS>Telco -- DSL Router -- FreeBSD as a IP/ATM bridge/router or switch -- 3Com HS>with ethernet clients HS> HS>Is this possible or do I need a real ATM switch ? What do you want the FreeBSD to do here? Should it terminate the pppoa or whatever your DLS uses? Or do you want it to transparently connect the DSL to the ATM switch on the ATM layer? harti From owner-freebsd-atm@FreeBSD.ORG Tue Jun 21 20:44:29 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2149416A41C; Tue, 21 Jun 2005 20:44:29 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from ns2.bilch.com (ns2.bilch.com [213.217.66.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6265543D49; Tue, 21 Jun 2005 20:44:25 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from [10.0.0.1] (sieben.schlaf.bilch.com [10.0.0.1]) by ns2.bilch.com (8.13.4/8.13.4) with ESMTP id j5LKiNj9057370; Tue, 21 Jun 2005 22:44:24 +0200 (CEST) (envelope-from heiner@bilch.com) Message-ID: <42B87C41.50108@bilch.com> Date: Tue, 21 Jun 2005 22:44:49 +0200 From: Heiner Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050601 X-Accept-Language: de, de-ch, de-at, en-us, en, fr-fr, zh-tw MIME-Version: 1.0 To: Harti Brandt References: <42B805F6.9050804@bilch.com> <20050621153222.U20063@beagle.kn.op.dlr.de> In-Reply-To: <20050621153222.U20063@beagle.kn.op.dlr.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-atm@freebsd.org Subject: Re: Switched virtual connection X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2005 20:44:29 -0000 Harti Brandt wrote: > On Tue, 21 Jun 2005, Heiner Strauss wrote: > > Hi, > > HS>Im trying to set up a SVC directly to an atm edge switch (3Com SS II with an > HS>ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card. I > HS>have 2 Questions: > HS> > HS>1. Which of the 3 ATM implementations do I have to use ? > > You should use the HARP stack (that is netatm) plus the hatm driver (that > needs options atm) and the if_harp driver. Something like: > > natm_interfaces="hatm0" > > plus HARP configuration. See also rc.d/atm[123]. > > HS>2. Do I need ATMARPD ? > > You should google around for HARP. There is somewhere documentation on the > net. I think, that atmarpd is only needed if you want to synchronize > several atmarp daemons. > > HS>3. Are there examples for SVCs in netgraph/natm/HARP ? > > There is some documentation in /usr/share/examples/atm. For the rc.conf > variables you should refer to the rc files. > Ok. I did some homework. I have now : $ atm show int Interface Sigmgr State hatm0 UNI 3.0 INIT ATM address = 0x47.0005.80.ffe100.0000.0000.0000.0020482e1367.00 Network interfaces: fa0 There is now an UNI 3.0 signal manager and an ATM address. When I plug in the fiber the machine panics: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor write, page not present ... processor eflags = interrupt enabled, resume, IOPL=0 current process = 26 (swi1: net) trap number = 12 panic: page fault Uptime 29s Cannot dump.... I have this in my kernel: options ADAPTIVE_GIANT # Giant mutex is adaptive. options NATM options ATM_CORE #core ATM protocol family options ATM_IP #IP over ATM support #options ATM_SIGPVC #SIGPVC signalling manager #options ATM_SPANS #SPANS signalling manager options ATM_UNI #UNI signalling manager # ATM device hatm device utopia device atm device harp What do I have to do know ? > HS>I have googled around and found examples for PVCs, but the switch supports > HS>only SVCs. Both ends seem to send/receive SONET frames but nothing more: > HS> > HS>hatm0: flags=841 mtu 9180 > HS> media: ATM Multi-mode/155MBit > HS> status: active > HS>fa0: flags=43 mtu 9180 > HS> ether 00:20:48:2e:13:67 > HS> > HS>On the switch the Link Status LED is green. At the end I want to build > HS>something like this: > HS> > HS>Telco -- DSL Router -- FreeBSD as a IP/ATM bridge/router or switch -- 3Com > HS>with ethernet clients > HS> > HS>Is this possible or do I need a real ATM switch ? > > What do you want the FreeBSD to do here? Should it terminate the pppoa or > whatever your DLS uses? Or do you want it to transparently connect the DSL > to the ATM switch on the ATM layer? > Not exactly. For the beginning I just want to build a private ATM net. The FreeBSD host should provide (IP)-services (imap,http,video...) to the Ethernet VLANs clients at the 3Com switch. The telco DSL Router is giving me ethernet, maybe it's possible to connect it to a VLAN at the switch and make the ATM cells available to my private net. But this is for later. Basicly I want to have some practical expirience with ATM. > harti Heiner -- Heiner Strauss heiner@bilch.com Bilch International Consulting www.bilch.com Hamburg Markusstrasse 4 20355 Hamburg Tel.: +49 40 3480667 From owner-freebsd-atm@FreeBSD.ORG Wed Jun 22 08:08:16 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B1DC16A41C for ; Wed, 22 Jun 2005 08:08:16 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-1.dlr.de (smtp-1.dlr.de [195.37.61.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC63543D4C for ; Wed, 22 Jun 2005 08:08:15 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Wed, 22 Jun 2005 10:08:14 +0200 Date: Wed, 22 Jun 2005 10:08:14 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Heiner Strauss In-Reply-To: <42B87C41.50108@bilch.com> Message-ID: <20050622100548.G70536@beagle.kn.op.dlr.de> References: <42B805F6.9050804@bilch.com> <20050621153222.U20063@beagle.kn.op.dlr.de> <42B87C41.50108@bilch.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 22 Jun 2005 08:08:14.0861 (UTC) FILETIME=[8A488BD0:01C57701] Cc: freebsd-atm@freebsd.org Subject: Re: Switched virtual connection X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 08:08:16 -0000 On Tue, 21 Jun 2005, Heiner Strauss wrote: HS>Harti Brandt wrote: HS>> On Tue, 21 Jun 2005, Heiner Strauss wrote: HS>> HS>> Hi, HS>> HS>> HS>Im trying to set up a SVC directly to an atm edge switch (3Com SS II HS>> with an HS>> HS>ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card. HS>> I HS>> HS>have 2 Questions: HS>> HS> HS>> HS>1. Which of the 3 ATM implementations do I have to use ? HS>> HS>> You should use the HARP stack (that is netatm) plus the hatm driver (that HS>> needs options atm) and the if_harp driver. Something like: HS>> HS>> natm_interfaces="hatm0" HS>> HS>> plus HARP configuration. See also rc.d/atm[123]. HS>> HS>> HS>2. Do I need ATMARPD ? HS>> HS>> You should google around for HARP. There is somewhere documentation on the HS>> net. I think, that atmarpd is only needed if you want to synchronize HS>> several atmarp daemons. HS>> HS>> HS>3. Are there examples for SVCs in netgraph/natm/HARP ? HS>> HS>> There is some documentation in /usr/share/examples/atm. For the rc.conf HS>> variables you should refer to the rc files. HS>> HS> HS>Ok. I did some homework. I have now : HS> HS>$ atm show int HS>Interface Sigmgr State HS>hatm0 UNI 3.0 INIT HS> ATM address = 0x47.0005.80.ffe100.0000.0000.0000.0020482e1367.00 HS> Network interfaces: fa0 HS> HS>There is now an UNI 3.0 signal manager and an ATM address. When I plug in the HS>fiber the machine panics: HS> HS>Fatal trap 12: page fault while in kernel mode HS>fault virtual address = 0x0 HS>fault code = supervisor write, page not present HS>... HS>processor eflags = interrupt enabled, resume, IOPL=0 HS>current process = 26 (swi1: net) HS>trap number = 12 HS>panic: page fault HS>Uptime 29s HS>Cannot dump.... HS> HS>I have this in my kernel: HS> HS>options ADAPTIVE_GIANT # Giant mutex is adaptive. HS> HS>options NATM HS>options ATM_CORE #core ATM protocol family HS>options ATM_IP #IP over ATM support HS>#options ATM_SIGPVC #SIGPVC signalling manager HS>#options ATM_SPANS #SPANS signalling manager HS>options ATM_UNI #UNI signalling manager HS> HS># ATM HS>device hatm HS>device utopia HS>device atm HS>device harp HS> HS>What do I have to do know ? You can remove options NATM (but this has nothing to do with the panic). Can you please compile in DDB so that we get a stack trace? Also do you run current? If yes, you should fetch the patches I have committed today. HS> HS>> HS>I have googled around and found examples for PVCs, but the switch HS>> supports HS>> HS>only SVCs. Both ends seem to send/receive SONET frames but nothing more: HS>> HS> HS>> HS>hatm0: flags=841 mtu 9180 HS>> HS> media: ATM Multi-mode/155MBit HS>> HS> status: active HS>> HS>fa0: flags=43 mtu 9180 HS>> HS> ether 00:20:48:2e:13:67 HS>> HS> HS>> HS>On the switch the Link Status LED is green. At the end I want to build HS>> HS>something like this: HS>> HS> HS>> HS>Telco -- DSL Router -- FreeBSD as a IP/ATM bridge/router or switch -- HS>> 3Com HS>> HS>with ethernet clients HS>> HS> HS>> HS>Is this possible or do I need a real ATM switch ? HS>> HS>> What do you want the FreeBSD to do here? Should it terminate the pppoa or HS>> whatever your DLS uses? Or do you want it to transparently connect the DSL HS>> to the ATM switch on the ATM layer? HS>> HS> HS>Not exactly. For the beginning I just want to build a private ATM net. The HS>FreeBSD host should provide (IP)-services (imap,http,video...) to the HS>Ethernet VLANs clients at the 3Com switch. The telco DSL Router is giving me HS>ethernet, maybe it's possible to connect it to a VLAN at the switch and make HS>the ATM cells available to my private net. But this is for later. Basicly I HS>want to have some practical expirience with ATM. Ok so let's start with the first thing. harti From owner-freebsd-atm@FreeBSD.ORG Wed Jun 22 08:53:29 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D728416A41C; Wed, 22 Jun 2005 08:53:29 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [65.75.192.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2ED6B43D49; Wed, 22 Jun 2005 08:53:29 +0000 (GMT) (envelope-from tedm@toybox.placo.com) Received: from tedwin2k (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.11.1/8.11.1) with SMTP id j5M8sVb24790; Wed, 22 Jun 2005 01:54:31 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Stephan Weaver" , , Date: Wed, 22 Jun 2005 01:53:27 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Importance: Normal Cc: Subject: RE: Connecting My ADSL MODEM To My FreeBSD Pc. X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 08:53:30 -0000 Stephan, Have you tried setting up with userland ppp for PPPoE? A lot of DSL providers are unclear on the concept and label PPPoE (RFC 2516) installations as PPPoA (RFC 2364) and vis-versa. Ted >-----Original Message----- >From: owner-freebsd-questions@freebsd.org >[mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Stephan Weaver >Sent: Tuesday, June 21, 2005 6:00 AM >To: freebsd-atm@freebsd.org; freebsd-questions@freebsd.org >Subject: Connecting My ADSL MODEM To My FreeBSD Pc. > > >Hello Friendly FreeBSD people. > >Let me get straight to the point. > >I am implimenting a FreeBSD Based Firewall. > >I have an ADSL Speedtouch 5200 Modem/Router, Currently Plugged into my >Switch. > >I want to connect the ADSL modem to my FreeBSD Firewall; >So that the FreeBSD Firewall will be creating a PPP connection >directly to >my ISP. >E.g., my vr0 interface will have a PUBLIC Internet Address (IF >Possible?). > > >My Isp Uses PPPoA, i used the instructions from the handbook; >Using 'mpd'. >I set the ADSL router in 'bridge' mode and connect the Ethernet cable >from the Dsl Router/Modem to my FreeBSD Firewall. ON the Interface vr0. > > >But i have little success getting the results i want. [The >Firewall doesn't >connect to my ISP] > > >Anyone willing to give me a clue? > >--------------------------------------- >Config stuff. >rc.conf >-- >#FireWall Stuff >#--------------- > >inetd_enable="NO" >sendmail_enable="NO" >sendmail_submit_enable="NO" >sendmail_outbound_enable="NO" >sendmail_msp_queue_enable="NO" >check_quotas="NO" > >gateway_enable="YES" >ipnat_enable="YES" >ipnat_rules="/etc/ipnat.rules" > >ipfilter_enable="YES" >ipfilter_flags="" >ipfilter_rules="/etc/ipf.rules" >ipmon_enable="YES" >ipmon_flags="-Dsn" > >#vr0 Connects to DSL MODEM >ifconfig_vr0="inet 192.168.0.1 netmask 255.255.255.0" >#------------------------- >mpd.conf >default: > load adsl > >adsl: > new -i ng0 adsl adsl > set bundle authname USER****** > set bundle password PASS***[changed] > set bundle disable multilink > > set link no pap acfcomp protocomp > set link disable chap > set link accept chap > set link keep-alive 30 10 > > set ipcp no vjcomp > set ipcp ranges 0.0.0.0/0 0.0.0.0/0 > > set iface route default > set iface disable on-demand > set iface enable proxy-arp > set iface idle 0 > > open > >----------------- > >mpd.links >-- >adsl: > set link type pptp > set pptp mode active > set pptp enable originate outcall > set pptp self 192.168.0.1 > set pptp peer 192.168.0.254 >---------------- > > >192.168.0.1 = vr0 interface [ firewall ] >192.168.0.254 = dsl modem/router. > >Empty /etc/ipnat.rules; empty /etc/ipf.rules >------------------ > > >MPD.LOG >--- >Multi-link PPP for FreeBSD, by Archie L. Cobbs. >Based on iij-ppp, by Toshiharu OHNO. >mpd: pid 523, version 3.18 (root@pizzaboys.org 20:57 16-Jun-2005) >[adsl] ppp node is "mpd523-adsl" >set pptp mode: unknown command. Try "help". >[adsl] using interface ng0 >[adsl] IPCP: peer address cannot be zero >[adsl] IFACE: Open event >[adsl] IPCP: Open event >[adsl] IPCP: state change Initial --> Starting >[adsl] IPCP: LayerStart >[adsl:adsl] [adsl] bundle: OPEN event in state CLOSED >[adsl] opening link "adsl"... >[adsl] link: OPEN event >[adsl] LCP: Open event >[adsl] LCP: state change Initial --> Starting >[adsl] LCP: LayerStart >[adsl] device: OPEN event in state DOWN >pptp0: connecting to 192.168.0.254:1723 >[adsl] device is now in state OPENING >pptp0: connection to 192.168.0.254:1723 failed >pptp0: killing connection with 192.168.0.254:1723 >pptp0-0: killing channel >[adsl] PPTP call failed >[adsl] device: DOWN event in state OPENING >[adsl] device is now in state DOWN >[adsl] link: DOWN event >[adsl] LCP: Down event >[adsl] device: OPEN event in state DOWN >[adsl] pausing 7 seconds before open >[adsl] device is now in state DOWN >----------------------------- >pptp.log >-=------=-=-=-=-= >pizzaboys# 192.168.0.254 adsl >anon warn[open_inetsock:pptp_callmgr.c:311]: connect: Connection refused >anon fatal[callmgr_main:pptp_callmgr.c:123]: Could not open control >connection >to 192.168.0.254 >----- >pptp / ppp.conf file >pizzaboys# less /etc/ppp/ppp.conf >adsl: >set log phase chat lcp ipcp ccp tun command >set timeout 0 >enable dns >set authname USER(***** >set authkey PASSWD**** >set ifaddr 0 0 >add default HISADDR > > >Regards, >Stephan Weaver. > >stephanweaver@hotmail.com > >_________________________________________________________________ >Express yourself instantly with MSN Messenger! Download today >it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscribe@freebsd.org" > From owner-freebsd-atm@FreeBSD.ORG Wed Jun 22 13:41:20 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19C9316A41C; Wed, 22 Jun 2005 13:41:20 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from ns2.bilch.com (ns2.bilch.com [213.217.66.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23FFD43D55; Wed, 22 Jun 2005 13:41:16 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from [10.0.0.1] (sieben.schlaf.bilch.com [10.0.0.1]) by ns2.bilch.com (8.13.4/8.13.4) with ESMTP id j5MDfEn7064220; Wed, 22 Jun 2005 15:41:15 +0200 (CEST) (envelope-from heiner@bilch.com) Message-ID: <42B96A91.9030508@bilch.com> Date: Wed, 22 Jun 2005 15:41:37 +0200 From: Heiner Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050601 X-Accept-Language: de, de-ch, de-at, en-us, en, fr-fr, zh-tw MIME-Version: 1.0 To: Harti Brandt References: <42B805F6.9050804@bilch.com> <20050621153222.U20063@beagle.kn.op.dlr.de> <42B87C41.50108@bilch.com> <20050622100548.G70536@beagle.kn.op.dlr.de> In-Reply-To: <20050622100548.G70536@beagle.kn.op.dlr.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-atm@freebsd.org Subject: Re: Switched virtual connection X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 13:41:20 -0000 Harti Brandt wrote: > On Tue, 21 Jun 2005, Heiner Strauss wrote: > > HS>Harti Brandt wrote: > HS>> On Tue, 21 Jun 2005, Heiner Strauss wrote: > HS>> > HS>> Hi, > HS>> > HS>> HS>Im trying to set up a SVC directly to an atm edge switch (3Com SS II > HS>> with an > HS>> HS>ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card. > HS>> I > HS>> HS>have 2 Questions: > HS>> HS> > HS>> HS>1. Which of the 3 ATM implementations do I have to use ? > HS>> > HS>> You should use the HARP stack (that is netatm) plus the hatm driver (that > HS>> needs options atm) and the if_harp driver. Something like: > HS>> > HS>> natm_interfaces="hatm0" > HS>> > HS>> plus HARP configuration. See also rc.d/atm[123]. > HS>> > HS>> HS>2. Do I need ATMARPD ? > HS>> > HS>> You should google around for HARP. There is somewhere documentation on the > HS>> net. I think, that atmarpd is only needed if you want to synchronize > HS>> several atmarp daemons. > HS>> > HS>> HS>3. Are there examples for SVCs in netgraph/natm/HARP ? > HS>> > HS>> There is some documentation in /usr/share/examples/atm. For the rc.conf > HS>> variables you should refer to the rc files. > HS>> > HS> > HS>Ok. I did some homework. I have now : > HS> > HS>$ atm show int > HS>Interface Sigmgr State > HS>hatm0 UNI 3.0 INIT > HS> ATM address = 0x47.0005.80.ffe100.0000.0000.0000.0020482e1367.00 > HS> Network interfaces: fa0 > HS> > HS>There is now an UNI 3.0 signal manager and an ATM address. When I plug in the > HS>fiber the machine panics: > HS> > HS>Fatal trap 12: page fault while in kernel mode > HS>fault virtual address = 0x0 > HS>fault code = supervisor write, page not present > HS>... > HS>processor eflags = interrupt enabled, resume, IOPL=0 > HS>current process = 26 (swi1: net) > HS>trap number = 12 > HS>panic: page fault > HS>Uptime 29s > HS>Cannot dump.... > HS> > HS>I have this in my kernel: > HS> > HS>options ADAPTIVE_GIANT # Giant mutex is adaptive. > HS> > HS>options NATM > HS>options ATM_CORE #core ATM protocol family > HS>options ATM_IP #IP over ATM support > HS>#options ATM_SIGPVC #SIGPVC signalling manager > HS>#options ATM_SPANS #SPANS signalling manager > HS>options ATM_UNI #UNI signalling manager > HS> > HS># ATM > HS>device hatm > HS>device utopia > HS>device atm > HS>device harp > HS> > HS>What do I have to do know ? > > You can remove options NATM (but this has nothing to do with the panic). > Can you please compile in DDB so that we get a stack trace? Also do you > run current? If yes, you should fetch the patches I have committed today. > I have outcommented "options NATM". Here is the stack trace: air# hatm0: carrier detected Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor write, page not present instruction pointer = 0x8:0xc18f9000 stack pointer = 0x10:0xcbd20bb8 frame pointer = 0x10:0xcbd20bc0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 26 (swi1: net) [thread pid 26 tid 100020 ] Stopped at 0xc18f9000: addb %al,0(%eax) db> trace Tracing pid 26 tid 100020 td 0xc1502000 _end(c1a98300,c18fe9ec,c1a98400,c1a98300,cbd20be8) at 0xc18f9000 m_tag_delete_chain(c1a98300,0) at m_tag_delete_chain+0x37 mb_dtor_mbuf(c1a98300,100,0,0,0) at mb_dtor_mbuf+0x14 uma_zfree_arg(c1045ae0,c1a98300,0) at uma_zfree_arg+0x38 m_freem(c1a98300) at m_freem+0x2e sscf_uni_upper(82008013,c18fb000,c1a98300,0,c18fd000) at sscf_uni_upper+0x1a9 sscop_bgn_outconn(c18fd000,c1a98300,c16a9e00) at sscop_bgn_outconn+0xd8 sscop_upper(81808011,c18fd000,c1a98300,0,c1a98300) at sscop_upper+0x8d harp_recv_stack(c18fe9ec,c1a98300) at harp_recv_stack+0x45 atm_intr(c1a98300) at atm_intr+0x1a netisr_processqueue(c072d75c) at netisr_processqueue+0x9f swi_net(0) at swi_net+0xa6 ithread_loop(c14eb480,cbd20d38) at ithread_loop+0x151 fork_exit(c04edef8,c14eb480,cbd20d38) at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xcbd20d6c, ebp = 0 --- db>call boot(0) Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop...panic: atm_stack_drain: Queue not emptied KDB: enter: panic [thread pid 27 tid 100021 ] Stopped at kdb_enter+0x2b: nop Ok, I pull the fiber... The OS is: FreeBSD air.schlaf.bilch.com 5.4-STABLE FreeBSD 5.4-STABLE #1: Wed Jun 22 14:35:39 CEST 2005 heiner@g2.schlaf.bilch.com:/usr/src/sys/i386/compile/HARP i386 > HS> > HS>> HS>I have googled around and found examples for PVCs, but the switch > HS>> supports > HS>> HS>only SVCs. Both ends seem to send/receive SONET frames but nothing more: > HS>> HS> > HS>> HS>hatm0: flags=841 mtu 9180 > HS>> HS> media: ATM Multi-mode/155MBit > HS>> HS> status: active > HS>> HS>fa0: flags=43 mtu 9180 > HS>> HS> ether 00:20:48:2e:13:67 > HS>> HS> > HS>> HS>On the switch the Link Status LED is green. At the end I want to build > HS>> HS>something like this: > HS>> HS> > HS>> HS>Telco -- DSL Router -- FreeBSD as a IP/ATM bridge/router or switch -- > HS>> 3Com > HS>> HS>with ethernet clients > HS>> HS> > HS>> HS>Is this possible or do I need a real ATM switch ? > HS>> > HS>> What do you want the FreeBSD to do here? Should it terminate the pppoa or > HS>> whatever your DLS uses? Or do you want it to transparently connect the DSL > HS>> to the ATM switch on the ATM layer? > HS>> > HS> > HS>Not exactly. For the beginning I just want to build a private ATM net. The > HS>FreeBSD host should provide (IP)-services (imap,http,video...) to the > HS>Ethernet VLANs clients at the 3Com switch. The telco DSL Router is giving me > HS>ethernet, maybe it's possible to connect it to a VLAN at the switch and make > HS>the ATM cells available to my private net. But this is for later. Basicly I > HS>want to have some practical expirience with ATM. > > Ok so let's start with the first thing. Yes :) > > harti -- Heiner Strauss heiner@bilch.com Bilch International Consulting www.bilch.com Hamburg Markusstrasse 4 20355 Hamburg Tel.: +49 40 3480667 From owner-freebsd-atm@FreeBSD.ORG Fri Jun 24 10:06:02 2005 Return-Path: X-Original-To: freebsd-atm@freebsd.org Delivered-To: freebsd-atm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3F7C16A41C; Fri, 24 Jun 2005 10:06:02 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from ns2.bilch.com (ns2.bilch.com [213.217.66.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D48143D55; Fri, 24 Jun 2005 10:05:54 +0000 (GMT) (envelope-from heiner@bilch.com) Received: from [10.0.0.1] (sieben.schlaf.bilch.com [10.0.0.1]) by ns2.bilch.com (8.13.4/8.13.4) with ESMTP id j5OA5iNI080287; Fri, 24 Jun 2005 12:05:47 +0200 (CEST) (envelope-from heiner@bilch.com) Message-ID: <42BBDAF8.6060507@bilch.com> Date: Fri, 24 Jun 2005 12:05:44 +0200 From: Heiner Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050601 X-Accept-Language: de, de-ch, de-at, en-us, en, fr-fr, zh-tw MIME-Version: 1.0 To: Harti Brandt References: <42B805F6.9050804@bilch.com> <20050621153222.U20063@beagle.kn.op.dlr.de> <42B87C41.50108@bilch.com> <20050622100548.G70536@beagle.kn.op.dlr.de> In-Reply-To: <20050622100548.G70536@beagle.kn.op.dlr.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-atm@freebsd.org Subject: Re: Switched virtual connection X-BeenThere: freebsd-atm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ATM for FreeBSD! List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jun 2005 10:06:02 -0000 Harti Brandt wrote: > On Tue, 21 Jun 2005, Heiner Strauss wrote: > > HS>Harti Brandt wrote: > HS>> On Tue, 21 Jun 2005, Heiner Strauss wrote: > HS>> > HS>> Hi, > HS>> > HS>> HS>Im trying to set up a SVC directly to an atm edge switch (3Com SS II > HS>> with an > HS>> HS>ATM uplink modul). The host has FreeBSD 5.4 and a ForeRunner 155HE card. > HS>> I > HS>> HS>have 2 Questions: > HS>> HS> > HS>> HS>1. Which of the 3 ATM implementations do I have to use ? > HS>> > HS>> You should use the HARP stack (that is netatm) plus the hatm driver (that > HS>> needs options atm) and the if_harp driver. Something like: > HS>> > HS>> natm_interfaces="hatm0" > HS>> > HS>> plus HARP configuration. See also rc.d/atm[123]. > HS>> > HS>> HS>2. Do I need ATMARPD ? > HS>> > HS>> You should google around for HARP. There is somewhere documentation on the > HS>> net. I think, that atmarpd is only needed if you want to synchronize > HS>> several atmarp daemons. > HS>> > HS>> HS>3. Are there examples for SVCs in netgraph/natm/HARP ? > HS>> > HS>> There is some documentation in /usr/share/examples/atm. For the rc.conf > HS>> variables you should refer to the rc files. > HS>> > HS> > HS>Ok. I did some homework. I have now : > HS> > HS>$ atm show int > HS>Interface Sigmgr State > HS>hatm0 UNI 3.0 INIT > HS> ATM address = 0x47.0005.80.ffe100.0000.0000.0000.0020482e1367.00 > HS> Network interfaces: fa0 > HS> > HS>There is now an UNI 3.0 signal manager and an ATM address. When I plug in the > HS>fiber the machine panics: > HS> > HS>Fatal trap 12: page fault while in kernel mode > HS>fault virtual address = 0x0 > HS>fault code = supervisor write, page not present > HS>... > HS>processor eflags = interrupt enabled, resume, IOPL=0 > HS>current process = 26 (swi1: net) > HS>trap number = 12 > HS>panic: page fault > HS>Uptime 29s > HS>Cannot dump.... > HS> > HS>I have this in my kernel: > HS> > HS>options ADAPTIVE_GIANT # Giant mutex is adaptive. > HS> > HS>options NATM > HS>options ATM_CORE #core ATM protocol family > HS>options ATM_IP #IP over ATM support > HS>#options ATM_SIGPVC #SIGPVC signalling manager > HS>#options ATM_SPANS #SPANS signalling manager > HS>options ATM_UNI #UNI signalling manager > HS> > HS># ATM > HS>device hatm > HS>device utopia > HS>device atm > HS>device harp > HS> > HS>What do I have to do know ? > > You can remove options NATM (but this has nothing to do with the panic). > Can you please compile in DDB so that we get a stack trace? Also do you > run current? If yes, you should fetch the patches I have committed today. > Here is the stack trace from current: Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-CURRENT #0: Fri Jun 24 09:15:38 CEST 2005 root@air.schlaf.bilch.com:/usr/obj/usr/src/sys/HARP WARNING: debug.mpsafenet forced to 0 as netatm requires Giant WARNING: MPSAFE network stack disabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Pentium II/Pentium II Xeon/Celeron (231.61-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x634 Stepping = 4 Features=0x80f9ff real memory = 268427264 (255 MB) avail memory = 253214720 (241 MB) ACPI disabled by blacklist. Contact your BIOS vendor. npx0: [FAST] npx0: on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: pcibus 0 on motherboard pir0: on motherboard pci0: on pcib0 agp0: mem 0xf8000000-0xfbffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xf800-0xf81f irq 9 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 7.3 (no driver attached) ed0: port 0xf400-0xf41f irq 11 at device 12.0 on pci0 ed0: [GIANT-LOCKED] ed0: Ethernet address: 48:54:e8:27:68:d5 ed0: type NE2000 (16 bit) hatm0: mem 0xfed00000-0xfedfffff irq 10 at device 14.0 on pci0 Fatal trap 12: page fault while in kernel mode fault virtual address = 0x82080800 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0479db8 stack pointer = 0x28:0xc0c20b58 frame pointer = 0x28:0xc0c20b64 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) [thread pid 0 tid 0 ] Stopped at hatm_utopia_readregs+0x54: movl 0(%edx,%eax,1),%eax db> trace Tracing pid 0 tid 0 td 0xc072c720 hatm_utopia_readregs(c15cd140,0,c0c20b7f,c0c20b80) at hatm_utopia_readregs+0x54 utopia_start(c15c706c,c153fd80,c153fd80,c15b7000,c153fd80) at utopia_start+0x22 hatm_attach(c153fd80) at hatm_attach+0x8a0 device_attach(c153fd80,c15b4080,c153fd80,c14f7480,c14f7480) at device_attach+0x58 device_probe_and_attach(c153fd80) at device_probe_and_attach+0xc4 bus_generic_attach(c14f7480,c14f7480,0,7c,0) at bus_generic_attach+0x16 pci_attach(c14f7480) at pci_attach+0x7f device_attach(c14f7480,c14f7700,c14f7480,0,c14f7580) at device_attach+0x58 device_probe_and_attach(c14f7480) at device_probe_and_attach+0xc4 bus_generic_attach(c14f7580,c14f7580,c06daa84,0,0) at bus_generic_attach+0x16 legacy_pcib_attach(c14f7580) at legacy_pcib_attach+0xce device_attach(c14f7580,c0724560,c14f7580,0,c14f7700) at device_attach+0x58 device_probe_and_attach(c14f7580) at device_probe_and_attach+0xc4 bus_generic_attach(c14f7700,c14f7700,c14f7700,c14f7700,0) at bus_generic_attach+0x16 legacy_attach(c14f7700) at legacy_attach+0x8e device_attach(c14f7700,c081f853,c14f7700,c14f7c00,0) at device_attach+0x58 device_probe_and_attach(c14f7700) at device_probe_and_attach+0xc4 bus_generic_attach(c14f7c00,c14f7c00,c14f7c00,c0c20d40,c051e154) at bus_generic_attach+0x16 nexus_attach(c14f7c00) at nexus_attach+0x13 device_attach(c14f7c00,c0528118,c14f7c00,c07191b0,c25000) at device_attach+0x58 device_probe_and_attach(c14f7c00) at device_probe_and_attach+0xc4 root_bus_configure(c0c20d88,c04dfe9e,0,c1ec00,c1e000) at root_bus_configure+0x16 configure(0,c1ec00,c1e000,0,c0434f55) at configure+0x9 mi_startup() at mi_startup+0x96 begin() at begin+0x2c This happens now with or without the fiber plugged in. The Fore card is 64 bit card in a 32 bit PCI slot. Heiner -- Heiner Strauss heiner@bilch.com Bilch International Consulting www.bilch.com Hamburg Markusstrasse 4 20355 Hamburg Tel.: +49 40 3480667