Subject: why cant i add another carp int?
To: None <current-users@netbsd.org>
From: Charlie Allom <charlie@rubberduck.com>
List: current-users
Date: 08/04/2007 20:43:26
this should add itself to carpdev wm4 - but just returns an error that isnt
helpful at all.

20:35 hadrian:~# ifconfig carp3 inet 193.34.28.10 netmask 255.255.255.248 vhid 25 pass fkjhsdf
ifconfig: SIOCAIFADDR: Can't assign requested address
20:37 hadrian:~# ifconfig -a
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UD
P4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:30:48:33:52:d0
        media: Ethernet autoselect
        status: no carrier
        inet 10.0.1.27 netmask 0xffffff00 broadcast 10.0.1.255
        inet6 fe80::230:48ff:fe33:52d0%wm0 prefixlen 64 scopeid 0x1
wm1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UD
P4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:30:48:33:52:d1
        media: Ethernet autoselect (1000baseT full-duplex,flowcontrol,master,rxp
ause,txpause)
        status: active
        inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
        inet6 fe80::230:48ff:fe33:52d1%wm1 prefixlen 64 scopeid 0x2
wm2: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:15:17:14:ee:18
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 193.34.28.2 netmask 0xfffffe00 broadcast 193.34.29.255
        inet6 fe80::215:17ff:fe14:ee18%wm2 prefixlen 64 scopeid 0x3
wm3: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:15:17:14:ee:19
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 89.200.217.2 netmask 0xffffffe0 broadcast 89.200.217.31
        inet6 fe80::215:17ff:fe14:ee19%wm3 prefixlen 64 scopeid 0x4
wm4: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:15:17:14:ee:1a
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 193.34.28.11 netmask 0xfffffff8 broadcast 193.34.28.15
        inet6 fe80::215:17ff:fe14:ee1a%wm4 prefixlen 64 scopeid 0x5
wm5: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
        enabled=0
        address: 00:15:17:14:ee:1b
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33192
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33192
carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        carp: MASTER carpdev wm2 vhid 23 advbase 1 advskew 0
        address: 00:00:5e:00:01:17
        inet 193.34.28.1 netmask 0xfffffe00 broadcast 193.34.29.255
carp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        carp: MASTER carpdev wm3 vhid 24 advbase 1 advskew 0
        address: 00:00:5e:00:01:18
        inet 89.200.217.1 netmask 0xffffffe0 broadcast 89.200.217.31
carp2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        carp: MASTER carpdev wm2 vhid 21 advbase 1 advskew 0
        address: 00:00:5e:00:01:15
        inet 193.34.29.1 netmask 0xffffff00 broadcast 193.34.29.255
carp3: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        carp: INIT carpdev wm4 vhid 25 advbase 1 advskew 0
        address: 00:00:5e:00:01:19
20:38 hadrian:~# uname -a
NetBSD hadrian.playlouder.com 4.0_BETA2 NetBSD 4.0_BETA2 (FW $Revision: 1.2 $) #4: Mon Jul  9 22:03:42 BST 2007  root@trajan.playlouder.com:/usr/src/netbsd-4/sys/arch/i386/compile/FW i386
20:39 hadrian:~# netstat -m
1373 mbufs in use:
        1338 mbufs allocated to data
        3 mbufs allocated to packet headers
        32 mbufs allocated to socket names and addresses
0 calls to protocol drain routines
20:39 hadrian:~# config -x|grep NMB
options NMBCLUSTERS=8192
-- 
 hail eris
 http://rubberduck.com/