The Care and Feeding of ISDN4BSD
previous up next
10.1 isdnd.rc Setup 10 Setting up a 10.3 telnet to the



10.2 sppp and isp0 Setup using ispppcontrol and ifconfig

This shell script is used to get the isp0 network interface and its invisible sppp companion configured:

#!/bin/sh

#--------------------------------------

#       ppp example setup

#       last edit-date: [Wed Feb 24 15:53:49 1999]

#--------------------------------------

 

echo "configuring I4BISDN/PPP-interface isp0:"

echo "--------------------"

 

echo ""

echo "removing previous configuration"

ifconfig isp0 delete -link1 down

 

echo ""

echo "setting PPP options"

ispppcontrol isp0 myauthproto=chap

ispppcontrol isp0 myauthname=hmbsd

ispppcontrol isp0 myauthsecret=ganzgeheim

 

echo ""

echo "configuring IP src/dst address, netmask and link flags"

ifconfig isp0 0.0.0.0 192.76.124.10 netmask 0xffffffff link1

 

echo ""

echo "finished"

What does it do ?

In case the isp0 interface was already configured with something, the line

ifconfig isp0 delete -link1 down

puts the isp0 interface into a known state.

ispppcontrol isp0 myauthproto=chap

configures the authorization protocol, our side of the link wants to use CHAP6. The other possible protocol to configure here would be PAP7.

ispppcontrol isp0 myauthname=hmbsd

sets the system name to hmbsd and

ispppcontrol isp0 myauthsecret=ganzgeheim

sets the password to ganzgeheim to authorize ourselves to the remote PPP stack.

Finally the line

ifconfig isp0 0.0.0.0 192.76.124.10 netmask 0xffffffff link1

configures the isp0 interface:


previous index next

Hellmuth Michaelis 2001-08-16