Jan Johansson skrev:
Hello.

On my laptop I use trunk(4) failover to switch between wired and
wireless networks. It works great. But I think my solution for
the "router" is a bit dirty. Is there a better way?

The "router" has one interface connected to the internet (fxp0)
and two interfaces for the internal network (ral0 and fxp1). When
I get tired of waiting for a download to complete I wish to
switch from wireless to a crossover cable (I rather not use a
switch) without interruption.

The solution I have:

:; ifconfig fxp1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:02:b3:2b:b2:89
        media: Ethernet autoselect (none)
        status: no carrier
        inet6 fe80::202:b3ff:fe2b:b289%fxp1 prefixlen 64 scopeid 0x2
        inet 192.168.13.2 netmask 0xffffff00 broadcast 192.168.13.255
ral0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0e:2e:86:7b:14
        media: IEEE802.11 autoselect hostap
        status: active
ieee80211: nwid NAH chan 1 bssid 00:0e:2e:86:7b:14 nwkey Nope 100dBm inet 192.168.13.1 netmask 0xffffff00 broadcast 192.168.13.255
        inet6 fe80::20e:2eff:fe86:7b14%ral0 prefixlen 64 scopeid 0x3
bridge0: flags=41<UP,RUNNING> mtu 1500
        groups: bridge

:; brconfig bridge0
bridge0: flags=41<UP,RUNNING>
        Configuration:
                priority 32768 hellotime 2 fwddelay 15 maxage 20
        Interfaces:
                fxp1 flags=3<LEARNING,DISCOVER>
                        port 2 ifpriority 128 ifcost 55
                ral0 flags=3<LEARNING,DISCOVER>
                        port 3 ifpriority 128 ifcost 55
        Addresses (max cache: 100, timeout: 240):

And then I start dhcpd with '/usr/sbin/dhcpd ral0 fxp1'.

For me it would be beutifull to set the 192.168.13.1 address on
"bridge0" and have dhcpd listen only on bridge0 or maybe use
trunk(4) in some mode for this but I have been unsuccessfull at
that.

well, it should work. however, you should set an address on either of the interfaces that constitutes the bridge, not the bridge itself.

but you don't say exactly where you are unsuccessful...

also, failover trunk ought to work, but i wouldn't know how a bridge pair directly hooked up against let's say a round robin trunk would behave. maybe then the finer options of brconfig(8) would be worth trying.

/kami

Reply via email to