Skip to main content

Posts

Showing posts with the label Windows

How to add an IP Route to Windows Routing Table

On some system connected to complex and complicated network, administrator may require to configure a more advanced network topology with additional routing routes requirement. For example, customized route is required when the NIC interface does not know where to route to an IP address on network segment which does not belong to the same subnet, such as router at 192.168.1.1 to access node on 10.1.1.1 and subnet mask of 255.255.255.0. In any cases, administrator or user can add a route into TCP/IP Routing Table using DOS command prompt with route command. Add IP Route Rules into Windows Routing Table in Command Prompt with Route Command 1. Click Start -> Run (or at Start Search in Windows Vista or Windows 7), and type in Cmd, then press Enter to open a command prompt window. 2. The syntax of route command to add a routing table entry: route ADD [destination IP address or subnet] MASK [subnet mask] [gateway IP address] [metric] IF [interface] Not all parts of the syntax is ...

How to add Python Path in Windows Environment Variables

I got to do this when I need to migrate my customer's Nexus 1000v to the VMWare vDS. Go through the migration documents, first step is to install Python and add the python to the Windows Environment Variable. Python version is 2.7. My Windows Version = Windows Server 2008 R2 Enterprise To add python into the Windows environment variable and then start the python from command prompt. Go to the Go to Control Panel > System and Security > System . Select Advanced system settings. Select Environment Variables as shown in following figure. Under system variable, Click New Add first variable as  Variable Name =  PATH Variable Value =  C:\Python27;%PATH% Add second variable as Variable Name =  PYTHONPATH Variable Value =  %PYTHONPATH%;C:\Python27 Click OK to save newly added two variables, open command prompt window and type python and you should be on the Python prompt.