Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 2004 16:39:42 -0300
From:      Juan Angel Menendez <juan@mecon.gov.ar>
To:        freebsd-net@freebsd.org
Subject:   Multipath patches for FreeBSD 4.8, working on a single interface
Message-ID:  <6.1.2.0.2.20040913163722.01f49e70@10.11.0.173>

next in thread | raw e-mail | index | archive | help

>
>         Hi everyone
>
>         I've just applied Tanzer's multipath routing patches over FreeBSD 
> 4.8, compiled the kernel and everything worked fine.
>
>         Basically, my idea is to load share default outgoing traffic from 
> my external mail servers over 2 redundant routers which are on the same LAN.
>
>         I've tried the following:
>
>#test route add default -pathmetric 1 -gateway 10.10.16.2 -pathmetric 1 
>-gateway 10.10.17.2
>add net default
>
>test# netstat 
>-nr 
>Routing tables
>
>Internet:
>Destination        Gateway            Flags/  Refs/      Use  Netif Expire 
>metric  left
>default                               UGSc      114      100    xl0
>                    10.10.16.2            1               0      xl0
>                   *10.10.17.2            1      0        0      xl0
>127.0.0.1          127.0.0.1          UH         10  1000001    lo0
>10.10.16/21      link#1             UC          8        0    xl0
>
>test# route -n get default
>    route to: default
>destination: default
>        mask: default
>cur gateway: 10.10.17.2
>  multipaths: 10.10.16.2  metric: 1
>              10.10.17.2  metric: 1
>   interface: xl0
>       flags: <UP,GATEWAY,DONE,STATIC,PRCLONING>
>  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu 
> expire
>        0         0         0         0         0         0      1500 
>     0
>sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA>
>
>test# ifconfig xl0
>xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 10.10.16.11 netmask 0xfffff800 broadcast 10.10.23.255
>         inet6 fe80::260:8ff:fecc:bc81%xl0 prefixlen 64 scopeid 0x1
>         ether 00:60:08:cc:bc:81
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
>
>
>         I've tried getting a file from the server using ftp, but the 
> kernel always seems to choose the same path, it doesn't round robin over 
> different paths. I checked that watching the routers interface's 
> counters. I've also tried -pathmetric 10 and no -pathmetric at all, 
> without luck.
>
>         Configuration examples showed how to make it to work using 2 
> different NICs, has anyone managed to make it to work using a single NIC 
> ? Maybe using aliasing ?
>
>         Any help will be appreciated.
>
>Juan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.2.0.2.20040913163722.01f49e70>