Information Technology and Methodology for Human Networks

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Tuesday, March 30, 2010

vlan configuration - Linux and Cisco Catalyst L2



first install linux PC routernya use, up to want to wear anything ... but if I still use slackware. information, download the VLAN package at http://www.candelatech.com/ ~ greear /



extract tar-zxvf *. tar.gz vlan (make sure the kernel is in use already support 802.1q) "but surely if we are using sekarang2 kernel must have support browww" into the vlan directory and build with the make command .... after the build up vconfig. this program to manage all vlan configurations.

[vlan-0.JPG]

ok ".. do it"

first turn off eth0 on linux pc router [# ifconfig eth0 down], we activate the eth0 interface by giving ip 0.0.0.0 [# ifconfig eth0 0.0.0.0 up].

vlan address configuration information [vconfig add eth0 # 1] order to enable vlan 1, then the system will create a device linux vlan0001.
vlan0001 given ip at [# ifconfig-i vlan0001 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up]

see by using the command [# ifconfig-a]
command to do the same in well to create another vlan

vlan 2:
# vconfig add eth0 2
# ifconfig-i vlan0002 192.168.2.1 netmask 255.255.255.0 broadcast 192.168.2.255

vlan 3:
# vconfig add eth0 3
# ifconfig-i vlan0003 192.168.3.1 netmask 255.255.255.0 broadcast 192.168.3.255

So much configuration on the linux system, now entered into the console or telnet cisco catalyst, and then give the fa0/24 trunk mode in order to synchronize with a PC eth0 on linux router has the configuration, well here it is the configuration

# conf t

# interface FastEthernet0/24

# duplex full
speed # 100
# switchport trunk encapsulation dot1q
# switchport mode trunk

the right to synchronize between your PC and router linux Catalystnya ... then we stepped into the last event ... ie eating hehehe. ngak wall.
last step we are binding vlan configuration on the PC linux router to an existing port on the Catalyst

vlan 1 on port 1, then we must provide a configuration like this:
# conf t
# interface FastEthernet0 / 1
# duplex half
# switchport access vlan 1
# switchport mode access

vlan 2 on port 2, then we must provide a configuration like this:
# conf t
# interface FastEthernet0 / 2
# duplex half
# switchport access vlan 2
# switchport mode access

vlan port 3 on 3, then we must provide a configuration like this:
# conf t
# interface FastEthernet0 / 3
# duplex half
# switchport access vlan 3
# switchport mode access

finished .. yuk we go home hehehe

Reblog this post [with Zemanta]

.:READ MORE:.

Saturday, August 9, 2008

konfigurasi vlan - Linux dan Cisco Catalyst L2

install dulu PC routernya pakai linux, terserah mau pakai apa ... tapi kalau aku sih pakai slackware :-). lanjut, download Vlan package at http://www.candelatech.com/~greear/

extract tar -zxvf vlan*.tar.gz (pastikan kernel yang di pakai sudah support 802.1q) "tapi pastinya kalau pakai kernel yang sekarang2 pasti sudah mendukung browww" masuk kedalam direktori vlan dan build dengan perintah make .... setelah di build muncul vconfig. program ini untuk memanage semua konfigurasi vlan.

ok "do ..it"

matikan dulu eth0 pada pc linux router [#ifconfig eth0 down] , interface eth0 kita aktifkan dengan memberinya ip 0.0.0.0 [#ifconfig eth0 0.0.0.0 up].

lanjut konfigurasi alamat vlan [#vconfig add eth0 1] perintah tersebut mengaktifkan vlan 1, maka pada system linux akan membuat device vlan0001.
berikan ip pada vlan0001 [#ifconfig -i vlan0001 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 up]

lihat dengan menggunakan perintah [#ifconfig -a]
perintah yang sama di lakukan juga untuk membuat vlan yang lain

vlan 2:
#vconfig add eth0 2
#ifconfig -i vlan0002 192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0

vlan 3:
#vconfig add eth0 3
#ifconfig -i vlan0003 192.168.3.1 broadcast 192.168.3.255 netmask 255.255.255.0

segitu konfigurasi pada linux system, sekarang masuk ke dalam console atau telnet catalyst cisco, lalu beri mode trunk pada fa0/24 agar bisa sinkronisasi dengan eth0 pada PC Router linux yang telah di konfigurasi , nah ini dia konfigurasinya

#conf t

#interface FastEthernet0/24

#duplex full
#speed 100
#switchport trunk encapsulation dot1q
#switchport mode trunk

setelah beres mensinkronkan antara PC Router linux dan Catalystnya ... barulah kita menginjak ke acara terakhir ... yaitu makan-makan hehehe :-D . ngak ding.
langkah terakhir kita binding konfigurasi vlan pada PC router linux ke port yang ada pada Catalyst

vlan 1 pada port 1, berarti kita harus memberi konfigurasi seperti ini :
#conf t
#interface fastethernet0/1
#duplex half
#switchport access vlan 1
#switchport mode access

vlan 2 pada port 2, berarti kita harus memberi konfigurasi seperti ini :
#conf t
#interface fastethernet0/2
#duplex half
#switchport access vlan 2
#switchport mode access

vlan 3 pada port 3, berarti kita harus memberi konfigurasi seperti ini :
#conf t
#interface fastethernet0/3
#duplex half
#switchport access vlan 3
#switchport mode access

selesai .. yuk kita pulang hehehe

[Thank's All - ZuRigColl]
Reblog this post [with Zemanta]

.:READ MORE:.