Konfigurasi sederhana DHCP server cisco IOS di GNS3, image yang digunakan pada tulisan ini adalah Cisco IOS Software, 3700 Software (C3725-ADVENTERPRISEK9-M), Version 12.4(15)T14 / c3725-adventerprisek9-mz.124-15.T14.bin
topology
R1 ------- switch -------R2
R1 = DHCP server
R2 = DHCP client
Login Console R1
Router #conf t
Router(config)#int f0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#end
Router #conf t
Router(config)#service dhcp
Router(config)#ip dhcp pool LAB
Router(dhcp-config)#network 192.168.1.0 /24
Router(dhcp-config)#lease 7
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#dns-server 192.168.1.1
Router(dhcp-config)#ip dhcp excluded-addres 192.168.1.1
Router(dhcp-config)#domain-name CISCO.LAB
Router(dhcp-config)#end
Router #copy running-confing startup-config
Login Console R2
Router #conf t
Router(config)#int f0/0
Router(config-if)#ip address dhcp
Router(config-if)#no shutdown
Router(config-if)#end
Router #copy running-confing startup-config
dan R2 akan mendapat ip address dari R1
No comments:
Post a Comment