Posts

Showing posts from June, 2018

Reset Cisco switch port/interface to default then apply vlan

I recently had to wrestle some switch port configurations back to default after applying to dumb settings to them. This was for a Catalyst 3750x in a stack, although it likely applies to many cisco switches. Reset interface (port) to default 1 2 3 4 Switch > en Switch # conf t Switch ( config ) # default interface Gi1/0/1 Switch ( config ) # exit Unfortunately I could not figure out how to do this to the range like in the example below – it’s likely possible, but after the interface range command, trying to give the command default wanted another parameter, and I didn’t want to have to reset each config to default, so I just rant the above command for each interface, then did bulk range operations for applying the vlans. Apply vlans to ranges or interfaces (ports) 1 2 3 4 5 6 7 8 Switch > en Switch # conf t Switch ( config ) # interface range gigabitEthernet 1/0/1-47 Switch ( if - range ) # switchport ac...

How to Block windows update in mikrotik

Image
i dont have the smartest people in the world (what else is new) and the problem is they complain about slow internet when infact windows update is doing its thing in the background and slowing the connection thats already not so fast. /ip firewall layer7-protocol add name="windows update " regexp="^.+(http://windowsupdate.microsoft.com|http://*.windowsupdate.microsoft.\     com|https://*.windowsupdate.microsoft.com|http://*.update.microsoft.com|https://*.update.microsoft.com|\     http://*.windowsupdate.com|http://download.windowsupdate.com|http://download.microsoft.com|http://*.dow\     nload.windowsupdate.com).*\$" /ip firewall filter add action=drop chain=forward comment="windows update Drop" layer7-protocol="windows update " src-address=\     192.168.128.0/24 add action=drop chain=input dst-port=21-23 protocol=tcp