home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / ppp / examples / interfaces < prev    next >
Encoding:
Text File  |  2006-07-10  |  1.4 KB  |  52 lines

  1. # copy one of these examples to /etc/network/interfaces
  2.  
  3. # The VP, VC and encapsulation must match the ones used by your ISP, these
  4. # examples use 8.35 with LLC encapsulation and assume that ATM interface
  5. # 0 is the DSL modem.
  6. # br2684ctl and atmarp are part of the br2684ctl and atm-tools packages,
  7. # check the atmarp(8) and br2684ctl(8) man pages for details about the
  8. # command line options.
  9.  
  10.  
  11. # PPPoE
  12. # You need to create an appropriate /etc/ppp/peers/pppoe file, look at
  13. # /usr/share/doc/ppp/examples/peers-pppoe for an example and configure it
  14. # to use the nas0 interface.
  15. auto pppoe
  16. iface pppoe inet ppp
  17.     provider pppoe
  18.     pre-up br2684ctl -b -c 0 -a 0.8.35
  19.     pre-up ip link set up nas0
  20.     post-down kill $(cat /var/run/nas0.pid)
  21.  
  22.  
  23. # RFC 1483 bridged, with dynamically assigned address
  24. auto nas0
  25. iface nas0 inet dhcp
  26.     pre-up br2684ctl -b -c ${IFACE#nas} -a 0.8.35
  27.     post-down kill $(cat /var/run/$IFACE.pid)
  28.  
  29.  
  30. # RFC 1483 bridged, with statically assigned address
  31. auto nas0
  32. iface nas0 inet static
  33.         address 192.0.2.1
  34.         netmask 255.255.255.0
  35.     broadcast 192.0.2.255
  36.     gateway 192.0.2.254
  37.     pre-up br2684ctl -b -c ${IFACE#nas} -a 0.8.35
  38.     post-down kill $(cat /var/run/$IFACE.pid)
  39.  
  40.  
  41. # Classical IP over ATM (CLIP)
  42. # This assumes that atmarpd is already running.
  43. auto atm0
  44. iface atm0 inet static
  45.         address 192.0.2.1
  46.         netmask 255.255.255.0
  47.     broadcast 192.0.2.255
  48.     gateway 192.0.2.254
  49.     pre-up atmarp -c $IFACE
  50.     post-up atmarp -s 192.0.2.254 0.8.35
  51.  
  52.