Hello,
It is possible to build an interface aggregation on dual stack
systems?
I want my trunk0 interface to be bound to ipv4 and to ipv6 address
and I don't know:
1. If this is possible, and
2. if it si possible how do I
make the setup permanent?
Currently the trunk0 interface works with IPv4
address and has the following setup:
$ cat /etc/hostname.bge0
up
$ cat
/etc/hostname.bge1
up
$ cat /etc/hostname.trunk0
trunkproto failover
trunkport bge0 trunkport bge1 192.168.18.133 netmask 255.255.255.0
$ ifconfig
bge0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
lladdr 00:00:00:00:00:00
priority: 0
trunk:
trunkdev trunk0
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet6 fe80::225:64ff:fe3b:a6e7%bge0 prefixlen
64 scopeid 0x1
bge1:
flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:00:00:00:00:00
priority: 0
trunk: trunkdev
trunk0
media: Ethernet autoselect (none)
status: no carrier
inet6 fe80::225:64ff:fe3b:a6e6%bge1 prefixlen 64 scopeid 0x2
trunk0:
flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr
00:25:64:3b:a6:e6
priority: 0
trunk: trunkproto failover
trunkport bge1
trunkport bge0 master,active
groups: trunk egress
media: Ethernet autoselect
status: active
inet 192.168.18.133 netmask 0xffffff00 broadcast
192.168.18.255
inet6 fe80::225:64ff:fe3b:a6e6%trunk0 prefixlen 64
scopeid 0x5
The solution I can think of is to modify the file
/etc/hostname.trunk0 such that it will look like this:
trunkproto failover
trunkport bge0 trunkport bge1 192.168.18.133 netmask 255.255.255.0
inet6
2e03:5a80:0:4::133 prefixlen 64
! route add -inet6 default2e03:5a80:0:4::1
In this way I hope trunk0 interface will be bounded to ip4 and ip6 address.
Is this the correct setup or the solution is wrong?
Thank you very much.
The
system is OpenBSD 5.1 amd64 smp
Bogdan