Kita simulasikan kembali yang sederhana, sebelum ke yang lebih complex. Design network simulasi seperti di atas. Fokus hanya pada router Juniper, PC2 dan R-Client-2. ( Sengaja menambahkan router R-Client-2, supaya tidak mengotak atik konfigurasi IP address di router R-client :) )
Kita tentukan dahulu network mana yang akan diterapkan
service dhcp ini. Misalnya network 192.168.200.0/24, yang artinya melewati
interface ge-0/0/2.0. Ok. Tanpa perlu banyak cincong lagi, langsung ke konfigurasi.
root>
edit
root#
edit system services
root# set
dhcp pool 192.168.200.0/24
root#
edit dhcp pool 192.168.200.0/24
root# set
address-range low 192.168.200.50 high 192.168.200.99
root# set
router 192.168.200.1
root# set
name-server 8.8.8.8
root# set
name-server 8.8.4.4
root# set
default-lease-time 3600
root#
show
address-range
low 192.168.200.50 high 192.168.200.99;
default-lease-time
3600;
name-server
{
8.8.8.8;
8.8.4.4;
}
router {
192.168.200.1;
}
root#
commit check
configuration
check succeeds
Firewall
Tambahkan rule firewall untuk meng-allow service dhcp.
root# top
root#
edit security zones security-zone loc2
root# set
interfaces ge-0/0/2.0 host-inbound-traffic system-services dhcp
root#
show
interfaces
{
ge-0/0/2.0 {
host-inbound-traffic {
system-services {
ping;
ssh;
telnet;
dhcp;
}
}
}
}
root#
commit check
configuration
check succeeds
root#
commit
commit complete
Ok. Selanjutnya di Router baru, R-Cisco-2, konfigurasi
dhcp client di interface fa0/0
R-CLIENT-2#config
ter
R-CLIENT-2(config)#inter
fa0
R-CLIENT-2(config-if)#ip
address dhcp
R-CLIENT-2(config-if)#no
shut
R-CLIENT-2(config-if)#
*Mar 1 00:03:52.667: %LINK-3-UPDOWN: Interface
FastEthernet0, changed state to up
*Mar 1 00:03:53.667: %LINEPROTO-5-UPDOWN: Line
protocol on Interface FastEthernet0, changed state to up
Cuma gitu doank... Dan mari kita lihat IP addressnya
yang didapatkannya.
R-CLIENT-2(config-if)#^Z
R-CLIENT-2#c
*Mar 1 00:04:38.199: %SYS-5-CONFIG_I: Configured
from console by console
R-CLIENT-2#sh
inter f0
FastEthernet0
is up, line protocol is up
Hardware is PQUICC_FEC, address is
d003.1924.0000 (bia d003.1924.0000)
Internet address is 192.168.200.53/24
MTU 1500 bytes, BW 100000 Kbit/sec, DLY 100
usec,
reliability 255/255, txload 1/255, rxload
1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, 100BaseTX/FX
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:49, output 00:00:07, output
hang never
Last clearing of "show interface"
counters never
Input queue: 0/75/0/0
(size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0
packets/sec
2 packets input, 684 bytes
Received 2 broadcasts, 0 runts, 0 giants,
0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun,
0 ignored
0 watchdog
0 input packets with dribble condition
detected
12 packets output, 2724 bytes, 0 underruns
0 output errors, 0 collisions, 8 interface
resets
R-CLIENT-2#sh
ip route
-----deleted----
C 192.168.200.0/24 is directly connected,
FastEthernet0
S* 0.0.0.0/0 [254/0] via 192.168.200.1
Sedangkan dari PC2, seperti pada gambar di bawah ini.
Mantapzz... Berhasil.
No comments:
Post a Comment