Devil’s VLAN 666? (NETWORKING/CISCO)

Devil’s VLAN 666? (NETWORKING/CISCO)

PROBLEM: What the hell stands VLAN 666 for? SOLUTION: Native VLAN feature! [?] What is VLAN? https://study-ccna.com/what-is-a-vlan/ In most of the times, you can observe Vlan1 on your switch to be down / administratively down. And this is fine and correct, simply because of security reasons. Vlan1 is default Vlan so it cannot be deleted, but we can disable it and create another Vlan and force it to behave as the native one. By default, all ports are under Vlan 1, which…

Read More Read More

Simple HTTPS redirect using .htaccess (WEB)

Simple HTTPS redirect using .htaccess (WEB)

PROBLEM: I have SSL certificate installed, but web is still on http instead of https. SOLUTION: Put simple code to your .htaccess file. [?] How secure is HTTPS today? https://www.eff.org/deeplinks/2011/10/how-secure-https-today //Put this code into your .htaccess file

Credit: https://serverguy.com/servers/redirect-http-to-https/

Just created VLAN but I cannot see it! (CISCO)

Just created VLAN but I cannot see it! (CISCO)

PROBLEM: I created a VLAN on my router, but I cannot see it using ‘show vlan-switch’ or Vlan Status is UP but Protocol is DOWN. SOLUTION: Create L2 SVI. [?] What is SVI? https://en.wikipedia.org/wiki/Switch_virtual_interface //Create L2 SVI over the existing L3 VLAN

OUTPUT

Copy & Paste

Cisco is interrupting my typing (CISCO)

Cisco is interrupting my typing (CISCO)

PROBLEM:  I am angry with Cisco IOS messages in the middle of my comands! SOLUTION:  Sync input and output. [?] How to connect to Cisco router? https://en.wikipedia.org/wiki/PuTTY //Turn on sync

BEFORE

AFTER

Copy & Paste

Credit:

Stop translating typo in privileged mode (CISCO)

Stop translating typo in privileged mode (CISCO)

PROBLEM: Cisco tries to telnet if you mistype. SOLUTION: Disable domain-lookup. [?] What is DNS? https://www.cloudflare.com/learning/dns/what-is-dns/ //Disable domain-lookup in config terminal mode

BEFORE

AFTER

Copy & Paste

Monitor device connection to the internet (CISCO)

Monitor device connection to the internet (CISCO)

PROBLEM: Monitor device access to the internet and create action when connection is not available (e.g. restart device). SOLUTION: Creating IP SLA (monitor) and trigger e.g. ‘reload’ action using event manager (EEM). [?] What is IP SLA? https://learningnetwork.cisco.com/blogs/vip-perspectives/2017/06/13/ip-sla-fundamentals //Create simple IP SLA with google DNS server as the target from interface FastEtheret 0/1

OUTPUT

Copy & Paste

Credit: https://www.experts-exchange.com/questions/21986774/IP-addresses-may-not-be-configured-on-L2-links-on-Cisco-1801.html

% IP addresses may not be configured on L2 links (CISCO)

% IP addresses may not be configured on L2 links (CISCO)

PROBLEM: Unable to configure IP on the specific interface. SOLUTION: Creating VLAN with IP and assign VLAN to the physical interface. [?] What is VLAN? https://www.lifewire.com/virtual-local-area-network-817357 //create VLAN and assign IP to it

//assign VLAN to interface

OUTPUT

Copy & Paste

Credit: https://www.experts-exchange.com/questions/21986774/IP-addresses-may-not-be-configured-on-L2-links-on-Cisco-1801.html

Block incoming ping (CISCO)

Block incoming ping (CISCO)

PROBLEM: I would like to block all incoming ping requests. SOLUTION: Block incoming ICMP traffic using access-list. [?] Why you should not block ICMP traffic! https://neilalexander.eu/articles/2017/4/16/understanding-icmp http://shouldiblockicmp.com/ //create deny rule to drop all ICMP requests //enable other traffic (bcs of implicit deny by ACL)

//assign the rule to the interface

OUTPUT

Copy & Paste

Source: https://community.cisco.com/t5/routing/block-icmp/td-p/2419132