sinet.com.kh

Saturday, January 20, 2018

Static IP Configuration

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

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



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



3. Configure IP Address for WAN
/ip address
add address=96.9.76.99/25 interface=ether1-WAN network=96.9.76.0



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 DNS Server
/ip dns
set servers=96.9.65.22,96.9.64.12



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
/ip route
add distance=1 gateway=96.9.76.1



8. Configure NAT
/ip firewall nat
add action=masquerade chain=srcnat




9. Add Port to Bridge LAN
/interface bridge port
add bridge=bridge-LAN interface=ether2-LAN pvid=65


No comments:

Post a Comment