# copy one of these examples to /etc/network/interfaces

# Run eciadsl-pppoeci without arguments for usage details.
# VPI and VCI must match the ones used by your ISP.
# You can find the vendor and product id in the last two columns of modems.db.
# The mode must match the encapsulation (VC mux or LLC) used by your ISP.

# RFC 1483 bridged with statically assigned address
auto tap0
iface tap0 inet static
        address 10.0.0.1
        netmask 255.255.255.0
	broadcast 10.0.0.255
	gateway 10.0.0.254
	pre-up eciadsl-pppoeci -vpi 8 -vci 35 -vendor 0x0915 -product 0x8000 -mode VCM_RFC_1483_BRIDGED_ETH
	down killall eciadsl-pppoeci


# RFC 1483 bridged with dynamically assigned address
auto tap0
iface tap0 inet dhcp
	pre-up eciadsl-pppoeci -vpi 8 -vci 35 -vendor 0x0915 -product 0x8000 -mode VCM_RFC_1483_BRIDGED_ETH
	post-down killall eciadsl-pppoeci


# RFC 1483 routed
# This assumes that atmarpd is already running.
auto tun0
iface tun0 inet static
        address 10.0.0.1
        netmask 255.255.255.0
	broadcast 10.0.0.255
	gateway 10.0.0.254
	pre-up eciadsl-pppoeci -vpi 8 -vci 35 -vendor 0x0915 -product 0x8000 -mode LLC_RFC1483_ROUTED_IP
	post-down killall eciadsl-pppoeci


# PPPoE
# You need to create an appropriate /etc/ppp/peers/pppoe-eci file, look at
# /usr/share/doc/ppp/examples/peers-pppoe for an example and configure it
# to use the tap0 interface.
auto pppoe
iface pppoe inet ppp
	pre-up eciadsl-pppoeci -vpi 8 -vci 35 -vendor 0x0915 -product 0x8000 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS
	provider pppoe-eci
	post-down killall eciadsl-pppoeci

