[admin@MikroTik] > system identity set name=R_DHCPServer [admin@R_DHCPServer] > ip address add address=192.168.55.7/24 interface: ether1 [admin@R_DHCPServer] > ip address print Flags: X - disabled, I - invalid, D - dynamic # ADDRESS NETWORK INTERFACE 0 192.168.55.7/24 192.168.55.0 ether1 [admin@R_DHCPServer] > ip dhcp-server setup Select interface to run DHCP server on dhcp server interface: ether1 Select network for DHCP addresses dhcp address space: 192.168.55.0/24 Select gateway for given network gateway for dhcp network: 192.168.55.7 Select pool of ip addresses given out by DHCP server addresses to give out: 192.168.55.1-192.168.55.6,192.168.55.8-192.168.55.254 Select DNS servers dns servers: 8.8.8.8 Select lease time lease time: 15m [admin@R_DHCPServer]
Set PC Sebagai DHCP Client
#PC1
#PC1 PC1> show ip NAME : PC1[1] IP/MASK : 0.0.0.0/0 GATEWAY : 0.0.0.0 DNS : MAC : 00:50:79:66:68:01 LPORT : 10004 RHOST:PORT : 127.0.0.1:10005 MTU: : 1500 PC1> dhcp DORA IP 192.168.55.6/24 GW 192.168.55.7 PC1> show ip NAME : PC1[1] IP/MASK : 192.168.55.6/24 GATEWAY : 192.168.55.7 DNS : 8.8.8.8 DHCP SERVER : 192.168.55.7 DHCP LEASE : 892, 900/450/787 MAC : 00:50:79:66:68:00 LPORT : 10002 RHOST:PORT : 127.0.0.1:10003 MTU: : 1500
#PC2 PC2> show ip NAME : PC2[1] IP/MASK : 0.0.0.0/0 GATEWAY : 0.0.0.0 DNS : MAC : 00:50:79:66:68:01 LPORT : 10004 RHOST:PORT : 127.0.0.1:10005 MTU: : 1500 PC2> dhcp DORA IP 192.168.55.5/24 GW 192.168.55.7 PC2> show ip NAME : PC2[1] IP/MASK : 192.168.55.5/24 GATEWAY : 192.168.55.7 DNS : 8.8.8.8 DHCP SERVER : 192.168.55.7 DHCP LEASE : 476, 900/450/787 MAC : 00:50:79:66:68:01 LPORT : 10004 RHOST:PORT : 127.0.0.1:10005 MTU: : 1500 PC2>
Lakukan pengetesan dengan melakukan ping dari masing-pc
PC1> ping 192.168.55.5 84 bytes from 192.168.55.5 icmp_seq=1 ttl=64 time=1.000 ms 84 bytes from 192.168.55.5 icmp_seq=2 ttl=64 time=0.000 ms PC1>
Lakukan hal yang sama pada PC3 dan PC4. Set PC3 dan PC4 sebagai dhcp client, dan lakukan ping antar semua PC.
No comments:
Post a Comment
Tak ada gading yang tak retak!!
Komentar dan masukan yang bersifat membangun selalu kami harapkan, demi kebaikan bersama.