Saturday, August 27, 2011

Management VLAN Cisco



Contoh cara memanagementkan VLAN (Virtual LAN) di CISCO dengan CLI (Command Line Interface) adalah sebagai berikut:


Gambar 1.1 Topologi Jaringan




Komputer
Hostname
IP Address
Netmask
1
PC_Server
192.168.1.1
255.255.255.0
2
PC_Client1
192.168.1.2
255.255.255.0
3
PC_Client2
192.168.1.3
255.255.255.0
4
PC_Client3
192.168.1.4
255.255.255.0
5
PC_Client4
192.168.1.5
255.255.255.0



Tabel 1.1 Daftar IP Address Skenario VLAN




Ketikan dan Amati setiap perintah dibawah ini >>:


Switch>enable
Switch#configure terminal
Switch(config)#enable password 1234
Switch(config)#enable secret 1234
Switch(config)#exit

Switch#configure terminal

Switch(config)#interface fastEthernet 0/1
Switch(config-if)#speed auto
Switch(config-if)#duplex auto
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/2
Switch(config-if)#speed auto
Switch(config-if)#duplex auto
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/3
Switch(config-if)#speed auto
Switch(config-if)#duplex auto
Switch(config-if)#no shutdown
Switch(config-if)#exit



Switch(config)#interface fastEthernet 0/4
Switch(config-if)#speed auto
Switch(config-if)#duplex auto
Switch(config-if)#no shutdown
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/5
Switch(config-if)#speed auto
Switch(config-if)#duplex auto
Switch(config-if)#no shutdown
Switch(config-if)#exit


Switch(config)#vlan 2
Switch(config-vlan)#name MyVLAN
Switch(config-vlan)#exit


Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit

Switch(config)#interface fastEthernet 0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit

Switch(config)#exit



Switch#show ip interface brief

Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/1        unassigned      YES manual up                    up

FastEthernet0/2        unassigned      YES manual up                    up

FastEthernet0/3        unassigned      YES manual up                    up

FastEthernet0/4        unassigned      YES manual up                    up

FastEthernet0/5        unassigned      YES manual up                    up

FastEthernet0/6        unassigned      YES manual down                  down

FastEthernet0/7        unassigned      YES manual down                  down

FastEthernet0/8        unassigned      YES manual down                  down

FastEthernet0/9        unassigned      YES manual down                  down

FastEthernet0/10       unassigned      YES manual down                  down


Switch#show vlan brief

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/6, Fa0/7, Fa0/8, Fa0/9
                                                Fa0/10, Fa0/11, Fa0/12, Fa0/13
                                                Fa0/14, Fa0/15, Fa0/16, Fa0/17
                                                Fa0/18, Fa0/19, Fa0/20, Fa0/21
                                                Fa0/22, Fa0/23, Fa0/24, Gig1/1
                                                Gig1/2
2    MyVLAN                           active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   







Previous Post
Next Post

0 komentar: