Hi *, I'm setting up a http load balancer group with OpenBSD. First of all, great work regarding pf + carp + relayd. That's a straight forward setup. Me like! :-)
But now on topic. I'm getting a bit of a headache with my final setup. It'll be: 2 nic's (bge0, bge1) trunk those two nic's for failover throw the box into 2 vlan's, one being the one where traffic comes in, the other being the one traffic goes out to the later-to-be-loadbalanced servers. Yes, this IBM blade has just 2 physical nics and I know it would be easier if I had 4 physical nics. Right now, I configured the box like that: # cat /etc/hostname.bge0 up # cat /etc/hostname.bge1 up # cat /etc/hostname.trunk0 trunkproto failover trunkport bge0 trunkport bge1 up # cat /etc/hostname.trunk1 trunkproto failover trunkport bge0 trunkport bge1 up # cat /etc/hostname.vlan24 inet 10.46.24.101 255.255.255.0 10.46.24.255 vlan 24 vlandev trunk0 # cat /etc/hostname.vlan25 inet 10.46.25.101 255.255.255.0 10.46.25.255 vlan 25 vlandev trunk1 But after boot, it really looks like that is wrong -- ifconfig output: bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:0d:60:9d:77:e8 priority: 0 trunk: trunkdev trunk0 media: Ethernet autoselect (1000baseSX full-duplex) status: active inet6 fe80::20d:60ff:fe9d:77e8%bge0 prefixlen 64 scopeid 0x1 bge1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:0d:60:9d:77:e8 priority: 0 trunk: trunkdev trunk0 media: Ethernet autoselect (1000baseSX full-duplex) status: active inet6 fe80::20d:60ff:fe9d:77e9%bge1 prefixlen 64 scopeid 0x2 trunk0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:0d:60:9d:77:e8 priority: 0 trunk: trunkproto failover trunkport bge1 trunkport bge0 master,active groups: trunk media: Ethernet autoselect status: active inet6 fe80::20d:60ff:fe9d:77e8%trunk0 prefixlen 64 scopeid 0x5 trunk1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:00:00:00:00:00 priority: 0 trunk: trunkproto failover groups: trunk media: Ethernet autoselect status: no carrier vlan24: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 lladdr 00:0d:60:9d:77:e8 priority: 0 vlan: 24 priority: 0 parent interface: trunk0 groups: vlan egress inet6 fe80::20d:60ff:fe9d:77e8%vlan24 prefixlen 64 scopeid 0x7 inet 10.46.24.101 netmask 0xffffff00 broadcast 10.46.24.255 vlan25: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1496 lladdr 00:00:00:00:00:00 priority: 0 vlan: 25 priority: 0 parent interface: trunk1 groups: vlan inet 10.46.25.101 netmask 0xffffff00 broadcast 10.46.25.255 inet6 fe80::20d:60ff:fe9d:77e8%vlan25 prefixlen 64 scopeid 0x8 I noticed trunk1 isn't lucky. And I'm just plain puzzled how a correct configuration should look like. Help is really appreciated. Maybe it's just the heat today that makes my brain hurt. Dunno. Thanks in advance, Marian PS.: Please hit reply-all, I'm not subscribed right now. PPS.: introduction said, it'll be a http load balancer group, so after I get this trunk + vlan madness right, I'll dive into carp + pfsync on top of that. Uuhhh :)