Saturday, May 17, 2008

VLan Pada Ubuntu 7.10

VLAN + Ubuntu 7.10

Akhirnya, punya juga situs pribadi sendiri setelah lama ngedit ngedit yang ngak jelas di blogspot, wordpress. akhirnya bisa juga punya situs sendiri meskipun domain+hosting gretongan, hehe.... sebagai perkenalan aja saya akan share bagaimana cara buat interface vlan di ubuntu server 7.10 ngak tau juga kalo di versi versi review. sebelumnya makasih to kang taufik yang telah share sebagian ilmunya pada orang katro ini, thanks'a lot ya. moga tambah pinter aja.
Konfigurasi Interface VLAN pk Ubuntu 7.10

1.Install Paket vlan



kkpi@server:~$ sudo apt-get install vlan
Reading package lists... DoneBuilding dependency tree... Done
The following NEW packages will be installed:
vlan
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/24.2kB of archives.
After unpacking 135kB of additional disk space will be used.
Selecting previously deselected package vlan.
(Reading database ... 21897 files and directories currently installed.)
Unpacking vlan (from .../v/vlan/vlan_1.9-1_i386.deb) ...
Setting up vlan (1.9-1) ...


2. Load module 8021.q

kkpi@server:~$ modprobe 8021q

3. Kita buat Interface vlan2 (eth0.2)

kkpi@server:~$ sudo vconfig add eth0 2
Added VLAN with VID == 2 to IF -:eth0:-

4. Beri IP address u/ Interface vlan2 (eth0.2)

kkpi@server:~$ sudo ip a a 192.168.1.1/24 dev eth0.2

5. Kita buat Interface vlan3 (eth0.3)

kkpi@server:~$ sudo vconfig add eth0 3
Added VLAN with VID == 3 to IF -:eth0:-

6. Beri IP address u/ Interface vlan3 (eth0.3)

kkpi@server:~$ sudo ip a a 192.168.2.1/24 dev eth0.3

7. kita liat dech hasil vlan yg kita bwat

kkpi@server:~$ ip a
eth0.2: mtu 1500 qdisc noop
link/ether 00:0c:29:9e:ef:48 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 scope global eth0.2
eth0.3: mtu 1500 qdisc noop
link/ether 00:0c:29:9e:ef:48 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.1/24 scope global eth0.3

8. Skarang aktifin vlan yg tlah kita bwat

kkpi@server:~$ sudo ip link set up eth0.2

kkpi@server:~$ sudo ip link set up eth0.3

No comments:

Post a Comment