Konsep VRF dan Configurasi di Mikrotik
/ip dhcp-client
add disabled=no interface=ether1-internet
/ip dns
set allow-remote-requests=yes servers=192.168.5.48
/interface ethernet
set [ find default-name=ether1 ] name=ether1-internet
set [ find default-name=ether2 ] name=ether2-lan
set [ find default-name=ether3 ] name=ether3-lan
/ip address
add address=192.168.1.1/24 interface=ether2-lan network=192.168.1.0
add address=192.168.1.1/24 interface=ether3-lan network=192.168.1.0
/ip route vrf
add interfaces=ether2-lan routing-mark=vrf-lan-1
add interfaces=ether3-lan routing-mark=vrf-lan-2
/ip route
add distance=1 gateway=192.168.222.1@main routing-mark=vrf-lan-1
add distance=1 gateway=192.168.222.1@main routing-mark=vrf-lan-2
/ip firewall mangle
add action=mark-connection chain=prerouting in-interface=ether2-lan new-connection-mark=vrf-lan-1-conn passthrough=yes
add action=mark-routing chain=prerouting connection-mark=vrf-lan-1-conn in-interface=ether1-internet new-routing-mark=vrf-lan-1 passthrough=yes
add action=mark-connection chain=prerouting in-interface=ether3-lan new-connection-mark=vrf-lan-2-conn passthrough=yes
add action=mark-routing chain=prerouting connection-mark=vrf-lan-2-conn in-interface=ether1-internet new-routing-mark=vrf-lan-2 passthrough=yes
Semoga Bermanfaat
Penulis : Een Pahlefi,S.Kom
0 Response to "Konsep VRF dan Configurasi di Mikrotik"
Post a Comment