PC dan Server
|
IP Address
|
Subnet Mask
|
Default Gateway
|
PC0
|
172.16.10.5
|
255.255.255.0
|
172.16.10.1
|
PC1
|
172.16.40.89
|
255.255.255.0
|
172.16.40.1
|
PC2
|
172.16.70.5
|
255.255.255.0
|
172.16.70.1
|
PC3
|
172.16.20.163
|
255.255.255.0
|
172.16.20.1
|
PC4
|
172.16.50.75
|
255.255.255.0
|
172.16.50.1
|
PC5
|
172.16.50.7
|
255.255.255.0
|
172.16.50.1
|
PC6
|
172.16.80.16
|
255.255.255.0
|
172.16.80.1
|
Server
|
172.16.70.2
|
255.255.255.0
|
172.16.70.1
|
Dengan ketentuan:
1. Computer dengan ip address 172.16.40.89 tidak boleh diakses oleh semua komputer dari network 172.16.10.0/24 selain dari itu boleh
2. Computer dengan ip address 172.16.10.5 tidak boleh mengakses computer dengan ip address 172.16.50.7 tapi yang lain boleh.
3. Computer dengan ip address 172.16.10.5 boleh melakukan telnet ke router RedDeer yang lain tidak.
Berikut konfigurasi pada router:
Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Edmonton
Edmonton(config)#int fa0/0
Edmonton(config-if)#ip add 172.16.10.1 255.255.255.0
Edmonton(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Edmonton(config-if)#ex
Edmonton(config)#int fa0/1
Edmonton(config-if)#ip add 172.16.20.1 255.255.255.0
Edmonton(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Edmonton(config-if)#ex
Edmonton(config)#int s0/0/0
Edmonton(config-if)#ip add 172.16.30.1 255.255.255.252
Edmonton(config-if)#clock rate 64000
Edmonton(config-if)#no shut
Edmonton(config)#router rip
Edmonton(config-router)#version 2
Edmonton(config-router)#network 172.16.10.0
Edmonton(config-router)#network 172.16.20.0
Edmonton(config-router)#network 172.16.30.0
Edmonton(config-router)#ex
Edmonton(config)#ex
Edmonton#
%SYS-5-CONFIG_I: Configured from console by console
Edmonton#wr
Building configuration...
[OK]
Edmonton#
Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RedDeer
RedDeer(config)#int fa0/0
RedDeer(config-if)#ip add 172.16.40.1 255.255.255.0
RedDeer(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
RedDeer(config-if)#ex
RedDeer(config)#int fa0/1
RedDeer(config-if)#ip add 172.16.50.1 255.255.255.0
RedDeer(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
RedDeer(config-if)#ex
RedDeer(config)#int s0/0/0
RedDeer(config-if)#ip add 172.16.30.1 255.255.255.252
RedDeer(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
RedDeer(config-if)#ex
RedDeer(config)#int s0/1/0
RedDeer(config-if)#
RedDeer(config-if)#ip add 172.16.60.1 255.255.255.252
RedDeer(config-if)#clock rate 64000
RedDeer(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to down
RedDeer(config-if)#ex
RedDeer(config)#int s0/0/0
RedDeer(config-if)#ip add 172.16.30.2 255.255.255.252
RedDeer(config-if)#no shut
RedDeer(config-if)#ex
RedDeer(config)#
%LINK-5-CHANGED: Interface Serial0/1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1/0, changed state to up
RedDeer(config)#router rip
RedDeer(config-router)#version 2
RedDeer(config-router)#network 172.16.30.0
RedDeer(config-router)#network 172.16.40.0
RedDeer(config-router)#network 172.16.50.0
RedDeer(config-router)#network 172.16.60.0
RedDeer(config-router)#
Router>enable
Router#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Calgary
Calgary(config)#int fa0/0
Calgary(config-if)#ip add 172.16.70.1 255.255.255.0
Calgary(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Calgary(config-if)#ex
Calgary(config)#int fa0/1
Calgary(config-if)#ip add 172.16.80.1 255.255.255.0
Calgary(config-if)#no shut
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Calgary(config-if)#ex
Calgary(config)#int se0/0/0
Calgary(config-if)#ip add 172.16.60.2 255.255.255.252
Calgary(config-if)#no shut
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
Calgary(config-if)#ex
Calgary(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
Calgary(config)#router rip
Calgary(config-router)#version 2
Calgary(config-router)#network 172.16.60.0
Calgary(config-router)#network 172.16.70.0
Calgary(config-router)#network 172.16.80.0
Calgary(config-router)#
Calgary#
%SYS-5-CONFIG_I: Configured from console by console
Perintah ACL pada RedDeer
RedDeer(config)#access-list 10 deny 172.16.10.0 0.0.0.255
RedDeer(config)#access-list 10 permit any
RedDeer(config)#int fa0/0
RedDeer(config-if)#ip access-group 10 out
Perintah ACL pada Edmonton
Edmonton(config)#access-list 115 deny ip host 172.16.10.5 host 172.16.50.7
Edmonton(config)#access-list 115 permit ip any any
Edmonton(config)#int fa0/0
Edmonton(config-if)#ip access-group 115 in
Edmonton(config-if)#end
Edmonton#
%SYS-5-CONFIG_I: Configured from console by console
Edmonton#wr
Building configuration...
[OK]
Edmonton#
Perintah telnet pada router RedDeer :
RedDeer(config)#access-list 20 permit host 172.16.10.5
RedDeer(config)#line vty 0 4
RedDeer(config-line)#access-class 20 in