Skip to content

Instantly share code, notes, and snippets.

@Avasz
Last active May 23, 2016 23:11
Show Gist options
  • Save Avasz/3a90dba1b5eec0462550c8f0f82909c7 to your computer and use it in GitHub Desktop.
Save Avasz/3a90dba1b5eec0462550c8f0f82909c7 to your computer and use it in GitHub Desktop.
odroid c1+ interfaces file
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
#auto load dongle
#The connection will be brought up at boot,
# you can start it with ifup gprs or stop it with ifdown gprs.
#allow-hotplug gprs
#auto gprs
#allow-hotplug gprs
#iface gprs inet ppp
# Add a route for our website hydrology.gov.np
# And remove the route for everything else (the internet)
# up route add 23.251.146.114 dev ppp0 metric 1000; route del -net 0.0.0.0 gw 0.0.0.0 netmask 0.0.0.0 dev ppp0; echo "started gprs"
# provider gprs
# This interface along with eth1/0 should always be UP at all times for
# the priority packet switching to work
#auto ppp0
#allow-hotplug ppp0
#iface ppp0 inet dhcp
# Add a route for our website hydrology.gov.np
# And remove the route for everything else (the internet)
# up route add 23.251.146.114 dev ppp0 metric 1000; route del -net 0.0.0.0 gw 0.0.0.0 netmask 0.0.0.0 dev ppp0; echo "started ppp0"
#auto eth1
#allow-hotplug eth1
#iface eth1 inet dhcp
# As soon as the ethernet is up, it should take the priority for hydrology.gov.np immediately
# up route add 23.251.146.114 dev eth0 metric 10
#auto ppp0
#allow-hotplug ppp0
#iface ppp0 inet dhcp
#auto eth2
#allow-hotplug eth2
#iface eth2 inet dhcp
#################################################################
###This section is for bringing up ppp0/CDMA interface on boot###
#################################################################
#auto ppp0
#iface ppp0 inet wvdial
#################################################################
auto eth2
iface eth2 inet dhcp
###WVDIAL.CONF BACKUP
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Phone = #777
Modem Type = Analog Modem
Stupid Mode = 1
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Password = 9741343035
Username = 9741343035
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment