NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: creating a netbsd router



Hi Broke

Great this worked, I did not have the interface turned up.. creating 
ifconfig.wmx file for each interface with "up" in them did it

Thankyou..

Derrick


-----Original Message-----
From: Brook Milligan [mailto:brook%nmsu.edu@localhost]
Sent: Wednesday, July 19, 2017 2:02 PM
To: Derrick Lobo
Cc: Johnny Billquist; Francisco Valladolid H.; netbsd-users%netbsd.org@localhost
Subject: Re: creating a netbsd router


> On Jul 19, 2017, at 10:01 AM, Derrick Lobo <derrick.lobo%givex.com@localhost> wrote:
>
> So does that means each of the interface has an ip eg 192.168.0.1 on
> wm1
> 192.168.0.2 on wm2 and so on and then just bridge all the interface.
> Ill try that . for now only wm1 had an ip the rest did not have an
> ifconfig.wmx file

I have a setup more or less like what I think you are interested in: 1 
uplink port and 3 bridged ports.

The uplink port is just marked up in its ifconfig file and gets its IP via 
dhcp from upstream.

Only one of the 3 bridged ports is assigned an IP; the rest are just marked 
up in their ifconfig files.  All four ports have individual ifconfig files.

My ifconfig.bridge0 file looks like this:

create
!brconfig $int \
        add wm1 \
        add wm2 \
        add wm3 \
        up

Whatever is plugged into any of the 3 bridged ports just communicate amongst 
themselves just like a “real” switch.

I hope this helps (and is close to what you need).

Cheers,
Brook



Home | Main Index | Thread Index | Old Index