Multipath patches for FreeBSD 4.8, working on a single interface

Juan Angel Menendez juan at
Mon Mar 1 09:56:32 PST 2004

	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 over 2 
redundant routers which are on the same LAN.

	I've tried the following:

#test route add default -pathmetric 1 -gateway -pathmetric 1 
add net default

test# netstat 
Routing tables

Destination        Gateway            Flags/  Refs/      Use  Netif Expire 
metric  left
default                               UGSc      114      100    xl0
                      1               0      xl0
                   *            1      0        0      xl0          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:
  multipaths:  metric: 1
      metric: 1
   interface: xl0
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu 
        0         0         0         0         0         0      1500 

test# ifconfig xl0
         inet netmask 0xfffff800 broadcast
         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.


More information about the freebsd-net mailing list