Re: OpenBSD router Tim Judd <tjudd01@hotmail.com> wrote:
> Tim Judd wrote:
>> Hi guys, I'm trying to get the similar effects of a consumer router, one
>> WAN, four LAN ports.
>>
>> I have a single 10baseT network interface, and a 4-port 100baseT
>> ethernet card on the system. Am I going about this wrong to create the
>> same thing as a consumer router?
>>
>> # dhclient le0
>> # ifconfig bridge0 create
>> # brconfig bridge0 add hme0 up add hme1 up add hme2 up add hme3 up
>> -------
>> (I'm stuck here.. how do I assign 192.168.1/24 to bridge0?)
>>
>> # ifconfig bridge0 inet 192.168.1.1 netmask 255.255.255.0 up
>> ifconfig: SIOCAIFADDR: Invalid argument
>>
>
> OK, a bridge operates on a OSI layer not aware of IP data, so assigning
> a IP address to a bridge will never work. How else can I assign one IP
> to 4 NICs?
With a lot of ugly hacks. Why would you want to do that?
I'm fairly certain - but no more than that - that you could bridge those
four interfaces together, and assign whatever is attached to them your
external interface as a gateway.
Either way, you should consider using those four NICs to create separate
subnets - which has both advantages and disadvantages, of course.
Joachim |