ifa_add_loopback_route: insertion failed with ifconfig wlan0 up

2011-04-06 Thread Dominique Goncalves
Hi,

I've installed FreeBSD 8.2-RELEASE on soekris net4801 with Atheros
9280 (mini pci card) as an access point using hostapd, so far it works
. Sometimes I need to disable wireless with ifconfig wlan0 down but
each times I run ifconfig wlan0 up, the kernel produces this error

ifa_add_loopback_route: insertion failed

is this a problem ? or maybe there is a better way to disable/enable wireless ?

TIA,
Regards.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: 7-STABLE NFS: fatal: select lock: Permission denied

2011-04-06 Thread perryh
Chuck Swiger cswi...@mac.com wrote:

 People tend to take advantage of the resources they have; if you
 have an EMC or NetApp filer handy, it's might well be reasonable
 to use it ...

s/reasonable/tempting/

When the only tool you have is a hammer, every problem tends to
resemble a nail.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread Eir Nym
On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
 Hi!

 Could please someone tell me about current state of multiple gw capabilities 
 of FreeBSD?
 I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
 1) can I balance outgoing traffic across them ?
 2) Is there support of any kind dead gateway detection?
 3) Can I install multiple routes to the same network (with same and with 
 different wight)? If yes how it behaves with one link failure, in particular 
 if interface is down?

 Thank you!
 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


about multiply GWs: you can set multiply gw via setfib(1) utility and
use fib in your firewall rules. But it is not very handy with DHCP and
rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
Due to this I have to add another FreeBSD box to handle dynamic
routes.

This is the one thing I know which can I do in linux easily and in
freebsd with hacks.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: ifa_add_loopback_route: insertion failed with ifconfig wlan0 up

2011-04-06 Thread Sergey Kandaurov
On 6 April 2011 11:35, Dominique Goncalves
dominique.goncal...@gmail.com wrote:
 Hi,

 I've installed FreeBSD 8.2-RELEASE on soekris net4801 with Atheros
 9280 (mini pci card) as an access point using hostapd, so far it works
 . Sometimes I need to disable wireless with ifconfig wlan0 down but
 each times I run ifconfig wlan0 up, the kernel produces this error

 ifa_add_loopback_route: insertion failed

 is this a problem ? or maybe there is a better way to disable/enable wireless 
 ?


I see this too with a dumb test:

vlan5: flags=8003UP,BROADCAST,MULTICAST metric 0 mtu 1500
ether 00:00:00:00:00:00
inet6 fe80::21a:64ff:fe68:d005%vlan5 prefixlen 64 scopeid 0xa
inet 192.168.13.13 netmask 0x broadcast 192.168.13.13
nd6 options=3PERFORMNUD,ACCEPT_RTADV
vlan: 0 parent interface: none

On 8.1 ifconfig vlan5 up gives:
ifa_add_loopback_route: insertion failed

On head ifconfig vlan5 down gives:
interface address is missing from cache = 0  in delete

-- 
wbr,
pluknet
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: ifa_add_loopback_route: insertion failed with ifconfig wlan0 up

2011-04-06 Thread Sergey Kandaurov
On 6 April 2011 15:05, Sergey Kandaurov pluk...@gmail.com wrote:
 On 6 April 2011 11:35, Dominique Goncalves
 dominique.goncal...@gmail.com wrote:
 Hi,

 I've installed FreeBSD 8.2-RELEASE on soekris net4801 with Atheros
 9280 (mini pci card) as an access point using hostapd, so far it works
 . Sometimes I need to disable wireless with ifconfig wlan0 down but
 each times I run ifconfig wlan0 up, the kernel produces this error

 ifa_add_loopback_route: insertion failed

 is this a problem ? or maybe there is a better way to disable/enable 
 wireless ?


 I see this too with a dumb test:

 vlan5: flags=8003UP,BROADCAST,MULTICAST metric 0 mtu 1500
        ether 00:00:00:00:00:00
        inet6 fe80::21a:64ff:fe68:d005%vlan5 prefixlen 64 scopeid 0xa
        inet 192.168.13.13 netmask 0x broadcast 192.168.13.13
        nd6 options=3PERFORMNUD,ACCEPT_RTADV
        vlan: 0 parent interface: none

 On 8.1 ifconfig vlan5 up gives:
 ifa_add_loopback_route: insertion failed

 On head ifconfig vlan5 down gives:
 interface address is missing from cache = 0  in delete


On more thing:
on head ifconfig vlan5 destroy gives:
if_delmulti_ifma: ifnet 0xfe006b38c000 disappeared


-- 
wbr,
pluknet
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread Miroslav Lachman

Eir Nym wrote:

On 1 April 2011 21:27, Baginski Darrenkick...@yandex.ru  wrote:

Hi!

Could please someone tell me about current state of multiple gw capabilities of 
FreeBSD?
I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
1) can I balance outgoing traffic across them ?
2) Is there support of any kind dead gateway detection?
3) Can I install multiple routes to the same network (with same and with 
different wight)? If yes how it behaves with one link failure, in particular if 
interface is down?


about multiply GWs: you can set multiply gw via setfib(1) utility and
use fib in your firewall rules. But it is not very handy with DHCP and
rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
Due to this I have to add another FreeBSD box to handle dynamic
routes.

This is the one thing I know which can I do in linux easily and in
freebsd with hacks.


There were some attempts to add setfib support to rc.subr, but it was 
not committed:

http://www.freebsd.org/cgi/query-pr.cgi?pr=conf/132483

I don't know the reason.

Miroslav Lachman
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread J. Hellenthal
On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote:
 On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
  Hi!
 
  Could please someone tell me about current state of multiple gw 
  capabilities of FreeBSD?
  I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
  1) can I balance outgoing traffic across them ?
  2) Is there support of any kind dead gateway detection?
  3) Can I install multiple routes to the same network (with same and with 
  different wight)? If yes how it behaves with one link failure, in 
  particular if interface is down?
 

From what you said here it seems that your looking for lagg(4) with
configured with the loadbalance option. Give this man page [1] a
thorough read and youll probably see what your looking for.

1) http://www.freebsd.org/cgi/man.cgi?query=lagg


 
 about multiply GWs: you can set multiply gw via setfib(1) utility and
 use fib in your firewall rules. But it is not very handy with DHCP and
 rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
 Due to this I have to add another FreeBSD box to handle dynamic
 routes.
 
 This is the one thing I know which can I do in linux easily and in
 freebsd with hacks.

-- 

  Regards,

  J. Hellenthal
  JJH48-ARIN
  0x89D8547E



pgpGxZXFDIHZk.pgp
Description: PGP signature


Re: Routing enhancement - reduce routing table locking

2011-04-06 Thread Ingo Flaschberger

Hi,

regarding multipath problems:

Setup which should work:

++  ++
|Router A|(ospf)|Router B|
++  ++
 |(carp)|(carp)
 |  |
 +--+---+
|
   Lan

Router A  B run quagga and exchange routing table.
Router B has during failover of carp a route to lan via ospf/router A and 
a direct connected interface.
Thus FreeBSD carp is not able to handle this correctly, I use a modified 
version of ucarp.


Testsetup:

+-+ (em1)+-+
| FreeBSD |--|Probe|
+-+  +-+

Probe:  10.13.13.95/24
FreeBSD:
em2: 10.11.11.100/24

++ probe answer ping
-- probe does not answer ping

Script:
--- snip ---
ifconfig em1 alias 10.13.13.90/24
ping -c 1 10.13.13.95
++
route add 10.13.13.0/24 10.11.11.1 -weight 2
ping -c 1 10.13.13.95
++
route add 10.13.13.0/24 10.11.11.2 -weight 3
ping -c 1 10.13.13.95
++

route delete 10.13.13.0/24 10.11.11.1
ping -c 1 10.13.13.95
++
route delete 10.13.13.0/24 10.11.11.2
ping -c 1 10.13.13.95
++
ifconfig em1 -alias 10.13.13.90
ping -c 1 10.13.13.95
--

route add 10.13.13.0/24 10.11.11.1 -weight 2
ping -c 1 10.13.13.95
--
ifconfig em1 alias 10.13.13.90/24
ping -c 1 10.13.13.95
++
route add 10.13.13.0/24 10.11.11.2 -weight 3
ping -c 1 10.13.13.95
++
ifconfig em1 -alias 10.13.13.90
ping -c 1 10.13.13.95
--
route delete 10.13.13.0/24 10.11.11.1
ping -c 1 10.13.13.95
--
route delete 10.13.13.0/24 10.11.11.2
ping -c 1 10.13.13.95
--

route add 10.13.13.0/24 10.11.11.1 -weight 2
ping -c 1 10.13.13.95
--
route add 10.13.13.0/24 10.11.11.2 -weight 3
ping -c 1 10.13.13.95
--
ifconfig em1 alias 10.13.13.90/24
ping -c 1 10.13.13.95
++
route delete 10.13.13.0/24 10.11.11.2
ping -c 1 10.13.13.95
++
route delete 10.13.13.0/24 10.11.11.1
ping -c 1 10.13.13.95
++
ifconfig em1 -alias 10.13.13.90
--

route add 10.13.13.0/24 10.11.11.1
ifconfig em1 alias 10.13.13.90/24
ifconfig em1 down
ifconfig em1 up
ifconfig em1 down

ifconfig em1 -alias 10.13.13.90
route delete 10.13.13.0/24 10.11.11.1

ifconfig em1 alias 10.13.13.90/24
route add 10.13.13.0/24 10.11.11.1
ifconfig em1 down
ifconfig em1 up
ifconfig em1 down
--- snap ---

If this script runs without any kernels errors (dmesg), crashes and probe 
replies accordingly - then everything is alright.


Mit freundlichen Gruessen,
Ingo Flaschberger

Geschaeftsleitung

crossip communications gmbh
A-1020 Wien, Sebastian Kneipp Gasse 1/3

Sitz der Gesellschaft: 1020 Wien, Oesterreich
Firmenbuchgericht: Handelsgericht Wien, FN 269698 s,
Umsatzsteueridentifikationsnummer (UID): ATU62080367

Haftungsausschluss / Disclaimer http://www.xip.at/content/view/278/
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread Michael Proto
On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal jh...@dataix.net wrote:
 On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote:
 On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
  Hi!
 
  Could please someone tell me about current state of multiple gw 
  capabilities of FreeBSD?
  I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
  1) can I balance outgoing traffic across them ?
  2) Is there support of any kind dead gateway detection?
  3) Can I install multiple routes to the same network (with same and with 
  different wight)? If yes how it behaves with one link failure, in 
  particular if interface is down?
 

 From what you said here it seems that your looking for lagg(4) with
 configured with the loadbalance option. Give this man page [1] a
 thorough read and youll probably see what your looking for.

 1) http://www.freebsd.org/cgi/man.cgi?query=lagg



 about multiply GWs: you can set multiply gw via setfib(1) utility and
 use fib in your firewall rules. But it is not very handy with DHCP and
 rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
 Due to this I have to add another FreeBSD box to handle dynamic
 routes.

 This is the one thing I know which can I do in linux easily and in
 freebsd with hacks.

 --

  Regards,

  J. Hellenthal
  JJH48-ARIN
  0x89D8547E




I don't think lagg(4) will work here, as its designed for two
interfaces that are attached to the same network (see the example in
the man page). For two different ISPs, I think the setfib approach is
probably the way to go.


-Proto
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: kern/153255: [panic] 8.2-PRERELEASE repeatable kernel panic under heavy network load

2011-04-06 Thread Eugene Grosbein
The following reply was made to PR kern/153255; it has been noted by GNATS.

From: Eugene Grosbein egrosb...@rdtc.ru
To: bug-follo...@freebsd.org
Cc: Gleb Smirnoff gleb...@freebsd.org
Subject: Re: kern/153255: [panic] 8.2-PRERELEASE repeatable kernel panic under
 heavy network load
Date: Wed, 06 Apr 2011 21:40:29 +0700

 Hi!
 
 I have been testing some patches produced be Gleb Smirnoff (glebius)
 during several weeks already. These patches, one for ng_base.c [1]
 and another one for if.c [2] have eliminated my panics competely
 and now all five my routers run perfectly stable.
 
 Now I see they hit HEAD. Please perform MFC and close this PR.
 
 [1] http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ng_base.c#rev1.185
 [2] http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if.c#rev1.399
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


kern/153671: [em] [panic] 8.2-PRERELEASE repeatable kernel in if_em(4)

2011-04-06 Thread Eugene Grosbein
The following reply was made to PR kern/153671; it has been noted by GNATS.

From: Eugene Grosbein egrosb...@rdtc.ru
To: bug-follo...@freebsd.org
Cc: Gleb Smirnoff gleb...@freebsd.org
Subject: kern/153671: [em] [panic] 8.2-PRERELEASE repeatable kernel in if_em(4)
Date: Wed, 06 Apr 2011 21:41:07 +0700

 Hi!
 
 I have been testing some patches produced be Gleb Smirnoff (glebius)
 during several weeks already. These patches, one for ng_base.c [1]
 and another one for if.c [2] have eliminated my panics competely
 and now all five my routers run perfectly stable.
 
 Now I see they hit HEAD. Please perform MFC and close this PR.
 
 [1] http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ng_base.c#rev1.185
 [2] http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/if.c#rev1.399
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread Nikolay Denev
On Apr 6, 2011, at 5:36 PM, Michael Proto wrote:

 On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal jh...@dataix.net wrote:
 On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote:
 On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
 Hi!
 
 Could please someone tell me about current state of multiple gw 
 capabilities of FreeBSD?
 I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
 1) can I balance outgoing traffic across them ?
 2) Is there support of any kind dead gateway detection?
 3) Can I install multiple routes to the same network (with same and with 
 different wight)? If yes how it behaves with one link failure, in 
 particular if interface is down?
 
 
 From what you said here it seems that your looking for lagg(4) with
 configured with the loadbalance option. Give this man page [1] a
 thorough read and youll probably see what your looking for.
 
 1) http://www.freebsd.org/cgi/man.cgi?query=lagg
 
 
 
 about multiply GWs: you can set multiply gw via setfib(1) utility and
 use fib in your firewall rules. But it is not very handy with DHCP and
 rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
 Due to this I have to add another FreeBSD box to handle dynamic
 routes.
 
 This is the one thing I know which can I do in linux easily and in
 freebsd with hacks.
 
 --
 
  Regards,
 
  J. Hellenthal
  JJH48-ARIN
  0x89D8547E
 
 
 
 
 I don't think lagg(4) will work here, as its designed for two
 interfaces that are attached to the same network (see the example in
 the man page). For two different ISPs, I think the setfib approach is
 probably the way to go.
 
 
 -Proto
 

Actually I think the OP is asking about the options RADIX_MPATH feature.

1) Yes, It can balance over the two links but only using Modulo-N Hash 
(RFC2991) algorithm, and probably you should setup NAT on both links.
2) AFAIK there is no dead gw detection code yet.
3) Yes you can do that. There were some fixes for handling interfaces with 
no-link but I was not able to see it working in my setup. e.g. the host still 
tries to send traffic to a interface with no link, effectively blackholing the 
traffic (this was tested on a soekris box with if_vr(4))

IMHO the whole RADIX_MPATH stuff is still in experimental stage and needs some 
more work to work correctly.

There is a recent thread about some improvements in RADIX_MPATH.

Regards,
Nikolay

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread K. Macy
The weights of the links can be changed at run time. If one link is
not passing traffic its weight should be set to zero until such time
as it is passing traffic again.

On Wed, Apr 6, 2011 at 6:13 PM, Nikolay Denev nde...@gmail.com wrote:
 On Apr 6, 2011, at 5:36 PM, Michael Proto wrote:

 On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal jh...@dataix.net wrote:
 On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote:
 On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
 Hi!

 Could please someone tell me about current state of multiple gw 
 capabilities of FreeBSD?
 I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
 1) can I balance outgoing traffic across them ?
 2) Is there support of any kind dead gateway detection?
 3) Can I install multiple routes to the same network (with same and with 
 different wight)? If yes how it behaves with one link failure, in 
 particular if interface is down?


 From what you said here it seems that your looking for lagg(4) with
 configured with the loadbalance option. Give this man page [1] a
 thorough read and youll probably see what your looking for.

 1) http://www.freebsd.org/cgi/man.cgi?query=lagg



 about multiply GWs: you can set multiply gw via setfib(1) utility and
 use fib in your firewall rules. But it is not very handy with DHCP and
 rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
 Due to this I have to add another FreeBSD box to handle dynamic
 routes.

 This is the one thing I know which can I do in linux easily and in
 freebsd with hacks.

 --

  Regards,

  J. Hellenthal
  JJH48-ARIN
  0x89D8547E




 I don't think lagg(4) will work here, as its designed for two
 interfaces that are attached to the same network (see the example in
 the man page). For two different ISPs, I think the setfib approach is
 probably the way to go.


 -Proto


 Actually I think the OP is asking about the options RADIX_MPATH feature.

 1) Yes, It can balance over the two links but only using Modulo-N Hash 
 (RFC2991) algorithm, and probably you should setup NAT on both links.
 2) AFAIK there is no dead gw detection code yet.
 3) Yes you can do that. There were some fixes for handling interfaces with 
 no-link but I was not able to see it working in my setup. e.g. the host still 
 tries to send traffic to a interface with no link, effectively blackholing 
 the traffic (this was tested on a soekris box with if_vr(4))

 IMHO the whole RADIX_MPATH stuff is still in experimental stage and needs 
 some more work to work correctly.

 There is a recent thread about some improvements in RADIX_MPATH.

 Regards,
 Nikolay

 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: 7-STABLE NFS: fatal: select lock: Permission denied

2011-04-06 Thread Chuck Swiger
On Apr 6, 2011, at 1:09 AM, per...@pluto.rain.com wrote:
 People tend to take advantage of the resources they have; if you
 have an EMC or NetApp filer handy, it's might well be reasonable
 to use it ...
 
 s/reasonable/tempting/
 
 When the only tool you have is a hammer, every problem tends to resemble a 
 nail.

Well, even junior sysadmins ought to learn something about percussive 
maintenance.  Senior sysadmins and network managers need to learn something 
about budgets and working with the equipment which is actually available or can 
be obtained under the current circumstances aka financial constraints.

Regards,
-- 
-Chuck

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread J. Hellenthal
Hmmm funny, seems the mailing list is now stripping my address and
moving posts to the top.

On Wed, Apr 06, 2011 at 06:15:19PM +0200, K. Macy wrote:
 The weights of the links can be changed at run time. If one link is
 not passing traffic its weight should be set to zero until such time
 as it is passing traffic again.
 
 On Wed, Apr 6, 2011 at 6:13 PM, Nikolay Denev nde...@gmail.com wrote:
  On Apr 6, 2011, at 5:36 PM, Michael Proto wrote:
 
  On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal jh...@dataix.net wrote:
  On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote:
  On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
  Hi!
 
  Could please someone tell me about current state of multiple gw 
  capabilities of FreeBSD?
  I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
  1) can I balance outgoing traffic across them ?
  2) Is there support of any kind dead gateway detection?
  3) Can I install multiple routes to the same network (with same and 
  with different wight)? If yes how it behaves with one link failure, in 
  particular if interface is down?
 
 
  From what you said here it seems that your looking for lagg(4) with
  configured with the loadbalance option. Give this man page [1] a
  thorough read and youll probably see what your looking for.
 
  1) http://www.freebsd.org/cgi/man.cgi?query=lagg
 
 
 
  about multiply GWs: you can set multiply gw via setfib(1) utility and
  use fib in your firewall rules. But it is not very handy with DHCP and
  rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
  Due to this I have to add another FreeBSD box to handle dynamic
  routes.
 
  This is the one thing I know which can I do in linux easily and in
  freebsd with hacks.
 
  --
 
  �Regards,
 
  �J. Hellenthal
  �JJH48-ARIN
  �0x89D8547E
 
 
 
 
  I don't think lagg(4) will work here, as its designed for two
  interfaces that are attached to the same network (see the example in
  the man page). For two different ISPs, I think the setfib approach is
  probably the way to go.
 
 
  -Proto
 
 
  Actually I think the OP is asking about the options RADIX_MPATH feature.
 
  1) Yes, It can balance over the two links but only using Modulo-N Hash 
  (RFC2991) algorithm, and probably you should setup NAT on both links.
  2) AFAIK there is no dead gw detection code yet.
  3) Yes you can do that. There were some fixes for handling interfaces with 
  no-link but I was not able to see it working in my setup. e.g. the host 
  still tries to send traffic to a interface with no link, effectively 
  blackholing the traffic (this was tested on a soekris box with if_vr(4))
 
  IMHO the whole RADIX_MPATH stuff is still in experimental stage and needs 
  some more work to work correctly.
 
  There is a recent thread about some improvements in RADIX_MPATH.
 
  Regards,
  Nikolay
 
  ___
  freebsd-net@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-net
  To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
 
 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

-- 

  Regards,

  J. Hellenthal
  JJH48-ARIN
  0x89D8547E

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: Multiple gateways support

2011-04-06 Thread K. Macy
Uhm  ... what was the intended content of your message?

And ... the RADIX_MPATH code is now considerably more flexible than just ECMP.


-Kip

On Wed, Apr 6, 2011 at 8:10 PM, J. Hellenthal jh...@dataix.net wrote:
 Hmmm funny, seems the mailing list is now stripping my address and
 moving posts to the top.

 On Wed, Apr 06, 2011 at 06:15:19PM +0200, K. Macy wrote:
 The weights of the links can be changed at run time. If one link is
 not passing traffic its weight should be set to zero until such time
 as it is passing traffic again.

 On Wed, Apr 6, 2011 at 6:13 PM, Nikolay Denev nde...@gmail.com wrote:
  On Apr 6, 2011, at 5:36 PM, Michael Proto wrote:
 
  On Wed, Apr 6, 2011 at 8:02 AM, J. Hellenthal jh...@dataix.net wrote:
  On Wed, Apr 06, 2011 at 01:45:54PM +0400, Eir Nym wrote:
  On 1 April 2011 21:27, Baginski Darren kick...@yandex.ru wrote:
  Hi!
 
  Could please someone tell me about current state of multiple gw 
  capabilities of FreeBSD?
  I have dual homed FreeBSD box, one interface ISP1 another ISP2 :
  1) can I balance outgoing traffic across them ?
  2) Is there support of any kind dead gateway detection?
  3) Can I install multiple routes to the same network (with same and 
  with different wight)? If yes how it behaves with one link failure, in 
  particular if interface is down?
 
 
  From what you said here it seems that your looking for lagg(4) with
  configured with the loadbalance option. Give this man page [1] a
  thorough read and youll probably see what your looking for.
 
  1) http://www.freebsd.org/cgi/man.cgi?query=lagg
 
 
 
  about multiply GWs: you can set multiply gw via setfib(1) utility and
  use fib in your firewall rules. But it is not very handy with DHCP and
  rc(8) (setfib is located in /usr/bin and can't be used in /etc/rc.d).
  Due to this I have to add another FreeBSD box to handle dynamic
  routes.
 
  This is the one thing I know which can I do in linux easily and in
  freebsd with hacks.
 
  --
 
   Regards,
 
   J. Hellenthal
   JJH48-ARIN
   0x89D8547E
 
 
 
 
  I don't think lagg(4) will work here, as its designed for two
  interfaces that are attached to the same network (see the example in
  the man page). For two different ISPs, I think the setfib approach is
  probably the way to go.
 
 
  -Proto
 
 
  Actually I think the OP is asking about the options RADIX_MPATH feature.
 
  1) Yes, It can balance over the two links but only using Modulo-N Hash 
  (RFC2991) algorithm, and probably you should setup NAT on both links.
  2) AFAIK there is no dead gw detection code yet.
  3) Yes you can do that. There were some fixes for handling interfaces with 
  no-link but I was not able to see it working in my setup. e.g. the host 
  still tries to send traffic to a interface with no link, effectively 
  blackholing the traffic (this was tested on a soekris box with if_vr(4))
 
  IMHO the whole RADIX_MPATH stuff is still in experimental stage and needs 
  some more work to work correctly.
 
  There is a recent thread about some improvements in RADIX_MPATH.
 
  Regards,
  Nikolay
 
  ___
  freebsd-net@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-net
  To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org
 
 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

 --

  Regards,

  J. Hellenthal
  JJH48-ARIN
  0x89D8547E

 ___
 freebsd-net@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-net
 To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: kern/156226: [lagg]: failover does not announce the failover to switch

2011-04-06 Thread remko
Old Synopsis: Lagg failover does not announce the failover to switch
New Synopsis: [lagg]: failover does not announce the failover to switch

Responsible-Changed-From-To: freebsd-bugs-freebsd-net
Responsible-Changed-By: remko
Responsible-Changed-When: Wed Apr 6 20:38:58 UTC 2011
Responsible-Changed-Why: 
Reassign to -net

http://www.freebsd.org/cgi/query-pr.cgi?pr=156226
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


ip_forward / ip_output / RTFREE?

2011-04-06 Thread Ingo Flaschberger

Hi,

in sys/netinet/ip_output.c at the end of ip_output:
done:
if (ro == iproute  ro-ro_rt  !nortfree) {
RTFREE(ro-ro_rt);
}
ro-ro_rt gets freed, if not from flowtable.

but in sys/netinet/ip_input.c, ip_forward after ip_output is called:
error = ip_output(m, NULL, ro, IP_FORWARDING, NULL, NULL);

if (error == EMSGSIZE  ro.ro_rt)
mtu = ro.ro_rt-rt_rmx.rmx_mtu;
if (ro.ro_rt)
RTFREE(ro.ro_rt);

first the mtu is saved an the it will be freed.

so:
*) double free? - mtu could be invalid?
*) could also free a flowtable entry?


Mit freundlichen Gruessen,
Ingo Flaschberger

Geschaeftsleitung

crossip communications gmbh
A-1020 Wien, Sebastian Kneipp Gasse 1/3

Sitz der Gesellschaft: 1020 Wien, Oesterreich
Firmenbuchgericht: Handelsgericht Wien, FN 269698 s,
Umsatzsteueridentifikationsnummer (UID): ATU62080367

Haftungsausschluss / Disclaimer http://www.xip.at/content/view/278/
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


Re: ip_forward / ip_output / RTFREE?

2011-04-06 Thread Ingo Flaschberger

Hi,

wrong alert - found the answer by myself.

Bye,
Ingo

___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org


IPv6 neighbor discovery bug in HEAD

2011-04-06 Thread Pierre Beyssac
Hello,

It looks like IPv6 neighbor discovery, due to recent changes, doesn't
work correctly for me on HEAD.

I don't fully understand the nature of the problem (which obviously
results in connectivity problems with neighboring hosts), but the
most obvious symptom is missing ethernet addresses in Neighbor
Advertisement packets (which might come from interpreting a MAY
be omitted in RFC 2461 7.2.4 as a MUST), perhaps because the sending
code wrongly assumes the receiving end already has knowledge of the
ethernet address that's being looked-up.

I only have 1 -current machine so I can only say that the bug may
be triggered by it having multiple IPv6 addresses used for jails,
as below:

re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

options=389bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC
ether 00:1c:c0:c3:40:e9
inet 193.56.58.97 netmask 0xfff0 broadcast 193.56.58.111
inet6 fe80::21c:c0ff:fec3:40e9%re0 prefixlen 64 scopeid 0x1 
inet6 2a01:e35:8b50:2c40::2 prefixlen 64 
inet 192.168.0.2 netmask 0xff00 broadcast 192.168.0.255
inet 192.168.0.4 netmask 0x broadcast 192.168.0.4
inet6 2a01:e35:8b50:2c40::4 prefixlen 128 
inet 192.168.0.3 netmask 0x broadcast 192.168.0.3
inet6 2a01:e35:8b50:2c40::3 prefixlen 128 
inet 192.168.0.6 netmask 0x broadcast 192.168.0.6
inet6 2a01:e35:8b50:2c40::6 prefixlen 128 
nd6 options=21PERFORMNUD,AUTO_LINKLOCAL
media: Ethernet autoselect (1000baseT full-duplex)
status: active

Example incomplete packet:

23:19:18.702622 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) 
2a01:e35:8b50:2c40::6  2a01:e35:8b50:2c40::7: [icmp6 sum ok] ICMP6, neighbor 
advertisement, length 24, tgt is 2a01:e35:8b50:2c40::4, Flags [router, 
solicited]

I've tried various tricks like forcing tlladdr to 1 in nd6_nbr.c,
to no avail...

Any help appreciated :-)
-- 
Sent from my FreeBSD server
Pierre Beyssac  p...@fasterix.frmug.org
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to freebsd-net-unsubscr...@freebsd.org