AUTA @ FAKTA?

Di laman blog ini kami sajikan atur pelaksanaan berkaitan dengan Sistem Rangkaian Makmal di sekolah dan kami telah menggunakan Packet Tracer Versi 5.1 sebagai medium perlaksaan. Segala maklumat yang dikompilekan adalah ringkas dan padat. Selamat menimba ilmu.

Thursday, October 28, 2010

CISCO IOS Command

Terdapat 3 jenis modes yang beroperasi didalam IOS Cisco.

Disabled mode
  • Digunakan untuk bilangan command yang terhad
  • Digunakan untuk mengawal router
Enabled mode
  • Digunakan untuk memaparkan maklumat konfigurasi, memasukan mode konfigurasi, dan membuat perubahan kedalam konfigurasi.
Configuration mode
  • Digunakan bagi memasukan dan mengkemaskinikan jangkamasa konfigurasi

Command bagi memaparkan versi perisian yang digunakan.

Cisco>en
//untuk memasuki enable mode

Cisco#wr term // Memaparkan konfigurasi yang sedang berjalan

Building configuration...
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Cisco
!
interface Ethernet0                       
 ip address 192.168.1.1 255.255.255.0
!
interface Serial0
 ip address 192.168.6.1 255.255.255.0
 encapsulation frame-relay
 frame-relay lmi-type ansi
!
interface Serial1
 ip address 192.168.4.2 255.255.255.0
 encapsulation frame-relay
 bandwidth 1536
 keepalive 5
 frame-relay map ip 192.168.4.1 101 IETF
!
router rip
 version 2
 network 192.168.4.0
 network 192.168.6.0
 neighbor 192.168.6.2
 neighbor 192.168.4.1
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.6.2
ip route 0.0.0.0 0.0.0.0 192.168.4.1
!
line con 0
line aux 0
line vty 0 4
login
!
end
Memaparkan IP Ethernet

Router#wr term    //semasa proses konfigurasi dijalankan, kita akan lihat seksyen ethernet 0

interface Ethernet0 

ip address 38.150.93.1 255.255.255.0 

no ip directed-broadcast


Memaparkan Serial IP

Router#wr term   //semasa proses konfigurasi dijalankan, kita akan lihat seksyen interface serial0



interface Serial0 
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IET

Memaparkan Default Route

Router#wr term     //semasa proses konfigurasi dijalankan, kita akan lihat seksyen ip rouute
ip route 0.0.0.0 0.0.0.0 38.167.29.1    //IP yang terakhir merupakan POP IP

Memaparkan Filters

Router#wr term     //lihat di bawah interface serial0, cari



interface Serial0
ip access-group 104 in     //ini bermaksud access-group 104 adalah inbound filter set
ip access-group 105 out     //access-group 105 adalah oubound filter set

//Contoh penyata bagi access-list
access-list 104 
deny   ip 38.166.101.0 0.0.0.255
any
access-list 104 permit tcp any any established
access-list 104 permit tcp any eq ftp-data any gt 1023
access-list 104 permit udp any eq domain any gt 1023
access-list 104 permit udp any eq domain any eq domain
access-list 104 permit icmp any any
access-list 104 permit udp any eq snmp any gt 1023
access-list 105 deny   ip any 38.166.101.0 0.0.0.255
access-list 105 permit tcp any any established
access-list 105 permit tcp any any eq ftp
access-list 105 deny   udp any eq netbios-ns any
access-list 105 deny   udp any eq netbios-dgm any
access-list 105 permit ip any any

Memaparkan Bandwidth

Router#wr term     //semasa proses konfigurasi dijalankan, kita akan lihat seksyen interface serial 0

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IET

Menambah Static Route

Cisco#config t     //untuk masuk ke dalam mode konfigurasi router
Cisco(config)#ip route <Destination><jarak><Subnet Mask ><jarak><Gateway>


Contoh :
Cisco(config)#ip route 38.222.75.0 255.255.255.0 38.20.5.1

Cisco(config)#<ctrl + z>   //untuk keluar dari mode config
Cisco#wr mem  //simpan konfigurasi kedalam memori

Menukar nombor panggilan

test.com>en    //untuk memasuki Enable Mode router
//perlu masukkan password bagi router yang telah disetkan passwordnya
//password yang telah dimasukkan tidak akan kelihatan
//kemudian tekan <enter>
Password:
test.com#show config //memaparkan konfigurasi router, cari baris
dialer map IP 38.1.1.1 speed 64 name LD3330 2707000    //2702000 adalah nombor panggilan
test.com#config t    //untuk memasuki terminal konfigurasi
Enter configuration commands, one per line.  End with CNTL/Z.
Enter the interface that the dialer map IP line is under:
test.com(config)#interface BRI0     //pilih interface berdasarkan name LD3330
//masukkan nombor telefon yang baru di ruangan dialer map ip
test.com(config)#dialer map IP 38.1.1.1 speed 64 name LD3330 [nombor baru]    
//kemudian buang talian bagi nombor panggilan map IP yang lama
test.com(config)#no dialer map IP 38.1.1.1 speed 64 name LD3330 2707020 test.com(config)# <crtl + z> //untuk keluar dari mode konfig test.com# write mem //untuk simpan konfigurasi baru kedalam memory Building configuration... [OK] test.com#show config //untuk membuat pengesahan bagi nombor panggilan baru didalam konfigurasi

Menghidupkan & Memadam Filters 

Memadamkan filter

Router#config t    //memasuki mode configurasi
Router(config)#interface Serial0    //memilih interface yang mahu dipadamkan
Router(config-if)#no ip access-group 104 in
Router(config-if)#no ip access-group 105 out
Router(config-if)# <ctrl +z>
Router#wr mem
Building configuration...
[OK]
Router#

Menghidupkan FIlters

Router#config t
Router(config)#interface Serial0
Router(config-if)#ip access-group 104 in
Router(config-if)#ip access-group 105 out
Router(config-if)# <ctrl +z>
Router#wr mem
Building configuration...
[OK]
Router#

Ping daripada Router

Cisco>en    //untuk masuk ke enable mode
Cisco#ping <hostname>
Contoh:
Cisco#ping 38.8.14.2
Resources : TOMAX7

Cisco Router Command


RequirementCisco Command
Set a console password to ciscoRouter(config)#line con 0
Router(config-line)#login
Router(config-line)#password cisco
Set a telnet passwordRouter(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password cisco
Stop console timing outRouter(config)#line con 0
Router(config-line)#exec-timeout 0 0
Set the enable password to ciscoRouter(config)#enable password cisco
Set the enable secret password to peter. This password overrides the enable password
and is encypted within the config file
Router(config)#enable secret peter
Enable an interfaceRouter(config-if)#no shutdown
To disable an interfaceRouter(config-if)#shutdown
Set the clock rate for a router with a DCE cable to 64KRouter(config-if)clock rate 64000
Set a logical bandwidth assignment of 64K to the serial interfaceRouter(config-if)bandwidth 64
Note that the zeroes are not missing
To add an IP address to a interfaceRouter(config-if)#ip addr 10.1.1.1 255.255.255.0
To enable RIP on all 172.16.x.y interfacesRouter(config)#router rip
Router(config-router)#network 172.16.0.0
Disable RIPRouter(config)#no router rip
To enable IRGP with a AS of 200, to all interfacesRouter(config)#router igrp 200
Router(config-router)#network 172.16.0.0
Disable IGRPRouter(config)#no router igrp 200
Static route the remote network is 172.16.1.0, with a mask of 255.255.255.0, the next hop is 172.16.2.1, at a cost of 5 hopsRouter(config)#ip route 172.16.1.0 255.255.255.0 172.16.2.1 5
Disable CDP for the whole routerRouter(config)#no cdp run
Enable CDP for he whole routerRouter(config)#cdp run
Disable CDP on an interfaceRouter(config-if)#no cdp enable


Cisco Router Show Commands

RequirementCisco Command
View version informationshow version
View current configuration (DRAM)show running-config
View startup configuration (NVRAM)show startup-config
Show IOS file and flash spaceshow flash
Shows all logs that the router has in its memoryshow log
View the interface status of interface e0show interface e0
Overview all interfaces on the routershow ip interfaces brief
View type of serial cable on s0show controllers 0 (note the space between the ’s’ and the ‘0′)
Display a summary of connected cdp devicesshow cdp neighbor
Display detailed information on all devicesshow cdp entry *
Display current routing protocolsshow ip protocols
Display IP routing tableshow ip route
Display access lists, this includes the number of displayed matchesshow access-lists
Check the router can see the ISDN switchshow isdn status
Check a Frame Relay PVC connectionsshow frame-relay pvc
show lmi traffic statsshow frame-relay lmi
Display the frame inverse ARP tableshow frame-relay map

Cisco Router Basic Operations

RequirementCisco Command
EnableEnter privileged mode
Return to user mode from privilegeddisable
Exit RouterLogout or exit or quit
Recall last commandup arrow or <Ctrl-P>
Recall next commanddown arrow or <Ctrl-N>
Suspend or abort<Shift> and  <Ctrl> and 6 then x
Refresh screen output<Ctrl-R>
Compleat CommandTAB

Cisco Router Copy Commands

RequirementCisco Command
Save the current configuration from DRAM to NVRAMcopy running-config startup-config
Merge NVRAM configuration to DRAMcopy startup-config running-config
Copy DRAM configuration to a TFTP servercopy runing-config tftp
Merge TFTP configuration with current router configuration held in DRAMcopy tftp runing-config
Backup the IOS onto a TFTP servercopy flash tftp
Upgrade the router IOS from a TFTP servercopy tftp flash

Cisco Router Debug Commands

RequirementCisco Command
Enable debug for RIPdebug ip rip
Enable summary IGRP debug informationdebug ip igrp events
Enable detailed IGRP debug informationdebug ip igrp transactions
Debug IPX RIPdebug ipx routing activity
Debug IPX SAPdebug IPX SAP
Enable debug for CHAP or PAPdebug ppp authentication
Switch all debugging offno debug all
undebug all