Date: Thu, 17 May 2012 17:42:52 -0700 From: Sean Bruno <seanbru@yahoo-inc.com> To: Andrey Zonov <andrey@zonov.org> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: Re: [stable-9] Message-ID: <1337301772.15253.18.camel@powernoodle-l7.corp.yahoo.com> In-Reply-To: <4FB3C5D4.6080005@zonov.org> References: <1337105271.3434.8.camel@powernoodle-l7.corp.yahoo.com> <4FB3C5D4.6080005@zonov.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > What am I missing here? > > > > Did you try to use ipfw instead of RADIX_MPATH? > > Try something like this: > > route add default $router -interface $if1 > ipfw add $number fwd $router ip from $ip2 to any out via $if2 > I think I've configued lagg(4) into doing what I really want, which is bind two interfaces together and balance the traffic in and out: kernelconf: device lagg rc.conf cloned_interfaces="lagg0" ifconfig commands: ifconfig igb0 up ifconfig igb1 up ifconfig lagg0 laggproto loadbalance laggport igb0 laggport igb1 xxx.xxx.xxx.22/24 ifconfig lagg0 xxx.xxx.xxx.220/32 alias ifconfig lagg0 xxx.xxx.xxx.221/32 alias ifconfig lagg0 xxx.xxx.xxx.222/32 alias ifconfig lagg0 xxx.xxx.xxx.223/32 alias route add default xxx.xxx.xxx.1 That results in something that looks like what I wanted, which was rx/tx shared across two interfaces on the same network with: -bash-4.2$ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default xxx.xxx.xxx.1 UGS 0 37835052 lagg0 xxx.xxx.xxx.0/24 link#4 U 0 467322219 lagg0 xxx.xxx.xxx.22 link#4 UHS 0 0 lo0 xxx.xxx.xxx.220 link#4 UHS 0 0 lo0 => xxx.xxx.xxx.220/32 link#4 U 0 0 lagg0 xxx.xxx.xxx.221 link#4 UHS 0 0 lo0 => xxx.xxx.xxx.221/32 link#4 U 0 0 lagg0 xxx.xxx.xxx.222 link#4 UHS 0 0 lo0 => xxx.xxx.xxx.222/32 link#4 U 0 0 lagg0 xxx.xxx.xxx.223 link#4 UHS 0 0 lo0 => xxx.xxx.xxx.223/32 link#4 U 0 0 lagg0 127.0.0.1 link#3 UH 0 0 lo0 bash-4.2$ ifconfig igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO> ether 60:eb:69:07:e1:8a nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active igb1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO> ether 60:eb:69:07:e1:8a nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=401bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO> ether 60:eb:69:07:e1:8a inet xxx.xxx.xxx.22 netmask 0xffffff00 broadcast xxx.xxx.xxx.255 inet6 fe80::62eb:69ff:fe07:e18a%lagg0 prefixlen 64 scopeid 0x4 inet xxx.xxx.xxx.220 netmask 0xffffffff broadcast xxx.xxx.xxx.220 inet xxx.xxx.xxx.221 netmask 0xffffffff broadcast xxx.xxx.xxx.221 inet xxx.xxx.xxx.222 netmask 0xffffffff broadcast xxx.xxx.xxx.222 inet xxx.xxx.xxx.223 netmask 0xffffffff broadcast xxx.xxx.xxx.223 nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> media: Ethernet autoselect status: active laggproto loadbalance laggport: igb1 flags=4<ACTIVE> laggport: igb0 flags=4<ACTIVE>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1337301772.15253.18.camel>