[LARTC] Failover to modem assistance req

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have installed Julian Anastasov's patch to the 2.4.20 kernel.  I have
a 256/256 SDSL connection using eth1 and a 56K dialup connection on
ppp0.  It is the ppp0 that is killing me because I can't figure out what
the gateway and broadcast addresses are.  Well, I think I have them
correct but I get a NETWORK IS UNREACHABLE when I run my 'nano.sh'
script...

My objective is to have the modem connection take over when the DSL
fails.  The DSL fails as the result of temperature and humidity
fluctuations that cause a disconnect :(

When ppp0 connects, /etc/ppp/ip-up.local records the Local IP and the
Server IP assigned by 'awk'ing the output of 'ifconfig ppp0'.  At this
point, I have a PPP connection (DSL is not functional, but 'ping -c1
yahoo.com' works), so I run the following script.  I 'cat' the assigned
IP values into 'nano.sh' (see next).  Here is the output of nano.sh:

> + IFI=eth0
> + IPI=192.168.223.254
> + NMI=24
> + IFE1=eth1
> + IFE2=ppp0
> + IPE1=168.103.240.89
> ++ cat /etc/firewall/localIP
> + IPE2=65.148.108.213
> + NWE1=168.103.240.88
> ++ cat /etc/firewall/remoteIP
> + NWE2=63.152.12.7
> + NME1=29
> + NME2=32
> + BRD1=168.103.240.255
> ++ cat /etc/firewall/localIP
> + BRD2=65.148.108.213
> + GWE1=168.103.240.94
> ++ cat /etc/firewall/remoteIP
> + GWE2=63.152.12.7
> + ip link set eth0 up
> + ip addr add 192.168.223.254/24 brd + dev eth0
> RTNETLINK answers: File exists
> + ip rule add prio 50 table main
> + ip route del default table main
> RTNETLINK answers: No such process
> + ip link set eth1 up
> + ip addr flush dev eth1
> + ip addr add 168.103.240.89/29 brd 168.103.240.255 dev eth1
> + ip link set ppp0 up
> + ip addr flush dev ppp0
> Nothing to flush.
> + ip addr add 65.148.108.213/32 brd 65.148.108.213 dev ppp0
> + ip rule add prio 201 from 168.103.240.88/29 table 201
> + ip route add default via 168.103.240.94 dev eth1 src 168.103.240.89 proto static table 201
> + ip route append prohibit default table 201 metric 1 proto static
> RTNETLINK answers: File exists
> + ip rule add prio 202 from 63.152.12.7/32 table 202
> + ip route add default via 63.152.12.7 dev ppp0 src 65.148.108.213 proto static table 202
> RTNETLINK answers: Network is unreachable
> + ip route append prohibit default table 202 metric 1 proto static
> RTNETLINK answers: File exists
> + ip rule add prio 222 table 222
> + ip route add default table 222 proto static
> RTNETLINK answers: No such device
[--snip--]

What am I doing wrong?

Also, if posible, I'd like to add the 50K from the modem so I get 256 +
50 = 306K in.  (Can I use 'ip route add default equalize nexthop via'?)

Any pointers greatfully accepted!  

gypsy


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux