Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / doc / ppp / examples / | server ip : 172.67.156.115 your ip : 172.69.214.172 H O M E |
Filename | /usr/share/doc/ppp/examples/interfaces |
Size | 1.43 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 23-Jan-2013 06:12 |
Last accessed | 27-Apr-2025 09:55 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# copy one of these examples to /etc/network/interfaces
# The VP, VC and encapsulation must match the ones used by your ISP, these
# examples use 8.35 with LLC encapsulation and assume that ATM interface
# 0 is the DSL modem.
# br2684ctl and atmarp are part of the br2684ctl and atm-tools packages,
# check the atmarp(8) and br2684ctl(8) man pages for details about the
# command line options.
# PPPoE
# You need to create an appropriate /etc/ppp/peers/pppoe file, look at
# /usr/share/doc/ppp/examples/peers-pppoe for an example and configure it
# to use the nas0 interface.
auto pppoe
iface pppoe inet ppp
provider pppoe
pre-up br2684ctl -b -c 0 -a 0.8.35
pre-up ip link set up nas0
post-down kill $(cat /var/run/nas0.pid)
# RFC 1483 bridged, with dynamically assigned address
auto nas0
iface nas0 inet dhcp
pre-up br2684ctl -b -c ${IFACE#nas} -a 0.8.35
post-down kill $(cat /var/run/$IFACE.pid)
# RFC 1483 bridged, with statically assigned address
auto nas0
iface nas0 inet static
address 192.0.2.1
netmask 255.255.255.0
broadcast 192.0.2.255
gateway 192.0.2.254
pre-up br2684ctl -b -c ${IFACE#nas} -a 0.8.35
post-down kill $(cat /var/run/$IFACE.pid)
# Classical IP over ATM (CLIP)
# This assumes that atmarpd is already running.
auto atm0
iface atm0 inet static
address 192.0.2.1
netmask 255.255.255.0
broadcast 192.0.2.255
gateway 192.0.2.254
pre-up atmarp -c $IFACE
post-up atmarp -s 192.0.2.254 0.8.35
# The VP, VC and encapsulation must match the ones used by your ISP, these
# examples use 8.35 with LLC encapsulation and assume that ATM interface
# 0 is the DSL modem.
# br2684ctl and atmarp are part of the br2684ctl and atm-tools packages,
# check the atmarp(8) and br2684ctl(8) man pages for details about the
# command line options.
# PPPoE
# You need to create an appropriate /etc/ppp/peers/pppoe file, look at
# /usr/share/doc/ppp/examples/peers-pppoe for an example and configure it
# to use the nas0 interface.
auto pppoe
iface pppoe inet ppp
provider pppoe
pre-up br2684ctl -b -c 0 -a 0.8.35
pre-up ip link set up nas0
post-down kill $(cat /var/run/nas0.pid)
# RFC 1483 bridged, with dynamically assigned address
auto nas0
iface nas0 inet dhcp
pre-up br2684ctl -b -c ${IFACE#nas} -a 0.8.35
post-down kill $(cat /var/run/$IFACE.pid)
# RFC 1483 bridged, with statically assigned address
auto nas0
iface nas0 inet static
address 192.0.2.1
netmask 255.255.255.0
broadcast 192.0.2.255
gateway 192.0.2.254
pre-up br2684ctl -b -c ${IFACE#nas} -a 0.8.35
post-down kill $(cat /var/run/$IFACE.pid)
# Classical IP over ATM (CLIP)
# This assumes that atmarpd is already running.
auto atm0
iface atm0 inet static
address 192.0.2.1
netmask 255.255.255.0
broadcast 192.0.2.255
gateway 192.0.2.254
pre-up atmarp -c $IFACE
post-up atmarp -s 192.0.2.254 0.8.35