SETTING ROUTER
Setting Dasar:
1. Setting host name
router#enable t
router(config)#hostname nama-router
router#enable t
router(config)#hostname nama-router
nama-router(config)#
2. Setting pasword console
router(config)# enable secret password-anda
router(config)# enable password password-anda
3. Membuat Paswword terencryption
router(config)# service password-encryption
router(config)# enable password password-anda
4. Setting vty dan aux
router(config)#line vty 0 4
router(config-line)#login
router(config-line)#password password-anda
router(config-line)#line con 0
router(config-line)#login
router(config-line)#password password-anda
router(config-line)# exit
router(config)# no service password-encryption
router(config)# ^Z
router(config)# wr mem
5. Setting terhadap FastEthernet fa 0/0
router#config t
router(config)#int fa0/0
router(config-if)# ip address 192.168.xx.x 255.255.xx.xx
router(config)#no shutdown
router(config)#exit
6. Setting terhadap Serial 0/0
router# config t
router(config)# int serial0/0
router(config-if)# ip address 192.168.xx.x 255.255.xx.xx
router(config)#no shutdown
router(config)#exit
7. Menampilkan
ringkasan status IP interface Router2. Setting pasword console
router(config)# enable secret password-anda
router(config)# enable password password-anda
3. Membuat Paswword terencryption
router(config)# service password-encryption
router(config)# enable password password-anda
4. Setting vty dan aux
router(config)#line vty 0 4
router(config-line)#login
router(config-line)#password password-anda
router(config-line)#line con 0
router(config-line)#login
router(config-line)#password password-anda
router(config-line)# exit
router(config)# no service password-encryption
router(config)# ^Z
router(config)# wr mem
5. Setting terhadap FastEthernet fa 0/0
router#config t
router(config)#int fa0/0
router(config-if)# ip address 192.168.xx.x 255.255.xx.xx
router(config)#no shutdown
router(config)#exit
6. Setting terhadap Serial 0/0
router# config t
router(config)# int serial0/0
router(config-if)# ip address 192.168.xx.x 255.255.xx.xx
router(config)#no shutdown
router(config)#exit
router# show ip interface brief
8. Menampilkan konfigurasi secara utuh
router#show run
Sistem Pengkabelan
Kabel Lurus
Host
|
-
|
Switch
|
Host
|
-
|
Hub
|
Router
|
-
|
Switch
|
Router
|
-
|
Hub
|
Kabel Silang
Switch
|
-
|
Switch
|
Hub
|
-
|
Hub
|
Host
|
-
|
Host
|
Hub
|
-
|
Switch
|
Router
|
-
|
Host
|
Konfigurasi 2 PC dengan 1 router
Pengalamatan Router dan PC
Perangkat
|
Nama
|
Alamat Network
|
Interface
|
Alamat IP
|
Router
|
Lab_A
|
192.168.1.0
|
Fa0/0
|
192.168.1.1
|
|
Lab_A
|
192.168.2.0
|
Fa0/1
|
192.168.2.1
|
PC
|
Host_A
|
192.168.1.0
|
|
192.168.1.2
|
|
Host_B
|
192.168.2.0
|
|
192.168.2.2
|
PC Host A
:
ip addr
192.168.1.2netmask 255.255.255.0
gateway 192.168.1.1
PC Host B
:
ip addr
192.168.2.2netmask 255.255.255.0
gateway 192.168.2.1
Router:
router>enable
router#config t
router(config)#hostname Lab_A
router(config)#hostname Lab_A
Lab_A(config)#
Lab_A(config)#int fa0/0
Lab_A(config-if)#ip addr 192.168.1.1 255.255.255.0
Lab_A (config-if)#no shut
Lab_A(config)#int fa0/0
Lab_A(config-if)#ip addr 192.168.1.1 255.255.255.0
Lab_A (config-if)#no shut
Lab_A (config-if)#exit
Lab_A(config)#int fa0/1
Lab_A(config-if)#ip addr 192.168.2.1 255.255.255.0
Lab_A (config-if)#no shut
Lab_A(config-if)#ip addr 192.168.2.1 255.255.255.0
Lab_A (config-if)#no shut
Konfigurasi dengan beberapa Router
Perangkat
|
Nama
|
Alamat Network
|
Interface
|
Alamat IP
|
Router
|
Lab_A
|
192.168.10.0
|
Fa0/0
|
192.168.10.1
|
|
Lab_A
|
192.168.20.0
|
S1/0
|
192.168.20.1
|
PC
|
PC0
|
192.168.10.0
|
|
192.168.10.2
|
|
PC1
|
192.168.10.0
|
|
192.168.10.3
|
Router
|
Lab_B
|
192.168.30.0
|
Fa0/0
|
192.168.30.1
|
|
Lab_B
|
192.168.20.0
|
S1/0
|
192.168.20.2
|
|
Lab_B
|
192.168.40.0
|
S2/0
|
192.168.40.1
|
PC
|
PC3
|
192.168.30.0
|
|
192.168.30.2
|
Router
|
Lab_C
|
192.168.50.0
|
Fa0/0
|
192.168.50.1
|
|
Lab_C
|
192.168.40.0
|
S1/0
|
192.168.40.1
|
PC
|
PC4
|
192.168.50.0
|
|
192.168.50.2
|
Konfigurasi dengan beberapa Router
Lab_A
Router>
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Lab_A
Lab_A (config)#int s1/0
Lab_A (config-if)#ip addr 192.168.20.1 255.255.255.0
Lab_A (config-if)#clock rate 9600
Lab_A (config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
Lab_A (config-if)#ex
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Lab_A (config)#int fa0/0
Lab_A (config-if)#ip addr 192.168.10.1 255.255.255.0
Lab_A (config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
Lab_A (config-if)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
Lab_A (config)#end
Router#wr mem
Building configuration…
[OK]
Router>ena
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Lab_A
Lab_A (config)#int s1/0
Lab_A (config-if)#ip addr 192.168.20.1 255.255.255.0
Lab_A (config-if)#clock rate 9600
Lab_A (config-if)#no shut
%LINK-3-UPDOWN: Interface Serial0, changed state to up
Lab_A (config-if)#ex
%LINK-3-UPDOWN: Interface Serial0, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down
Lab_A (config)#int fa0/0
Lab_A (config-if)#ip addr 192.168.10.1 255.255.255.0
Lab_A (config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
Lab_A (config-if)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
Lab_A (config)#end
Router#wr mem
Building configuration…
[OK]
Lab_B
Router>
Router>ena
Router#conf t
Router(config)#hostname Lab_B
Lab_B (config)#int s1/0
Lab_B (config-if)#ip addr 192.168.20.1 255.255.255.0
Lab_B (config-if)#no shut
Lab_B (config-if)#ex
Lab_B (config)#int fa0/0
Lab_B (config-if)#ip addr 192.168.30.1 255.255.255.0
Lab_B (config-if)#no shut
Router>ena
Router#conf t
Router(config)#hostname Lab_B
Lab_B (config)#int s1/0
Lab_B (config-if)#ip addr 192.168.20.1 255.255.255.0
Lab_B (config-if)#no shut
Lab_B (config-if)#ex
Lab_B (config)#int fa0/0
Lab_B (config-if)#ip addr 192.168.30.1 255.255.255.0
Lab_B (config-if)#no shut
Lab_B
(config-if)#ex
Lab_B (config)#int s2/0
Lab_B (config-if)#ip addr 192.168.40.1 255.255.255.0
Lab_B (config-if)#no shut
Lab_B (config-if)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
Lab_B (config)#int s2/0
Lab_B (config-if)#ip addr 192.168.40.1 255.255.255.0
Lab_B (config-if)#no shut
Lab_B (config-if)#ip route 192.168.10.0 255.255.255.0 192.168.20.1
Lab_B
(config-if)#ip route 192.168.50.0 255.255.255.0 192.168.40.2
Lab_B (config)#end
Router#wr mem
Building configuration…
[OK]
Lab_B (config)#end
Router#wr mem
Building configuration…
[OK]
Lab_C
Router>
Router>ena
Router#conf t
Router(config)#hostname Lab_C
Lab_C (config)#int s1/0
Lab_C (config-if)#ip addr 192.168.40.2 255.255.255.0
Lab_C (config-if)#no shut
Lab_C (config-if)#ex
Lab_C (config)#int fa0/0
Lab_C (config-if)#ip addr 192.168.50.1 255.255.255.0
Lab_C (config-if)#no shut
Router>ena
Router#conf t
Router(config)#hostname Lab_C
Lab_C (config)#int s1/0
Lab_C (config-if)#ip addr 192.168.40.2 255.255.255.0
Lab_C (config-if)#no shut
Lab_C (config-if)#ex
Lab_C (config)#int fa0/0
Lab_C (config-if)#ip addr 192.168.50.1 255.255.255.0
Lab_C (config-if)#no shut
Lab_C
(config-if)#ip route 192.168.30.0 255.255.255.0 192.168.40.1
Lab_C
(config)#end
Router#wr mem
Building configuration…
[OK]
Router#wr mem
Building configuration…
[OK]
PC0 :
ip addr
192.168.10.2netmask 255.255.255.0
gateway 192.168.10.1
PC1 :
ip addr
192.168.10.3netmask 255.255.255.0
gateway 192.168.10.1
PC3 :
ip addr
192.168.30.2netmask 255.255.255.0
gateway 192.168.30.1
PC4 :
ip addr
192.168.50.2netmask 255.255.255.0
gateway 192.168.50.1
0 komentar:
Posting Komentar