1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
# copy one of these examples to /etc/network/interfaces
# br2684ctl and atmarp are part of the br2684ctl and atm-tools packages.
# VP, VC and encapsulation must match the ones used by your ISP, these
# examples use 8.35 with LLC encapsulation.
# RFC 1483 bridged with statically assigned address
auto nas0
iface nas0 inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.254
pre-up br2684ctl -p /var/run/br2684-dsl.pid -b -c 0 -a 0.8.35
post-down kill $(cat /var/run/br2684-dsl.pid)
# RFC 1483 bridged with dynamically assigned address
auto nas0
iface nas0 inet dhcp
pre-up br2684ctl -p /var/run/br2684-dsl.pid -b -c 0 -a 0.8.35
post-down kill $(cat /var/run/br2684-dsl.pid)
# RFC 1483 routed
# This assumes that atmarpd is already running.
auto atm0
iface atm0 inet static
address 10.0.0.1
netmask 255.255.255.0
broadcast 10.0.0.255
gateway 10.0.0.254
pre-up atmarp -c 0
up atmarp -s 10.0.0.254 0.8.35
# PPPoE
# You need to create an appropriate /etc/ppp/peers/pppoe-dsl 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
pre-up br2684ctl -p /var/run/br2684-dsl.pid -b -c 0 -a 0.8.35
provider pppoe-dsl
post-down kill $(cat /var/run/br2684-dsl.pid)
|