+++ /dev/null
-
-if [ -z "$1" ] ; then
- eth=eth0
-# eth=ath0:0
-else
- eth=$1
-fi
-
-sudo ifconfig $eth 192.168.1.90 up
-sudo route add -host 192.168.1.254 dev $eth
-echo "Setup of $eth to 192.168.1.90 ready"
--- /dev/null
+This is small collection of useful scripts and configuration
+to get you started.
+
+Premise is simple: you have several modems connected to eth0
+and you are using some other device (e.g. wifi, other network card) to
+connect to internet.
+
+We will configure two networks:
+
+192.168.1.240/28
+10.0.0.0/8
+
+First one is to accomodate Thompson's default setting of 192.168.1.254.
+
+Even if your internet connection uses gateway on 192.168.1.1 it will still
+work unless you are using IP addresses over 192.168.1.240.
+
+Then execute:
+
+./net.sh
+
+or with some other network device:
+
+./net.sh eth1
+
--- /dev/null
+:ip ipadd intf=LocalNetwork addr=192.168.1.242
+:ip iplist
+:ip ipdelete addr=192.168.1.254
+:ip iplist
--- /dev/null
+
+if [ -z "$1" ] ; then
+ eth=eth0
+# eth=ath0:0
+else
+ eth=$1
+fi
+
+# new 192.168.1.240/28 network
+
+sudo ifconfig $eth down
+sudo ifconfig $eth 192.168.1.241 up
+# backup network (thompson 10.0.0.138)
+sudo ifconfig $eth:10 10.0.0.1 up
+sudo route add -net 192.168.1.240/28 dev $eth
+echo "Setup of $eth to 192.168.1.90 ready"
--- /dev/null
+:system reboot
use Expect;
use Net::Telnet;
-my $modem = '192.168.1.254';
+my $modem = '10.0.0.138';
my @commands = (
':system config led=flash',
);
# just a comment
:cwmp config state=disabled
:cwmp debug traceconfig level=1
-:cwmp server config url=http://192.168.1.90:3333/
+:cwmp server config url=http://192.168.1.241:3333/
:cwmp config state=enabled mode=full periodicInform=enabled periodicInfInt=15