Thanks Everyone


Agr does not work because you have to remove all IPs from the interface, 
before you add them.. and then theres no way to add an IP to the agr. Eg 
192.168.0.1 I need this ip so that it becomes the LAN gateway for my 
internal PCs.



Im checking briding,  for now I could not get it to work will investigate 
this further.



Thanks again everyone



Derrick





From: Francisco Valladolid H. [mailto:fic...@gmail.com]
Sent: Sunday, July 16, 2017 6:41 AM
To: Derrick Lobo; netbsd-users@netbsd.org
Subject: Re: creating a netbsd router



Hi folks



On Sat, Jul 15, 2017 at 4:06 AM Derrick Lobo <derrick.l...@givex.com> wrote:

I have a device with 8 network interface,so wondering if I can set this up 
as my router/switch

Ok



I would like to create eth0 as the WAN interface and the remaining eth1-6 as 
the LAN interface so that I can connect multiple switches and devices 
directly on the 7 remaining ports.. is vlan, bridging the way to go .. linux 
uses bonding and im not sure if freebsds lagg is the same thing.. Anyone can 
provide information or link on how I can achieve this.



Yes you can. You can use bridging, setting VLAN and agrégate interfaces 
like Linux with the agr(4)



http://man-k.org/man/NetBSD-current/4/agr?r=1 
<http://man-k.org/man/NetBSD-current/4/agr?r=1&q=Agr> &q=Agr





So eth0  would have a public Ip while the rest ports would have one LAN IP 
whichis basically a 192.168.0.1  ip  and Irun DHCP namedb etc on these 
interface to support my LAN.



Yes, eth0 can be wan with the public IP and the rest can be LAN, setting 
dhcp over any interfaz and setting a DNS cache.



Please review the npf.conf manual for information about the firewall program



http://man-k.org/man/NetBSD-current/5/npf.conf?r=2 
<http://man-k.org/man/NetBSD-current/5/npf.conf?r=2&q=Npf.conf> &q=Npf.conf





Bes regards.

Thanks

Derrick Lobo

-- 

Francisco Valladolid H.
 -- http://blog.bsdguy.net - Jesus Christ follower.

Reply via email to