kali ini saya akan memberitahukan tutorial membuat dhcp server dengan router.
networknya seperti digambar dibawah ini :
dengan network 192.168.1.0/24 berada di FastEthernet 0/0 dan network 192.168.2.0/24 di FastEthernet 1/0.
ip pada FastEthernet0/0 = 192.168.1.1
ip pada FastEthernet1/0 = 192.168.2.1
kemudian klik di router dan msuk ke CLI nya. lalu ketik seperti dibawah ini.
ini untuk network 192.168.1.0/24
ini untuk network 192.168.2.0/24
selesai dan silahkan mencoba
networknya seperti digambar dibawah ini :
dengan network 192.168.1.0/24 berada di FastEthernet 0/0 dan network 192.168.2.0/24 di FastEthernet 1/0.
ip pada FastEthernet0/0 = 192.168.1.1
ip pada FastEthernet1/0 = 192.168.2.1
kemudian klik di router dan msuk ke CLI nya. lalu ketik seperti dibawah ini.
ini untuk network 192.168.1.0/24
Router>enable
Router#config t
Router(config)#host R1
R1(config)#ip dhcp pool tkj
R1(dhcp-config)#net 192.168.1.0 255.255.255.0
R1(dhcp-config)#default 192.168.1.1
R1(dhcp-config)#exit
R1(config)#ip dhcp exc 192.168.1.1 192.168.1.10 ?
R1(config)#ip dhcp exc 192.168.1.1 192.168.1.10
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
R1#sh run
Building configuration...
Current configuration : 759 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
ip dhcp excluded-address 192.168.1.1 192.168.1.10
!
ip dhcp pool tkj
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
!
!
!
--more--
(tekan enter hingga)
R1#
ini untuk network 192.168.2.0/24
R1#config tkemudian buat PC dan server mendapatkan DHCP
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip dhcp pool tkj2
R1(dhcp-config)#net 192.168.2.0 255.255.255.0
R1(dhcp-config)#default 192.168.2.1
R1(dhcp-config)#exit
R1(config)#ip dhcp exc 192.168.2.1 192.168.2.10 ?
R1(config)#ip dhcp exc 192.168.2.1 192.168.2.10
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
R1#sh run
Building configuration...
Current configuration : 889 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
ip dhcp excluded-address 192.168.1.1 192.168.1.10
ip dhcp excluded-address 192.168.2.1 192.16.2.10
!
ip dhcp pool tkj
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
ip dhcp pool tkj2
network 192.168.2.0 255.255.255.0
default-router 192.168.2.1
!
!
!
--more--
(tekan enter hingga)
R1#
selesai dan silahkan mencoba



Posted in: 









