These configurations are examples added to the default in ppp.doc. It uses
some aditional commands like add_route and you need to adapt them to your
specific configuration.


Example configuration using 2 pseudo-devices and PPP 
====================================================

In this configuration, the system uses the default psip device for local
conectivity and psip3 (not the default) for PPP.
Be carefull with the add_route command, you must follow the sequence to 
avoid configure wrong routing.  

# netdefault psip2  

this command is done only one for initial configuration.

# ifconfig -h 10.1.1.1 -n 255.255.255.0 
# ifconfig -I /dev/ip3 -h 20.1.1.1 -n 0.0.0.0 
# add_route -g 10.1.1.1 
# add_route -g 20.1.1.1 -I /dev/ip3 
# add_route -i -g 0.0.0.0 -d 10.1.1.0 -m 1 -n 255.255.255.0 
# add_route -i -g 0.0.0.0 -d 0.0.0.0 -m 5 -n 0.0.0.0 -I /dev/ip3

the local IP is 10.1.1.1 for home comunication. 20.1.1.1 (ip3) is used
for conecting to the ISP.


We start the ppp driver like

# ppp.drv -b 38400 -I /dev/psip3 -a -t /dev/tty01 &
# nonamed -n ISP-DNS &


We can start nonamed or use the -N flag.



Example configuration using Ethernet and PPP 
============================================
The following example is using an ethernet device for LAN and a PPP link 
with an ISP to access Internet. 

# netdefault eth0 

This command is executed once. It defines your ethernet card as default 
for LAN communication.

# ifconfig -h 10.1.1.1 -n 255.255.255.0 
# ifconfig -I /dev/ip3 -h 20.1.1.1 -n 0.0.0.0 
# add_route -g 10.1.1.1 
# add_route -g 20.1.1.1 -I /dev/ip3 
# add_route -i -g 0.0.0.0 -d 10.1.1.0 -m 1 -n 255.255.255.0 
# add_route -i -g 0.0.0.0 -d 0.0.0.0 -m 5 -n 0.0.0.0 -I /dev/ip3

Again, 10.1.1.1 is our local IP at our LAN.


We start ppp.drv using /dev/psip3. We can dial the ISP with chat.

# ppp.drv -b 38400 -I /dev/psip3 -a -t /dev/tty01 &
# nonamed -n ISP-DNS &


You can use -N to avoid using nonamed.


