Skip to main content

Posts

Simple policy routing

So you have 2 x gateways, 192.168.10.1 and 192.168.20.1, and you want traffic sourced from your voip server (10.10.10.50) to go out the 20.1 gateway, and the rest of the traffic to go out the 10.1 gateway. Here is how you would achieve that.

Voltage monitoring

On certain boards, such as mipsbe (433AH etc) you can use The Dude to monitor the voltage. You will need to get the snmp oid for the voltage.. /system health print oid

MPLS / VPLS

Before running MPLS on your production network, make sure you have an in-depth understanding of MPLS and VPLS. It makes for a hard time troubleshooting when things screw up if you don't. For an overview of how and why MPLS http://en.wikipedia.org/wiki/Multiprotocol_Label_Switching MPLS can run alongside your existing IGP such as OSPF which will still determine the best path. Set up your LDP neighbors with targeted addresses, using a loopback address. For a basic MPLS implementation, the following configuration is needed on every Mikrotik router. The routers need to be on 4.xx, preferably the latest (4.16 at the time of writing).

Mikrotik mac address filtering

Playing with an RB493G and wanted to allow only a certain list of mac addresses to be able to connect. We all know this type of security is in no way fool proof. The 493G has 2 switch chips in it and ports 2-5 are on switch2 and ports 1 and 6-9 are on switch1 Much like /ip firewall filter rules, switch rules are checked chronologically (top down). And like /ip firewall filter rules, you must specify a deny rule. Although there is no 'deny' rule as such, you can just specify a redirect to null (specify no port) which achieves the same result.

Force reboot linux

If you are unable to shutdown or reboot a linux server by invoking the shutdown command, try this. Force Reboot : echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger Force Shutdown echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger