Ringkasan Instruksi / Perintah Konfigurasi Switch

2
Masuk privileged EXEC mode switch>enable menghapus file informasi database VLAN switch#delete flash:vlan.dat menghapus file konfigurasi startup NVRAM switch#erase startup-config mengecek informasi VLAN switch#show vlan atau switch#show vlan brief restart perangkat switch#reload mengecek konfigurasi switch yang sedang berjalan switch#show running-config mengecek interface VLAN switch#show interface vlanX mengecek IP interface VLAN switch#show ip interface vlanX menampilkan informasi Cisco IOS switch#show version menampilkan interface fast ethernet switch#show interface faX/X menampilkan Flash Memory switch#dir flash: switch#show flash switch#dir flash:nama-directori mengganti nama switch switch(config)#hostname XX menyimpan isi running configuration file ke NVRAM switch#copy running-config startup-config memberi password masuk console switch(config)#line console 0 switch(config-line)#password xxxxxx switch(config-line)#login memberi password masuk vty switch(config)#line vty 0 15 switch(config-line)#password xxxxxx switch(config-line)#login memberi password privilaged mode switch(config)#enable secret xxxxxx konfigurasi VLAN switch(config)#vlan xx switch(config)#int vlan xx switch(config-if)#ip add "ip" "subnetmask"

description

Jaringan Komputer, Switch

Transcript of Ringkasan Instruksi / Perintah Konfigurasi Switch

Page 1: Ringkasan Instruksi / Perintah Konfigurasi Switch

Masuk privileged EXEC modeswitch>enable

menghapus file informasi database VLANswitch#delete flash:vlan.dat

menghapus file konfigurasi startup NVRAMswitch#erase startup-config

mengecek informasi VLANswitch#show vlanatauswitch#show vlan brief

restart perangkatswitch#reload

mengecek konfigurasi switch yang sedang berjalanswitch#show running-config

mengecek interface VLANswitch#show interface vlanX

mengecek IP interface VLANswitch#show ip interface vlanX

menampilkan informasi Cisco IOSswitch#show version

menampilkan interface fast ethernetswitch#show interface faX/X

menampilkan Flash Memoryswitch#dir flash:switch#show flashswitch#dir flash:nama-directori

mengganti nama switchswitch(config)#hostname XX

menyimpan isi running configuration file ke NVRAMswitch#copy running-config startup-config

memberi password masuk consoleswitch(config)#line console 0switch(config-line)#password xxxxxxswitch(config-line)#login

memberi password masuk vtyswitch(config)#line vty 0 15switch(config-line)#password xxxxxxswitch(config-line)#login

memberi password privilaged modeswitch(config)#enable secret xxxxxx

konfigurasi VLANswitch(config)#vlan xxswitch(config)#int vlan xxswitch(config-if)#ip add "ip" "subnetmask"

Page 2: Ringkasan Instruksi / Perintah Konfigurasi Switch

switch(config-if)#no shut

konfigurasi port switch ke VLAN xxswitch(config)#int faX/X switch(config-if)#switchport mode accessswitch(config-if)#switchport access vlan xx

mengatur default gateway switchswitch(config)#ip default-gateway "ip"

konfigurasi port speed dan duplex settingswitch(config)#int faX/Xswitch(config-if)#speed 100switch(config-if)#duplex full

melihat MAC Address yang disimpan switchswitch#show mac-address-table

konfigurasi port securityswitch(config)#int faX/Xswitch(config-if)#switchport mode accessswitch(config-if)#switchport port-securityswitch(config-if)#switchport port-security maximum 2switch(config-if)#switchport port-security mac-address stickyswitch(config-if)#switchport port-security violation protect

melihat pengaturan port securityswitch#show port-security

Konfigurasi Trunkswitch(config)#int faX/Xswitch(config-if)#switchport mode trunkswitch(config-if)#switchport trunk native vlan 99switch(config-if)#switchport trunk allowed vlan add xx,xx,xx

menghapus trunkswitch(config)#int faX/Xswitch(config-if)#no switchport trunk allowed vlanswitch(config-if)#no switchport trunk native vlan

Konfigurasi VTPswitch(config)#vtp mode server/client/transparentswitch(config)#vtp domain xxxxswitch(config)#vtp password xxx

Konfigurasi VLAN di VTP serverswitch(config)#vlan xxswitch(config-vlan)#name xxxx