Skip to content

HOWTO: add alias ip or vlan interface on FreeBSD ( ifconfig create.. )

March 4, 2012

—create alias interface and assign ip —

vodka# ifconfig bge1 alias YOUR_IP2 netmask 255.255.255.224 ( can be in different subnet – no problemo )

ifconfig_bge1=”inet YOUR_IP1 netmask 255.255.255.224″
ifconfig_bge1_alias0=”inet YOUR_IP2 netmask 255.255.255.224″

 

— create vlan interface and assign ip —

root@monitoring:~ # ifconfig vlan3 create
root@monitoring:~ # ifconfig vlan3 1.2.3.4 netmask 255.255.255.0 vlan 3 vlandev em0

ifconfig_vlan3=”inet 1.2.3.4 netmask 255.255.255.0 vlan 3 vlandev em0″

Advertisements

From → FreeBSD, Networking

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: