sinet.com.kh

Saturday, January 20, 2018

DHCP Client Configuration

1. Comment Interface
2. Create Bridge LAN
3. Configure DHCP Client
4. Configure IP Address for Bridge LAN
5. Configure DSN Server 
6. Configure DHCP Server
7. Configure Static Route
8. Configure NAT
9. Add Port to Bridge

In this configuration we use MikroTik: 450G and Firmware 6.41
1. Comment Interface
/interface ethernet
set [ find default-name=ether1 ] name=ether1-WAN

2. Create Bridge LAN
/interface bridge
add fast-forward=no name=bridge-LAN

 
3. Configure DHCP Client
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1-WAN 


4. Configure IP Address for Bridge LAN
/ip address
add address=172.16.1.1/24 interface=bridge-LAN network=172.16.1.0

 
5. Configure DSN Server 
Automatically received from ISP 

6. Configure DHCP Server
/ip dhcp-server network
add address=172.16.1.0/24 gateway=172.16.1.1


/ip pool
add name=dhcp_pool0 ranges=172.16.1.2-172.16.1.254


/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=bridge-LAN name=dhcp1

 
7. Configure Static Route
Automatically received from ISP 
 
8. Configure NAT
/ip firewall nat
add action=masquerade chain=srcnat


9. Add Port to Bridge
/interface bridge port
add bridge=bridge-LAN interface=ether2
add bridge=bridge-LAN interface=ether3
add bridge=bridge-LAN interface=ether4

 

No comments:

Post a Comment