January 30, 2011

Konfigurasi Static to Rip v2










router 0

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interf
Router(config)#interface ser
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#clock rate 56000
Router(config-if)#no sh
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.1 255.255.255.252
Router(config-if)#exit
Router(config)#
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router r
Router(config-router)#ver
Router(config-router)#version 2
Router(config-router)#net
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.0.0
Router(config-router)#


router 1

Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#in
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#inter
Router(config)#interface ser
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.2 255.255.255.252
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/1/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.5 255.255.255.252
Router(config-if)#no sh
Router(config)#router r
Router(config-router)#ver
Router(config-router)#version 2
Router(config-router)#net
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.1.0
Router(config-router)#redistribute static
Router(config-router)#exit
Router(config)#ip route 192.168.3.0 255.255.255.0 Serial0/1/0


Router 2

Router>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#in
Router(config)#interface ser
Router(config)#interface serial 0/0/0
Router(config-if)#clo
Router(config-if)#clock
Router(config-if)#clock rate
Router(config-if)#clock rate 56000
Router(config-if)#no sh
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

Router(config-if)#ip ad
Router(config-if)#ip address 192.168.2.6 255.255.255.252
Router(config-if)#ex
Router(config)#in
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip route 192.168.0.0 255.255.255.0 serial 0/0/0
Router(config)#exit

Tes Pc 0 ke PC 1
PC>ping 192.168.1.2

Pinging 192.168.1.2 with 32 bytes of data:

Reply from 192.168.1.2: bytes=32 time=93ms TTL=126
Reply from 192.168.1.2: bytes=32 time=94ms TTL=126
Reply from 192.168.1.2: bytes=32 time=63ms TTL=126
Reply from 192.168.1.2: bytes=32 time=81ms TTL=126

Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 63ms, Maximum = 94ms, Average = 82ms

Tes PC0 to PC 2
PC>ping 192.168.3.2

Pinging 192.168.3.2 with 32 bytes of data:

Reply from 192.168.3.2: bytes=32 time=109ms TTL=125
Reply from 192.168.3.2: bytes=32 time=109ms TTL=125
Reply from 192.168.3.2: bytes=32 time=109ms TTL=125
Reply from 192.168.3.2: bytes=32 time=125ms TTL=125

Ping statistics for 192.168.3.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 109ms, Maximum = 125ms, Average = 113ms

Konfigurasi Ripv2 route

router 0
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interf
Router(config)#interface ser
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#clock rate 56000
Router(config-if)#no sh
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.1 255.255.255.252
Router(config-if)#exit
Router(config)#
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router r
Router(config-router)#ver
Router(config-router)#version 2
Router(config-router)#net
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168..0
^
% Invalid input detected at '^' marker.

Router(config-router)#network 192.168.0.0
Router(config-router)#

router 1



Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#in
Router(config)#interface fas
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#inter
Router(config)#interface ser
Router(config)#interface serial 0/0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.2.2 255.255.255.252
Router(config-if)#no sh
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#router r
Router(config-router)#ver
Router(config-router)#version 2
Router(config-router)#net
Router(config-router)#network 192.168.2.0
Router(config-router)#network 192.168.1.0
Router(config-router)#exit
Router(config)#


sekarang ping dari Pc 0 ke Pc 1PC>ping 192.168.1.2

Pinging 192.168.1.2 with 32 bytes of data:

Reply from 192.168.1.2: bytes=32 time=94ms TTL=126
Reply from 192.168.1.2: bytes=32 time=93ms TTL=126
Reply from 192.168.1.2: bytes=32 time=94ms TTL=126
Reply from 192.168.1.2: bytes=32 time=93ms TTL=126

Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 93ms, Maximum = 94ms, Average = 93ms

Perbedaan Rip v1 dgn Rip v2 adalah Rip v2 support VLSM.


Konfigurasi static route

Router 0 konfigurasi spt dbawah ini:
Router#sh run
Building configuration...

Current configuration : 593 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
interface FastEthernet0/0
ip address 192.168.0.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 192.168.2.1 255.255.255.252
clock rate 56000
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 Serial0/0/0
!

!
line con 0
line vty 0 4
login
!
!
end

Router 1 konfigurasi spt di bawah ini:
sh run
Building configuration...

Current configuration : 575 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
ip address 192.168.2.2 255.255.255.252
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip route 192.168.0.0 255.255.255.0 Serial0/0/0
!
line con 0
line vty 0 4
login
!
!
!
end

lalu coba tes :
PC>ping 192.168.1.2

Pinging 192.168.1.2 with 32 bytes of data:

Reply from 192.168.1.2: bytes=32 time=94ms TTL=126
Reply from 192.168.1.2: bytes=32 time=94ms TTL=126
Reply from 192.168.1.2: bytes=32 time=93ms TTL=126
Reply from 192.168.1.2: bytes=32 time=94ms TTL=126

Static route berhasil..

January 26, 2011

Blok ip ganjil atu genap ACL

Blok IP ganji ataupun genap dari network 192.168.0.0 255.255.255.0

If it is 0, the IP address will be Even

-If it is 1, the IP address will be Odd

192.168.1.00000001 = 192.168.1.1 – odd

192.168.1.00000011 = 192.168.1.3 – odd

192.168.1.00000010 = 192.168.1.2 even

192.168.1.00000100 = 192.168.1.4 even

FOR Even Networks

The IP address will be 192.168.1.0

With the wild card mask as 0.0.0.254

254 = 11111110

Here, 0 means DO CARE of the last bit in IP address (must be ZERO)

For Odd Networks

The IP address will be 192.168.1.1

With the wild card mask as 0.0.0.254

254 = 11111110

Here, 0 means DO CARE of the last bit in IP address (must be ONE)

(source ciscotips.wordpress.com)

January 21, 2011

Setting SSH router Cisco




Cara setting SSH di Router cisco (pake GNS3)
1. Masuk global config
2. Configure hostname dan interfacenya
3. username dan password
4. Ip domain name contoh.com
5. Crypto key generate rsa
6. Masuk line vty 0 4
7. Transport input ssh
8. Login local

Router satunya juga di seeting spt diatas.

Cara ngetes SSH:
ssh username ip address

January 20, 2011

Reset Password Cisco router

Cara reset password Cisco router seri 2500 ke atas:
1. Matikan tombol router terus nyalakan lagi dan tekan ctrl+shift + break.
2. Akan masuk ke ROMMON...( Rommon> )
3. Ketik confreg 0x02142 trs tekan enter
4. Masih di Romon ketik reset trs enter
5. Router akan reboot dan seperti biasa pilih no:
6. Anda sudah masuk ke router dan bisa ubah password
7. jangan lupa copy run-start
8. Masuk ke global config dan ketik 'configuration-register 0x2102

Untuk yang model sebelum seri 2500 ke bawah beda lagi:
1. Sama spti diatas masuk ke Rommon
2. Ketik 'o/r enter
3. Ketik 'i' (tanpa tanda '') enter
4.selebihnya sama dengan diatas.
Ĭ