TOPOLOGI :
Router-01 as dhcp-server while Router-02 as dhcp client. Client 1 connected to Router using ether2, Router-01 connected to Router-02 using ether1, and Client 2 is connected to Router-02 using ether3
Router-01 Configuration :
1. Check the interface that we use using interface print command, here there are 2 client that are connected to Router-01. Here we can see that ether1 is connected to Router-02 and ether2 is connected to Client-01. We make it into a bridge or a segment.
2. Then we create a bridge interface, add command interface bridge add name=bridge-server then we check using the interface bridge print command, here we can see that we have successfully configured the bridge interface with the name bridge-server and the status is running.
3. Then we add bridge port, to the ether1 and ether2 using interface bridge port command. Here i remote the router using ether2, so when doing this configuration the proxy will reconnect automatically. Enter the command :
4. After that, do the check, using the interface bridge port print, we can see that we have successfully registered or added ether1 and ether2 to the bridge interface using the bridge-server interface. And we can check the interface, using interface print command. When we configured the bridge port interface, the status will be R (Running) and S (Slave). Slave means that the LAN cable is connected to ther router.
5. Configure the IP Address using the bridge-server interface, use the command ip address add address=11.11.11.1/24 interface=bridge-server, check it using ip address print command, we can see that the ip address has been added successfully.
6. Then we configure the dhcp-server to distribute the ip address, use the command, ip dhcp-server setup
-DHCP Server Interface means we are told to choose which interface we will use for the dhcp server, here I am using bridge-server
-DHCP Address Space means the network that is given by default is 11.11.11.0/24
-Gateway for dhcp network gateway functions for distribution to client laptops. Gateway given for dhcp 11.11.11.1
- Addresses to give out the range of ip addresses given to clients 11.11.11.2-11.11.11.254
- DNS Servers configuration dns here I use google which is 8.8.8.8
-Last time serves as a time limitation for the client here, given 10 minutes, meaning that every 10 minutes the IP will be changed
7. Do the check using the ip dhcp-server print command , here we can see that we have successfully created dhcp-server
8. Do the test on client-01, here we can see that we managed to get the IP address from the server, which is 11.11.11.254/24 with a gateway of 11.11.11.1 according to the configuration we made
9. Pings client-01 to the bridge server's ip gateway interface, ping 11.11.11.1, we can see that the reply means that client-01 is connected to router-01
Router-02 Configuration :
10. Check the interface that we use, using the interface print command, here there are 2 client that are connected to Router-02. Here we can see that, ether1 is connected to Router-01 and ether3 is connected to Client-02. We make it into a bridge or a segment.
11. Then we create a bridge interface, enter the command interface bridge add name=bridge-client, then we check using the interface bridge print command. Here we can see that we have successfully configured the bridge interface with the name bridge-client and the status is running.
- Beside that we can also check it using interface print command, we can see that we have successfully added bridge interface.
12. Then we add bridge port, to the ether1 and ether3 using interface bridge port command. Here i remote the router using ether3, so when doing this configuration the proxy will reconnect automatically. Enter the command :
13. After that, do the check, using the interface bridge port print, we can see that we have successfully registered or added ether1 and ether3 to the bridge interface using the bridge-server interface. Next we check the interface, using interface print command. When we configured the bridge port interface, the status will be R (Running) and S (Slave). Slave means that the LAN cable is connected to ther router.
15. Then, we request the ip address using the interface bridge-client, with the dhcp-client feature. Enter the command ip dhcp-client add interface=bridge-client disabled=no. Check it using the ip dhcp-client command, we can see that Router-02 managed to get an ip address 11.11.11.253/24
16. Do test ping to ip gateway Router-01, use ping command 11.11.11.1, we can see that the result is a reply, meaning Router-02 has successfully connected with Router-02.
18. Perform testing on client-02, we can see that we have succeeded in getting the ip address from the server, which is 11.11.11.254 with gateway 11.11.11.1 according to the configuration we made.
19. Ping client-02 to ip gateway interface gateway Router-01. ping 11.11.11.1 we can see that the reply means client-02 is connected to router-01.
20. Ping client-02 using the ip obtained by client-01.ping 11.11.11.254
21. And last step is check the dhcp-server lease to see which clients are connected using the dhcp-server. Add command ip dhcp-server lease print, we can see that 3 clients are connected. Then ping each client ip, if the result is a reply, all the client are successfully connected.
0 komentar
Posting Komentar