Subject: Internet connection via Kernel PPPoE is not working
To: None <netbsd-help@netbsd.org>
From: None <carstenlaux@online.de>
List: netbsd-help
Date: 01/09/2005 19:54:10
--Alt-Boundary-30228.4645734
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: Quoted-printable
Content-description: Mail message body
Hi,
I try to configure a Internet Gateway with NetBSD 2.0. I would like
to establish a Dial on Demand connection with Kernel PPPoE, as it is
described in the NetBSD FAQ=B4s.
The Gateway is a i386 PC with 2 Network Cards. The external
Interface is a Intel EtherExpress Pro 10/100 (fxp0) and the internal
Card is a Realtek RTL 8129/8139 (rtk0).
What I=B4ve done till now:
Added a hostname in /etc/rc.conf
Created /etc/ifconfig.rtk0 and assigned a IP-Address and a Network
Mask to the Internal Interface
Verified with ifconfig -c if the Kernel has PPPoE Support included-
he has
Created ifconfig.pppoe0 in /etc. First I have used this Script from
the FAQ=B4s: (I have used my NIC, the ISP uses PAP)
create
# Mark the physical interface used by this PPPoE interface up
! /sbin/ifconfig ne0 up
# Let $int use ne0 as its Ethernet interface
! /sbin/pppoectl -e ne0 $int
# Configure authentication
! /sbin/pppoectl $int idle-timeout=3D60 myauthproto=3Dpap
'myauthname=3DXXX' 'myauthsecret=3DYYY' hisauthproto=3Dnone
# Configure the PPPoE interface itself. These addresses are magic
# meaning we don't care about either address and let the remote
# ppp choose them.
0.0.0.0 0.0.0.1 link1 up
! /sbin/route add default -iface 0.0.0.1
Then I set this sysctl variable:
# Obey interface MTUs when calculating MSS
net.inet.tcp.mss_ifmtu=3D1
Created /etc/resolv.conf and put in the DNS-Server from my ISP.
Rebooted the PC.
-------------------------------------------------------------------
During the boot process I received the following Error messages:
Configuring network interfaces: rtk0 pppoe0eval: /sbin/permission
denied
add net default gateway 0.0.0.1
other Error messages:
Configuring network Interfaces: rtk0 pppoe0ifconfig:
ifconfig: bad value
ifconfig: pppoectl: bad value
--------------------------------------------------------------------
In the Manual Pages from NetBSD 2.0 the Connection Scripts are a
little bit different as they are in the FAQ=B4s. I tried parts of the
examples with the same result.
I would be grateful for any help.
Regards
Carsten Laux
--Alt-Boundary-30228.4645734
Content-type: text/html; charset=ISO-8859-1
Content-transfer-encoding: Quoted-printable
Content-description: Mail message body
<?xml version=3D"1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Hi,</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">I try to configure a Internet Gateway with NetBSD 2.0. I would like
to establish a Dial on Demand connection with Kernel PPPoE, as it is
described in the NetBSD FAQ´s. </span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">The Gateway is a i386 PC with 2 Network Cards. The external
Interface is a Intel EtherExpress Pro 10/100 (fxp0) and the internal
Card is a Realtek RTL 8129/8139 (rtk0).</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">What I´ve done till now:</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Added a hostname in /etc/rc.conf</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Created /etc/ifconfig.rtk0 and assigned a IP-Address and a Network
Mask to the Internal Interface</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Verified with ifconfig -c if the Kernel has PPPoE Support included-
he has</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Created ifconfig.pppoe0 in /etc. First I have used this Script from
the FAQ´s: (I have used my NIC, the ISP uses PAP)</span></font></div>
<div align=3D"left"><br/></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">create</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># Mark the physical interface used by this PPPoE interface up</span></=
font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">! /sbin/ifconfig ne0 up</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># Let $int use ne0 as its Ethernet interface</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">! /sbin/pppoectl -e ne0 $int</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># Configure authentication</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">! /sbin/pppoectl $int idle-timeout=3D60 myauthproto=3Dpap
'myauthname=3DXXX' 'myauthsecret=3DYYY' hisauthproto=3Dnone</span></font><=
/div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># Configure the PPPoE interface itself. These addresses are magic</spa=
n></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># meaning we don't care about either address and let the remote</span>=
</font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># ppp choose them.</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">0.0.0.0 0.0.0.1 link1 up</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">! /sbin/route add default -iface 0.0.0.1</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Then I set this sysctl variable: </span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt"># Obey interface MTUs when calculating MSS</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">net.inet.tcp.mss_ifmtu=3D1</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Created /etc/resolv.conf and put in the DNS-Server from my ISP.</span>=
</font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Rebooted the PC. </span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">-------------------------------------------------------------------</s=
pan></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">During the boot process I received the following Error messages:</span=
></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Configuring network interfaces: rtk0 pppoe0eval: /sbin/permission
denied</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">add net default gateway 0.0.0.1</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">other Error messages:</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Configuring network Interfaces: rtk0 pppoe0ifconfig:</span></font></di=
v>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">ifconfig: bad value</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">ifconfig: pppoectl: bad value</span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">--------------------------------------------------------------------</=
span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">In the Manual Pages from NetBSD 2.0 the Connection Scripts are a
little bit different as they are in the FAQ´s. I tried parts of the <=
/span></font></div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">examples with the same result. </span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">I would be grateful for any help. </span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Regards</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><font face=3D"Courier New"><span style=3D"font-size:10=
pt">Carsten Laux</span></font></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/></div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/></div>
<p><br/></p>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"><br/>
</div>
<div align=3D"left"></div>
</body>
</html>
--Alt-Boundary-30228.4645734--