Monday, May 13, 2013

Static Routing

Mata kuliah Jaringan Komputer [JTE Univ.Mataram]


File latihan PKa

R3 S 0/0/1 192.168.3.2/24
R2 S 0/0/1 192.168.3.1/24
R1 Fa 0/0  192.168.1.1 /24 ; Fa 0/1 192.168.2.1/24


Console Pass : cisco
enable Pass :class

R3>enable
Password:
R3#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.

R3 ke R1

R3(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1

R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

S    192.168.1.0/24 [1/0] via 192.168.3.1
C    192.168.3.0/24 is directly connected, Serial0/0/1

R1 ke R3


R1(config)#ip route 192.168.3.0 255.255.255.0 FastEthernet 0/1

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.1.0/24 is directly connected, FastEthernet0/0
C    192.168.2.0/24 is directly connected, FastEthernet0/1
S    192.168.3.0/24 is directly connected, FastEthernet0/1

R2 to R1

R2(config)#ip route 192.168.1.0 255.255.255.0 F
R2(config)#ip route 192.168.1.0 255.255.255.0 FastEthernet 0/0
R2(config)#end

tes ping R3 ke PC1(R1) 192.168.1.10
R3#ping 192.168.1.10

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
...!!
Success rate is 40 percent (2/5), round-trip min/avg/max = 7/13/20 ms

Basic Router Configuration

Mata Kuliah Jaringan Komputer [JTE Univ.Mataram]


Tool simulasi yang akan digunakan adalah Packet tracert, beberapa konfigurasi dasar yang akan dilakukan disini adalah :
  • Naming the router 
  • Setting passwords 
  • Configuring interfaces 
  • Configuring a banner 
  • Saving changes on a router 
  • Verifying basic configuration and router operations
Download file berikut untuk melakukan konigurasi : .pka
berikut adalah perintah-perintah yang digunakan untuk mengkonfigurasi : TXT

--------------
    R1
---------------
Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname R1

R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown

R1(config)#interface serial 0/0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#no shutdown

##password console,telnet,enable secret
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit

R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit

R1(config)#enable secret class

R1(config)#banner motd #
Enter TEXT message.  End with the character '#'.
***************************************************
warning !! Unauthorized Acces Prohibited!!
***************************************************
#

R1#copy running-config startup-config