Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th April 2020
EverydayDiesel EverydayDiesel is offline
Shell Scout
Join Date: Jan 2009
Posts: 124
Default Networking With Multiple NICs on OpenBSD


I have been running OpenBSD since v3 but I have never really understood or been able to get this working.

Please consider the following configuration

// isp
cat /etc/hostname.em0
// internal 1
cat /etc/hostname.em1
// internal 2
cat /etc/hostname.em2
// internal 3
cat /etc/hostname.em3
// internal 4
cat /etc/hostname.em4
Is this the proper way to do this? Am I using the correct subnet for each of these? The internals will never and should never talk to one another (traffic on em1 should only route to em0, same for em2 should only communicate to em0 for internet, etc)

Any advice is greatly appreciated!
Reply With Quote
  #2   (View Single Post)  
Old 29th April 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,416

Yes, assuming your externally facing NIC is not assigning addresses in the 192.168.{1-4).* range.

Each NIC -- with some specialized exceptions -- should be the only NIC attached to any IP subnet, and you have four internal NICs, each attached to its own unique /24 subnet.


Exceptions that come to mind: carp(4), trunk(4), bridge(4), switch(4).
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv6 networking on OpenBSD 6.6-current (via snapshots) tsombi digitale OpenBSD General 12 8th March 2020 11:31 PM
OpenBSD Multiple VPN Setup Dr-D OpenBSD Security 10 7th April 2014 10:50 AM
OpenBSD networking problems aod OpenBSD General 8 16th October 2011 09:57 AM
Two NICs on same subnet anomie Other BSD and UNIX/UNIX-like 6 7th November 2008 03:24 AM
OpenBSD networking section? ai-danno Feedback and Suggestions 4 9th May 2008 07:54 AM

All times are GMT. The time now is 08:05 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick