DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th June 2021
victorvas victorvas is offline
Real Name: Victor
Linux
 
Join Date: May 2019
Posts: 148
Question Multiple IPv4 addresses on a single network adapter

Hi. The network is divided into subnets and the computer needs access to
these subnets to route information. How to add additional IPv4 addresses to a single network adapter?
Reply With Quote
  #2   (View Single Post)  
Old 27th June 2021
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default

hostname.if(5)

There's an extensive example a little down the manpage. Check out the alias lines.
Reply With Quote
  #3   (View Single Post)  
Old 28th June 2021
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,155
Default

You did not show the actual network layout, but usually accessing subnets is done with routing, and not by adding multiple addresses to a single host.

If I would have to access the 10.14.91.00/24 network and the host 192.168.0.102 can reach that network, I would manually add a route with:
Code:
# route add -net 10.14.91 -host 192.168.0.102
add net 10.14.91: gateway 192.168.0.102
There is a nice example of manual route setup for three networks at https://en.wikipedia.org/wiki/Defaul...y#Multi-router
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 28th June 2021
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 8,017
Default

It is valid to configure multiple IP subnets over a single network segment -- a single Ethernet network, for example.

But it can be confusing, because routing between subnets that share a network segment is physically unnecessary, and consumes bandwidth as it replicates packets. If routing in this fashion is being used for governance, it may be ineffective -- devices can easily circumvent it and communicate directly.


Typically, IP subnets are aligned with unique network segments.
Reply With Quote
Reply

Tags
ipv4

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
Overnight Company gets control of 175 Million IPv4 addresses shep News 3 25th April 2021 03:40 AM
Europe officially runs out of IPv4 addresses J65nko News 1 15th September 2012 12:02 PM
Trading IPv4 addresses will end in tears J65nko News 0 30th August 2011 12:43 AM
World shrugs as IPv4 addresses finally exhausted J65nko News 0 2nd February 2011 10:23 PM
Scraping the bottom of the IPv4 barrel for new addresses J65nko News 1 17th June 2010 11:51 PM


All times are GMT. The time now is 06:11 AM.


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