Configurasi Vlan pada OpenBSD 4.5


cuma dibutuhkan 2 intrfface card pada sebuah PC Router yg terinstal openbsd 4.5
1 sebagai interfface in dan 2 sebagai interfface out

maka sebagai berikut

menambahkan IP pada vlan

nano /etc/hostname.vlan56
dan masukkan
description “speedy1”
vlandev rl0
inet 10.20.30.30 255.255.255.252

nano /etc/hostname.vlan57
dan masukkan

description “speedy2”
vlandev rl0
inet 10.20.30.34 255.255.255.252

dan seterusnya . . .

dan hasilnya dapat dilihat dengan ifconfig

# ifconfig
lo0: flags=8049 mtu 33204
priority: 0
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
vr0: flags=8843 mtu 1500
lladdr 00:0a:48:17:d9:04
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 10.20.30.2 netmask 0xfffffffc broadcast 10.20.30.3
inet6 fe80::20a:48ff:fe17:d904%vr0 prefixlen 64 scopeid 0x1
rl0: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::21c:f0ff:feec:2b62%rl0 prefixlen 64 scopeid 0x2
enc0: flags=0 mtu 1536
priority: 0
vlan51: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy1
priority: 0
vlan: 51 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan51 prefixlen 64 scopeid 0x5
inet 10.20.30.10 netmask 0xfffffffc broadcast 10.20.30.11
vlan52: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy2
priority: 0
vlan: 52 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan52 prefixlen 64 scopeid 0x6
inet 10.20.30.14 netmask 0xfffffffc broadcast 10.20.30.15
vlan53: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy3
priority: 0
vlan: 53 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan53 prefixlen 64 scopeid 0x7
inet 10.20.30.18 netmask 0xfffffffc broadcast 10.20.30.19
vlan54: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy4
priority: 0
vlan: 54 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan54 prefixlen 64 scopeid 0x8
inet 10.20.30.22 netmask 0xfffffffc broadcast 10.20.30.23
vlan55: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy5
priority: 0
vlan: 55 priority: 0 parent interface: rl0
groups: vlan egress
inet6 fe80::21c:f0ff:feec:2b62%vlan55 prefixlen 64 scopeid 0x9
inet 10.20.30.26 netmask 0xfffffffc broadcast 10.20.30.27
vlan56: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy6
priority: 0
vlan: 56 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan56 prefixlen 64 scopeid 0xa
inet 10.20.30.30 netmask 0xfffffffc broadcast 10.20.30.31
vlan57: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy7
priority: 0
vlan: 57 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan57 prefixlen 64 scopeid 0xb
inet 10.20.30.34 netmask 0xfffffffc broadcast 10.20.30.35
vlan58: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy8
priority: 0
vlan: 58 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan58 prefixlen 64 scopeid 0xc
inet 10.20.30.38 netmask 0xfffffffc broadcast 10.20.30.39
vlan59: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy9
priority: 0
vlan: 59 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan59 prefixlen 64 scopeid 0xd
inet 10.20.30.42 netmask 0xfffffffc broadcast 10.20.30.43
vlan60: flags=8843 mtu 1500
lladdr 00:1c:f0:ec:2b:62
description: speedy10
priority: 0
vlan: 60 priority: 0 parent interface: rl0
groups: vlan
inet6 fe80::21c:f0ff:feec:2b62%vlan60 prefixlen 64 scopeid 0xe
inet 10.20.30.46 netmask 0xfffffffc broadcast 10.20.30.47
pflog0: flags=141 mtu 33204
priority: 0
groups: pflog

jadi dah . . .

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: