<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: RE: Two CIPE channels & strange route
From: SBNelson,AT,thermeon,DOT,com
Date: Mon, 2 Oct 2000 15:48:02 +0200

The one thing you didn't send was your ip-up script.  In mine I have a case
statement on the interface and then I set routes depending on that:

case $1 in
cipcb0)         route add -net 10.132.0.12/30 gw $5;;
cipcb1)
        route add -net 10.98.23.0/24 gw $5
        route add -net 10.46.0.0/24 gw $5
        ;;
cipcb2) route add -net 10.0.0.0/8 gw $5;;
esac

> -----Original Message-----
> From: Roskanuk Michal [SMTP:Michal.Roskanuk,AT,merlin,DOT,cz
> Sent: Friday, September 29, 2000 6:39 PM
> To:   'cipe-l,AT,inka,DOT,de'
> Subject:      Two CIPE channels & strange route
> 
> Once again, thnx 2 all for advice about running two CIPE
> daemons, it was easy.
> 
> Now i've got these two CIPEs, but unfortunatelly there's
> another problem. Everything runs well, i can connect
> from one machine to other .. but thats all. CIPE sets
> route for one of connected network to _both_ CIPE devices.
> 
> Here is my configuration:
> -------CUT-START---------
> Daemons running:
> # Cipe for BRANCH_A
> /usr/sbin/ciped-cb -o /etc/cipe/options.cb0
> # Cipe for BRANCH_B
> /usr/sbin/ciped-cb -o /etc/cipe/options.cb1
> 
> ifconfig results:
> cipcb0    Link encap:IPIP Tunnel  HWaddr
>           inet addr:192.168.100.253  P-t-P:192.168.20.253
> Mask:255.255.255.255
>           UP POINTOPOINT NOTRAILERS RUNNING NOARP  MTU:1442  Metric:1
>           RX packets:22 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
> cipcb1    Link encap:IPIP Tunnel  HWaddr
>           inet addr:192.168.100.253  P-t-P:192.168.10.253
> Mask:255.255.255.255
>           UP POINTOPOINT NOTRAILERS RUNNING NOARP  MTU:1442  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100
> 
> options.cb0:
> device          cipcb0
> ptpaddr         192.168.20.253
> ipaddr          192.168.100.253
> me              CENTER_IP:5555
> peer            BRANCH_A:5555
> maxerr          10
> 
> options.cb1:
> device          cipcb1
> ptpaddr         192.168.10.253
> ipaddr          192.168.100.253
> me              CENTER_IP:5556
> peer            BRANCH_B:5556
> 
> And finally routes:
> Kernel IP routing table
>  Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
>  192.168.10.253  *               255.255.255.255 UH    0      0        0
> cipcb1
>  192.168.20.253  *               255.255.255.255 UH    0      0        0
> cipcb0
>  192.168.100.254 *               255.255.255.255 UH    0      0        0
> eth2
>  192.168.110.254 *               255.255.255.255 UH    0      0        0
> eth0
>  CENTER_IP       *               255.255.255.255 UH    0      0        0
> eth1
>  192.168.100.0   *               255.255.255.0   U     0      0        0
> eth2
>  212.11.126.0    *               255.255.255.0   U     0      0        0
> eth1
> >192.168.20.0    192.168.10.253  255.255.255.0   UG    0      0        0
> cipcb1
> >192.168.20.0    192.168.20.253  255.255.255.0   UG    0      0        0
> cipcb0
>  192.168.110.0   *               255.255.255.0   U     0      0        0
> eth0
>  127.0.0.0       *               255.0.0.0       U     0      0        0
> lo
>  default         DEFAULT_GW      0.0.0.0         UG    0      0        0
> eth1
> -------CUT-END------------
> 
> I just can't imagine how this can happen. Any ideas?
> I swear i'm not running routed/gated nor similiar routing daemon.
> When i disable cipe_cb1 (=2nd deamon not loaded), everything's ok.
> Only i noticed one fact (which maybe doesn't relates with these
> routes): both cipe devices have netmask 32 bits, not 24. I suppose
> it's netmask for CIPE device, not for ptp end. Can i specify
> netmask in options file with ptp IP?
> 
> Mike
> 
> --
> Message sent by the cipe-l,AT,inka,DOT,de mailing list.
> Unsubscribe: mail majordomo,AT,inka,DOT,de, "unsubscribe cipe-l" in body
> Other commands available with "help" in body to the same address.
> CIPE info and list archive:
> <URL:http://sites.inka.de/~bigred/devel/cipe.html>





<< | Thread Index | >> ]    [ << | Date Index | >> ]