Tips Configure VLan Interface on OpenBSD

VLAN or Virtual Local Area Network, is a group of hosts with a common set of requirements that communicate as if they were attached to the same wire, regardless of their physical location.

A VLAN has the same attributes as a physical LAN, but it allows for end stations to be grouped together even if they are not located on the same LAN segment. Network reconfiguration can be done through software instead of physically relocating devices.FreeBSD VLANs Configuration using ifconfig Command
To create a new VLAN interface, enter:

# ifconfig {vlan-name} create

To associate the VLAN interface with a physical interface and assign a VLAN ID, IP address, and netmask:

# ifconfig {vlan-name} {ip-address} netmask {subnet-mask} vlan {vlan-id} vlandev {physical-interface}

The following examples, all packets will be marked on egress with 802.1Q VLAN tags, specifying a VLAN ID of 5:

# ifconfig vlan5 10.0.0.1 netmask 255.255.255.0 vlan 5 vlandev em0

To remove a VLAN interface, enter:

# ifconfig {vlan-name} destroy

Persistence VLAN Configuration

To make configuration persistence, open /etc/rc.conf:

# vi /etc/rc.conf

Append / modify as follows:

cloned_interfaces=”vlan0″
ifconfig_vlan0=”inet x.x.x.x netmask y.y.y.y vlan 2 vlandev em0″

Popular Tags for the article:

openbsd vlan, vlan openbsd, OpenBSD 5 vlan, openbsd vlan pf, openbsd vlan howto, openbsd vlan configuration, openbsd vlan interface, openbsd 5 0 vlan configuration, openbsd vlandev, openbsd trunk vlan, openbsd ifconfig delete interface, openbsd vlan id, openbsd vlan packetfilter, openbsd vlan config, vlan on openbsd

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • BlinkList
  • blogmarks
  • Blogosphere News
  • connotea
  • LinkaGoGo
  • LinkedIn
  • Live
  • MyShare
  • MySpace
  • RSS
  • StumbleUpon
  • Technorati
  • Webnews.de
  • Yahoo! Bookmarks
  • Yahoo! Buzz

Related posts:

  1. Tips to Setup NIS Client with OpenBSD
  2. Linux Check Memory Usage Command Line
  3. Social Networking is More Addictive than Cigarettes & Alcohol ?
  4. Tips to Setup NIS Server with OpenBSD
  5. Tips for Set Up an OpenVPN Server

Leave a Reply