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 17th July 2014
EverydayDiesel EverydayDiesel is offline
Shell Scout
 
Join Date: Jan 2009
Posts: 106
Thanked 0 Times in 0 Posts
Default Changing Which Interface Is Assigned To Network Interface (physical) Port

I know this is kind of a crazy request but I have a computer that has 4 network interfaces and OpenBSD 5.5 has installed them in different order then i would have expected.

Is there any way to change this?


[ xl1 ] [ xl2 ]
[ xl3 ] [ xl0 ]

I would like it to have more uniform is possible. Maybe something like.

[ xl0 ] [ xl1 ]
[ xl2 ] [ xl3 ]
Reply With Quote
  #2   (View Single Post)  
Old 17th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

No, change is not possible in the OS. There are addressing options:
  • Assign and manage them by interface groups. Each can be placed in its own, and the names are arbitrary. See ifconfig(8).
  • Assign arbitrary description string to each interface, such as "bottom left NIC" "blue cable", "ISP 3", "R&D department", "Kid's gaming LAN", "EverydayDiesel's DMZ". See ifconfig(8).
---

NICs are assigned in the order they are presented to the OS during hardware discovery.
Reply With Quote
  #3   (View Single Post)  
Old 18th July 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,710
Thanked 214 Times in 189 Posts
Default

Here's an example from one of my firewalls:
Code:
$ ifconfig vr
vr0: flags=28802<BROADCAST,SIMPLEX,MULTICAST,NOINET6> mtu 1500
    lladdr c0:42:10:27:57:d9
    description: << External >>
    priority: 0
    media: Ethernet autoselect (100baseTX full-duplex)
    status: active
vr1: flags=28b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST,NOINET6> mtu 1500
    lladdr 00:0d:b9:2f:99:ad
    description: << Internal >>
    priority: 0
    groups: egress
    media: Ethernet autoselect (100baseTX full-duplex)
    status: active
    inet 10.0.1.253 netmask 0xffffff00 broadcast 10.0.1.255
vr2: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
    lladdr 00:0d:b9:2f:99:ae
    description: << PFSync >>
    priority: 0
    media: Ethernet autoselect (100baseTX full-duplex)
    status: active
    inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255
$
$ cat /etc/hostname.vr0
description "<< External >>"
-inet6
$
The external NIC on this firewall does not have an address assigned during normal operations. Its state is managed by scripts executed by ifstated(8) that monitors a carp(4) interface on the internal subnet.

Last edited by jggimi; 18th July 2014 at 10:29 AM. Reason: clarity. Strangely enough, no typos.
Reply With Quote
Reply

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
pf.conf / Which interface ? xinform3n OpenBSD Security 3 8th March 2010 06:23 PM
Device-agnostic network interface sean OpenBSD General 2 28th January 2010 06:24 PM
NAT with only one interface zapov General software and network 4 16th February 2009 03:45 AM
Changing MAC address to an alias interface? DNAeon FreeBSD General 6 20th January 2009 04:48 PM
Web interface for pf? windependence OpenBSD Security 4 20th May 2008 03:58 AM


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


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