Oups sorry,it just works. Posting too early...
$ ifconfig trunk0
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:02:a5:29:15:f0
trunk: trunkproto roundrobin
trunkport xl0
trunkport fxp0 master
groups: trunk egress
media: Ethernet autoselect
status: active
inet 172.20.3.100 netmask 0xfffffe00 broadcast 172.20.3.255
inet 197.7.70.222 netmask 0xffffff00 broadcast 197.7.70.255
On 1/31/06, Bruno Carnazzi <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'd like to add some alias IP to a trunk(4) interface and it doesn't
> seem to work...
> Here's is my ifconfig -a just after booting :
>
> $ ifconfig -a
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
> groups: lo
> inet 127.0.0.1 netmask 0xff000000
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
> fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:02:a5:29:15:f0
> trunk: trunkdev trunk0
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet6 fe80::202:a5ff:fe29:15f0%fxp0 prefixlen 64 scopeid 0x1
> xl0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:0a:5e:5a:c9:a4
> trunk: trunkdev trunk0
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet6 fe80::20a:5eff:fe5a:c9a4%xl0 prefixlen 64 scopeid 0x2
> pflog0: flags=0<> mtu 33224
> pfsync0: flags=0<> mtu 1348
> enc0: flags=0<> mtu 1536
> trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:02:a5:29:15:f0
> trunk: trunkproto roundrobin
> trunkport xl0
> trunkport fxp0 master
> groups: trunk egress
> media: Ethernet autoselect
> status: active
> inet 172.20.3.100 netmask 0xfffffe00 broadcast 172.20.3.255
>
> And here is my /etc/hostname.trunk0 :
> !/sbin/ifconfig fxp0 up
> !/sbin/ifconfig xl0 up
>
> inet 172.20.3.100 255.255.254.0 NONE trunkport fxp0 trunkport xl0
> inet alias 197.7.70.222 255.255.255.0
> up
>
> The 197.7.70.200 alias does not appears...
> Refering to http://www.openbsd.org/faq/faq6.html#Setup, this command :
> ifconfig trunk0 inet alias 197.7.70.222 netmask 255.255.255.255 should
> do the trick. But not. Silently retrurn with a null error code.
>
> The CAVEATS section of man 4 trunk does not reports this.
>
> Got an idea ?
>
> Thank you,
>
> Bruno.