How to extend your activation grace period on Microsoft Windows Server 2008 or 2008 R2?

Microsoft
Sometimes I need to configure a test Windows virtual machine and use it for only for a week or two. Well if you are using a Microsoft Windows Server 2008 R2 OS like me and you have only 3 days till activation then continue in reading this post:) There are two things to configure and they are not so complicated.   [wp_ad_camp_1]   1) Disable automatic activation with the use of registry editor like in the picture below.                           Visit this path in the registry editor (Run>regedit): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation. Edit or create a DWORD "Manual" value with a value data of 1. 2) Now reset the evaluation period by entering slmgr.vbs -rearm in the command prompt (Run As…
Read More

%SPANTREE-7-RECV_1Q_NON_TRUNK solution!

Cisco
After the connection between two switches could not be established I went to see the log of the uplink switch and the first thing I have noticed was this: %LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %SPANTREE-7-RECV_1Q_NON_TRUNK: Received 802.1Q BPDU on non trunk FastEthernet0/1 VLAN300. %SPANTREE-7-BLOCK_PORT_TYPE: Blocking FastEthernet0/1 on VLAN0300. Inconsistent port type. The two switches were connected via access ports and this message was on my side, since the other side was the service provider and I was not given the technical details of "the other side". [wp_ad_camp_1]   In short, interface was receiving BPDU's which weren't supposed to be there. This was the interface configuration: interface FastEthernet0/1 description UPLINK switchport access vlan 300 switchport mode access spanning-tree portfast…
Read More

How to forward DHCP traffic through a Cisco switch?

Cisco
After moving your DHCP server and it doesn't receive client requests but everything is "OK" with the server, then that could cause a problem in your corporate environment:)       [wp_ad_camp_1] In a nutshell, the client sends a DHCPMESSAGE on its local subnet (UDP port 67) but if the DHCP server is on a different subnet then the client uses a BROADCAST address (255.255.255.255) and that represents a problem on the switch. An overcome of this problem is the "ip helper-address" which we use on the client vlan interface. Here is a simple topology:               Here is the configuration needed: interface vlan2 ip address 172.16.0.1 255.255.255.0 interface vlan3 ip address 172.20.0.1 255.255.255.0 ip helper-address 172.16.0.10 --> DHCP server IP address   Now the…
Read More

Microsoft Windows Server 2008 as NTP server for Cisco devices

Cisco, Microsoft
I wanted to use in my test environment an NTP server on Microsoft Windows Server 2008 R2 that would function as a syncing point for my Cisco routers and switches. The starting issue is that Cisco devices will not sync with Windows integrated NTP server and the reason is that Windows use SNTP as network time protocol.       [wp_ad_camp_1]   SNTP basically provides the same features as NTP, but uses a simpler algorithm to calculate the difference in time between the two network devices. Because of this algorithm, SNTP is less accurate than NTP where on the other side it uses fewer system resources. It is better and recommended to use SNTP on i.e. mobile devices and some consumer level apps where time can be a little off.…
Read More

GNS3 IPS simulation

Cisco
Here are a few notes how to successfully simulate an IPS  6 instance in GNS3. Version 7 is a little tricky to simulate so I suggest you get the IPS Manager Express and practice everything in the demo that is available when you install it.       [wp_ad_camp_1] ***Do not forget to always start GNS3 as an administrator!*** Software and tools used: GNS3 VirtualBox 0.8.1 Java JRE 6u7 IPS-4215-K9-sys-1.1-a-6.0-6-E4.iso (use Google trick to get the image-->explained on THIS link) First it is needed to create a loopback adapter which is connected to GNS3 (cloud) but Google has a good explanation of it-->e.g. LINK In the command prompt in the qemu directory (GNS3) create IPS disks and boot the IPS image itself by entering this commands: qemu-img.exe create ipsdisk1.img 512M…
Read More

Cisco LMS 3.2 Restore Procedure and Misc

Cisco
Although this procedure is written in the official Cisco documentation, I will give you my understanding (example) of it. Command  syntax is the only part where I have encountered some problems (errors).       [wp_ad_camp_1]   Here are the steps to make a successful restore in Cisco LMS 3.2: 1) Stop the Deamon Manager by entering "net stop crmdmgtd" in the Command Prompt. 2) Here is an example of the restore command. Enter this in you Windows root drive in CMD: C:\PROGRA~2\CSCOpx\bin\perl.exe C:\PROGRA~2\CSCOpx\bin\restorebackup.pl -d d:\83 -gen now -t c:\temp As you can see a command is executed in Perl. To get CMD path (example->c:\PROGRA~2), just type "dir/x" to get path list in your current location. For more detailed information about the syntax and what is what, visit http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/3.2/data_migration/guide/rsbkppl.html  …
Read More

Turn proxy on or off script for Microsoft Windows

Microsoft
Here I want to share a script that my friend selflessly shared with me:) In a nutshell this script detects on which network you are connected and then turns the proxy on or off. The only thing you need to change is the value ("172.") in the "isproxynetworkip" line. This value defines what kind of IP address you use when connected to the network that needs proxy turned on (e.g. at work).     [wp_ad_camp_1]   Copy and save the script as a .vbs file. ------------------------------------------------------------ Set WshShell = CreateObject("WScript.Shell") temp = "select IPAddress from Win32_NetworkAdapterConfiguration "& _ "where IPEnabled=TRUE" temp2 = "winmgmts:{impersonationLevel=impersonate}" TempReg = "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable" set IPConfigSet = GetObject(temp2).ExecQuery(temp) isproxynetwork = 0 isproxynetworkip = "172." currentipaddress = "Not present" currentipaddress1 = "Not present" for each IPConfig in IPConfigSet…
Read More

Turn on GUI from command line in Windows Server 2012

Microsoft
In the installation process of Windows Server 2012 you are given a choice  would you like to install the Server Core Installation or the Server with the GUI. A great feature is that we are given a possibility to revert back and forth between a GUI and the non GUI...     [wp_ad_camp_1]   We have to use Powershell for this and I recommend that you get pretty comfortable with it - I am also trying:) We will start with the GUI edition and convert it to a full Core version without the GUI. In Powershell type:   Wait a moment...     After the completion a restart will be needed.       After restart and a successful login only a command line prompt window will show. Type "Powershell"…
Read More

Mozilla Firefox X-Forwarded-For header Add-on

Misc
It has been a few months since my last blog post and reason for that is the lack of time and of course - my laziness:) Here we will talk about an interesting Mozilla Firefox Add-on and the whole concept around the X-Forwarded-For header.     [wp_ad_camp_1]   The X-Forwarded-For is a HTTP header which is used by proxies to identify an IP address of a client. If you use internet through a proxy and you try a service to show your internet IP address (showip.net), it is not very pleasent to see your local address in  the result - at least not to me. As a Firefox user I have discovered a very nice and useful add-on for X-Forwarded-For header.  In the X-Forwarded-For value box you can type more…
Read More

Which information is your browser sharing?

Security
Our browsers are pretty informational and by that I mean that they provide a lot of information to the servers without us knowing about it. A website that you visit can found out a detailed description about your computer, i.e. your screen resolution and type of your OS.       [wp_ad_camp_1] There are many methods to conceal this information so you can stay anonymous to the Internet. Here is a nice web site that will help you see which information is your browser sharing: http://browser-information.online-domain-tools.com/ [wp_ad_camp_1]
Read More
Visit Us On LinkedinVisit Us On Google PlusCheck Our Feed