Galera !

Boa tarde estou precisando de uma ajuda, pois tenho um cliente com o velox e o virtua instalado num debian 2.4.27 e depois da nova configuração do velox a redudância de links entre o virtua e o velox não ocorre mais.

segue abaixo. os scripts utilizados para fazer tal redudância.


#!/bin/bash
# $Id: app.sh,v 1.3 2003/10/05 15:50:11 faure Exp $
# link_monitor - Copyright (C) 2004 Antonio Carlos <[email protected]>
#GW=`/sbin/route -n | /bin/grep "ppp0" | /bin/grep "UG" |/usr/bin/cut -d " " -f 40`
GW=`/sbin/route -n | /bin/grep "eth0" | /bin/grep "UG" |/usr/bin/cut -d " " -f 41`
#if [ "$GW" == "" ] ; then
#GW=eth1
#fi
#echo gw:$GW
# servidor DNS raiz da Internet = a.root-servers.net --> 198.41.0.4
if ! /bin/ping -i 1 -c 1 198.41.0.4 &>/dev/null ; then
echo -n "CAIU O LINK:"
if [ "$GW" == "eth0" ] ; then
echo "VIRTUA em `date +%F/%H:%M`"
/etc/init.d/velox
else
echo "VELOX em `date +%F/%H:%M`"
/etc/init.d/virtua

fi
fi


Este foi um.

#!/bin/bash
##
#ETH1 --> Conexao Velox
#
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games
LINK_INTERNET11="velox"
LINK_INTERNET="velox"
INTERFACE="ppp0"
ifconfig eth0 down
killall dhclient
/etc/init.d/ppp stop
rm /var/run/ppp* -f
/etc/init.d/ppp start
IP=`ifconfig $INTERFACE | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1`
echo Configurando Interface $LINK_INTERNET
ddclient -ip $IP -host opcotours.dyndns.org
#/etc/init.d/id-velox.pl

este é outro.

#!/bin/bash
##
#ETH1 --> Conexao Velox
#
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games
echo Configurando Interface $LINK_INTERNET
LINK_INTERNET11="virtua"
LINK_INTERNET="virtua"
INTERFACE="eth0"
/etc/init.d/ppp stop
killall dhclient
dhclient $INTERFACE
IP=`ifconfig $INTERFACE | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1`
ddclient -ip $IP -host opcotours.dyndns.org

este e o último, abaixo segue o syslog do servidor


Sep 8 17:12:49 localhost kernel: eth0: link up, 10Mbps, half-duplex, lpa 0x0000
Sep 8 17:12:49 localhost kernel: e100: eth2 NIC Link is Up 100 Mbps Full duplex
Sep 8 17:12:49 localhost kernel: eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
Sep 8 17:12:49 localhost kernel: CSLIP: code copyright 1989 Regents of the University of California
Sep 8 17:12:49 localhost kernel: PPP generic driver version 2.4.2
Sep 8 17:12:49 localhost pppd[1417]: pppd 2.4.2 started by root, uid 0
Sep 8 17:12:49 localhost pppd[1417]: Using interface ppp0
Sep 8 17:12:49 localhost pppd[1417]: Connect: ppp0 <--> /dev/pts/0
Sep 8 17:13:21 localhost pppd[1417]: LCP: timeout sending Config-Requests

Sep 8 17:13:21 localhost pppd[1417]: Connection terminated.
Sep 8 17:13:22 localhost named[1611]: starting (/etc/bind/named.conf). named 8.4.6-REL-NOESW Tue Jan 25 19:11:36 UTC 2005 ^I
lamont@mix:/build/lamont/bind-8.4.6/src/bin/named
Sep 8 17:13:22 localhost named[1611]: /etc/bind/named.conf:11: syntax error near '}'
Sep 8 17:13:22 localhost named[1611]: hint zone "" (IN) loaded (serial 0)
Sep 8 17:13:22 localhost named[1611]: listening on [127.0.0.1].53 (lo)
Sep 8 17:13:22 localhost named[1611]: listening on [200.179.210.219].53 (eth0)
Sep 8 17:13:22 localhost named[1611]: listening on [192.168.0.254].53 (eth2)
Sep 8 17:13:22 localhost named[1611]: AF_INET6: address family not supported
Sep 8 17:13:22 localhost named[1611]: Forwarding source address is [0.0.0.0].32774
Sep 8 17:13:22 localhost named[1613]: Ready to answer queries.
Sep 8 17:13:23 localhost kernel: ip_tables: (C) 2000-2002 Netfilter core team
Sep 8 17:13:23 localhost kernel: ip_conntrack version 2.1 (2034 buckets, 16272 max) - 288 bytes per conntrack
Sep 8 17:13:23 localhost lpd[1681]: restarted
Sep 8 17:13:23 localhost sshd[1689]: socket: Address family not supported by protocol
Sep 8 17:13:23 localhost sshd[1689]: Server listening on 0.0.0.0 port 22.
Sep 8 17:13:23 localhost /usr/sbin/cron[1697]: (CRON) INFO (pidfile fd = 3)
Sep 8 17:13:23 localhost /usr/sbin/cron[1698]: (CRON) STARTUP (fork ok)
Sep 8 17:13:24 localhost /usr/sbin/cron[1698]: (CRON) INFO (Running @reboot jobs)
Sep 8 17:13:25 localhost pppoe[1423]: Timeout waiting for PADO packets
Sep 8 17:13:25 localhost pppd[1417]: Exit.
Sep 8 17:13:29 localhost sshd[1710]: Connection from 200.244.62.189 port 8078
Sep 8 17:13:37 localhost sshd[1710]: Accepted keyboard-interactive/pam for ziclague from 200.244.62.189 port 8078 ssh2
Sep 8 17:14:01 localhost /USR/SBIN/CRON[1744]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:14:01 localhost /USR/SBIN/CRON[1745]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:15:01 localhost /USR/SBIN/CRON[1753]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:15:01 localhost /USR/SBIN/CRON[1754]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:15:16 localhost pppd[1759]: Plugin rp-pppoe.so loaded.
Sep 8 17:15:16 localhost pppd[1759]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
Sep 8 17:15:16 localhost pppd[1761]: pppd 2.4.2 started by root, uid 0
Sep 8 17:15:16 localhost pppd[1761]: PPP session is 53861
Sep 8 17:15:16 localhost pppd[1761]: Using interface ppp0
Sep 8 17:15:16 localhost pppd[1761]: Connect: ppp0 <--> eth1
Sep 8 17:15:16 localhost pppd[1761]: Couldn't increase MTU to 1500
Sep 8 17:15:16 localhost pppd[1761]: Couldn't increase MRU to 1500
Sep 8 17:15:21 localhost pppd[1761]: Couldn't increase MRU to 1500
Sep 8 17:15:21 localhost pppd[1761]: PAP authentication succeeded
Sep 8 17:15:21 localhost pppd[1761]: peer from calling number 00:09:B6:8C:FE:48 authorized
Sep 8 17:15:22 localhost pppd[1761]: not replacing default route to eth0 [200.179.210.1]
Sep 8 17:15:22 localhost pppd[1761]: Cannot determine ethernet address for proxy ARP
Sep 8 17:15:22 localhost pppd[1761]: local IP address 201.51.201.100
Sep 8 17:15:22 localhost pppd[1761]: remote IP address 200.217.72.8
Sep 8 17:15:22 localhost pppd[1761]: primary DNS address 200.165.132.147
Sep 8 17:15:22 localhost pppd[1761]: secondary DNS address 200.149.55.140
Sep 8 17:15:22 localhost pppd[1761]: not replacing default route to eth0 [200.179.210.1]
Sep 8 17:15:22 localhost pppd[1761]: Cannot determine ethernet address for proxy ARP
Sep 8 17:15:22 localhost pppd[1761]: local IP address 201.51.201.100
Sep 8 17:15:22 localhost pppd[1761]: remote IP address 200.217.72.8
Sep 8 17:15:22 localhost pppd[1761]: primary DNS address 200.165.132.147
Sep 8 17:15:22 localhost pppd[1761]: secondary DNS address 200.149.55.140
Sep 8 17:15:24 localhost pppd[1788]: Plugin rp-pppoe.so loaded.
Sep 8 17:15:24 localhost pppd[1788]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
Sep 8 17:15:24 localhost pppd[1790]: pppd 2.4.2 started by root, uid 0
Sep 8 17:15:59 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:15:59 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:16:01 localhost /USR/SBIN/CRON[1795]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:16:01 localhost /USR/SBIN/CRON[1796]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:16:02 localhost ddclient[1787]: WARNING: cannot connect to members.dyndns.org:80 socket: IO::Socket::INET: Bad host
name 'members.dyndns.org'
Sep 8 17:16:02 localhost ddclient[1787]: FAILED: updating opcotours.dyndns.org: Could not connect to members.dyndns.org.
Sep 8 17:17:01 localhost /USR/SBIN/CRON[1809]: (root) CMD ( run-parts --report /etc/cron.hourly)
Sep 8 17:17:01 localhost /USR/SBIN/CRON[1810]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:17:01 localhost /USR/SBIN/CRON[1811]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:17:04 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:17:04 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:18:01 localhost /USR/SBIN/CRON[1823]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:18:01 localhost /USR/SBIN/CRON[1824]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:18:09 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:18:09 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:19:01 localhost /USR/SBIN/CRON[1831]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:19:01 localhost /USR/SBIN/CRON[1832]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:19:14 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:19:14 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:20:01 localhost /USR/SBIN/CRON[1844]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:20:01 localhost /USR/SBIN/CRON[1845]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:20:19 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:20:19 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:21:01 localhost /USR/SBIN/CRON[1854]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:21:01 localhost /USR/SBIN/CRON[1855]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:21:24 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:21:24 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:22:01 localhost /USR/SBIN/CRON[1862]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:22:01 localhost /USR/SBIN/CRON[1863]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:22:29 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:22:29 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:23:01 localhost /USR/SBIN/CRON[1870]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:23:01 localhost /USR/SBIN/CRON[1871]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:23:34 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:24:01 localhost /USR/SBIN/CRON[1878]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:24:01 localhost /USR/SBIN/CRON[1879]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:24:39 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:24:39 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:25:01 localhost /USR/SBIN/CRON[1893]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:25:01 localhost /USR/SBIN/CRON[1894]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:25:44 localhost pppd[1790]: Timeout waiting for PADO packets
Sep 8 17:25:44 localhost pppd[1790]: Unable to complete PPPoE Discovery
Sep 8 17:25:44 localhost pppd[1790]: Exit.
Sep 8 17:26:01 localhost /USR/SBIN/CRON[1903]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:26:01 localhost /USR/SBIN/CRON[1904]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:27:01 localhost /USR/SBIN/CRON[1920]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:27:01 localhost /USR/SBIN/CRON[1921]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:28:01 localhost /USR/SBIN/CRON[1939]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:28:01 localhost /USR/SBIN/CRON[1940]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:29:01 localhost /USR/SBIN/CRON[1957]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)
Sep 8 17:29:01 localhost /USR/SBIN/CRON[1958]: (root) CMD (root /etc/init.d/link_monitor.sh)
Sep 8 17:30:01 localhost /USR/SBIN/CRON[1969]: (root) CMD (root^I /etc/init.d/id-velox.pl >/dev/null 2> /dev/null)


Se alguém puder me ajudar agradeço.

um abraços a todos.

Se é linux e bom se é bom e linux.