Hi,

Linux uses ifcfg-* filees, OpenBSD uses /etc/hostname.if 

gatekeeper-01# cat /etc/hostname.em1
! /sbin/ifconfig \$if up
! /sbin/ifconfig \$if description "DCS Fiber"

gatekeeper-01# cat /etc/hostname.vlan920

inet 172.30.0.252 255.255.255.0 NONE vlan 920 vlandev em1               
! /sbin/ifconfig \$if description "VLAN Office 1"

gatekeeper-01# cat /etc/hostname.vlan921

inet 172.20.0.252 255.255.255.0 NONE vlan 921 vlandev em1               
! /sbin/ifconfig \$if description "VLAN Office 2"

man hostname.if is your friend.


-Thmas

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Jake Conk
Sent: den 8 november 2007 11:29
To: [email protected]
Subject: Connecting nic on different vlan

Hello,

I was wondering how do I configure a my nic with different vlan addresses
attached to it.

With linux I had vconfig which I created the vlans on my computer for which
vlans I actually wanted to connect to on my switch. Then I would assign my
ethernet card to whichever vlan it was supposed to be a part of, so adding
eth0 to vlan 1 created an interface eth0.1 and then readding eht0 to vlan 2
created eth0.2 and on those new devices I added ips and everything was
lovely.

What could I use with OpenBSD to provide me with the same capabilities of
configuring my server to be on specific vlans?

Thanks,
- Jake

Reply via email to