Senin, 02 Juli 2012

Perintah pada CLI untuk Static dan Dynamic Route


Perintah pada CLI untuk Static dan Dynamic Route


Pemberian IP address

Router>en
Router>enable
Router#conf
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#h
Router(config)#hostname R1
R1(config)#int
R1(config)#interface fa
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip add
R1(config-if)#ip address 10.10.10.2 255.0.0.0
R1(config-if)#no sh

R1(config-if)#ex
R1(config-if)#exit
R1(config)#int
R1(config)#interface se
R1(config)#interface serial 2/0
R1(config-if)#ip add
R1(config-if)#ip address 202.132.1.1 255.255.255.0
R1(config-if)#clo
R1(config-if)#clock rat
R1(config-if)#clock rate 9600
R1(config-if)#no sh
R1(config-if)#no shutdown
Router>enable
Router#configure terminal
Router(config)#hostname R2
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.168.10.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#interface serial 2/0
R2(config-if)#ip address 202.132.1.2 255.255.255.0
R2(config-if)#no shutdown
Static Route

R1#conf
R1#configure t
R1#configure terminal
R1(config)#ip route 192.168.10.0 255.255.255.0 202.132.1.0

R2>en
R2>enable
R2#conf
R2#configure t
R2#configure terminal
R2(config)#ip route 10.10.10.0 255.0.0.0 202.132.1.0
Dynamic Route

R1>en
R1>enable
R1#conf
R1#configure t
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip
R1(config-router)#network 10.10.10.0
R1(config-router)#network 202.132.1.0

R2>ena
R2>enable
R2#conf
R2#configure t
R2#configure terminal
R2(config)#router rip
R2(config-router)#net
R2(config-router)#network 192.168.10.0
R2(config-router)#network 202.132.1.0

Tidak ada komentar:

Posting Komentar