# 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.
# The protocol must match the encapsulation (VC mux or LLC) used by your ISP.
# You can find the other parameters in /usr/share/doc/eciadsl/modems.db:
# <name> <ignore> <ignore> <vendor> <product> <mc> <ignore> <alt>

# 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 -mode VCM_RFC_1483_BRIDGED_ETH -vendor 0x0915 -product 0x8000 -mc GS7070 -alt 4
	down start-stop-daemon --stop --exec /usr/sbin/eciadsl-pppoeci --oknodo --quiet


# RFC 1483 bridged with dynamically assigned address
auto tap0
iface tap0 inet dhcp
	pre-up eciadsl-pppoeci -vpi 8 -vci 35 -mode VCM_RFC_1483_BRIDGED_ETH -vendor 0x0915 -product 0x8000 -mc GS7070 -alt 4
	post-down start-stop-daemon --stop --exec /usr/sbin/eciadsl-pppoeci --oknodo --quiet


# 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 -mode LLC_RFC1483_ROUTED_IP -vendor 0x0915 -product 0x8000 -mc GS7070 -alt 4
	post-down start-stop-daemon --stop --exec /usr/sbin/eciadsl-pppoeci --oknodo --quiet


# 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 -mode LLC_SNAP_RFC1483_BRIDGED_ETH_NO_FCS -vendor 0x0915 -product 0x8000 -mc GS7070 -alt 4
	provider pppoe-eci
	post-down start-stop-daemon --stop --exec /usr/sbin/eciadsl-pppoeci --oknodo --quiet

