Kali ini saya akan berbagi konsep dasar Cara Seting Mikrotik DHCP Server Dengan VLAN menggunakan beberapa device yang berbeda seperti mikrotik & cisco.
Cara Seting Mikrotik DHCP Server Dengan VLAN
topologinya adalah seperti dibawah ini:
IP Address Configuration On Mikrotik:
/ip address add address=192.168.0.56/29 network=192.168.0.56 broadcast=192.168.0.63 interface=WAN
Setup VLAN on Mikrotik Router:
/interface vlan add name=100-MANAGEMENT interface=LOCAL vlan-id=100 add name=200-FINANCE interface=LOCAL vlan-id=200 add name=300-SUPPORT interface=LOCAL vlan-id=300
/ip address add address=10.10.10.1/24 interface=100-MANAGEMENT add address=172.16.1.1/24 interface=200-FINANCE add address=192.168.1.1/24 interface=300-SUPPORT
Create an IP address pool:
/ip pool add name=100-MANAGEMENT ranges=10.10.10.1-10.10.10.254 /ip pool add name=200-FINANCE ranges=172.16.1.1-172.16.1.254 /ip pool add name=300-SUPPORT ranges=192.168.1.1-192.168.1.254
DNS Configuration:
/ip dns set allow-remote-requests=yes cache-max-ttl=1 cache-size=5000 max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4
DHCP Server Configuration for VLAN:
/ip dhcp-server enable 0 /ip dhcp-server add interface = LOCAL address-pool = 100-MANAGEMENT /ip dhcp-server add interface = LOCAL address-pool = 200-FINANCE /ip dhcp-server add interface = LOCAL address-pool = 300-SUPPORT
/ip dhcp-server network add address = 10.10.10.0/24 gateway = 10.10.10.1 dns-server = 8.8.8.8 comment=”100-MANAGEMENT” /ip dhcp-server network add address = 172.16.1.0/24 gateway = 172.16.1.1 dns-server = 8.8.8.8 comment=”200-FINANCE” /ip dhcp-server network add address = 192.168.1.0/24 gateway = 192.168.1.1 dns-server = 8.8.8.8 comment=”300-SUPPORT”
NAT Configuration:
/ip firewall nat add chain=srcnat action=masquerade src-address=192.168.1.0/24 out-interface=WAN add chain=srcnat action=masquerade src-address=172.16.1.0/24 out-interface=WAN add chain=srcnat action=masquerade src-address=10.10.10.0/24 out-interface=WAN
Default Gateway Setup:
/ip route add dst-address=0.0.0.0/0 gateway=192.168.0.1
Basic Configuration VLAN Configuration Using Cisco Switch:
CISCO>enable CISCO#configuration terminal CISCO(config)#interface fastethernet 0/1 CISCO(config-if)#switchport mode trunk CISCO(config-if)#switchport trunk allowed vlan all CISCO(config-if)#switchport nonegotiate CISCO(config)#vlan 100 CISCO(config-vlan)#name MANAGEMENT CISCO(config)#vlan 200 CISCO(config-vlan)#name FINANCE CISCO(config)#vlan 300 CISCO(config-vlan)#name SUPPORT CISCO(config)#interface fastethernet 0/2 CISCO(config-if)#switchport mode access CISCO(config-if)#switchport access vlan 100 CISCO(config)#interface fastethernet 0/3 CISCO(config-if)#switchport mode access CISCO(config-if)#switchport access vlan 200 CISCO(config)#interface fastethernet 0/4 CISCO(config-if)#switchport mode access CISCO(config-if)#switchport access vlan 300 CISCO#wr
Selamat belajar 😀