Wednesday, May 13, 2020

How to create index. html with different color

Basic HTML Page 



I have created the below very Basic  html text to test the F5 load balancer lab. basically i had three servers in the backed sever pool Red, Green and Blue. i have used below the index.html pages to replicate the web server.


############## Used for Red server ####################
<html>
<body style="background-color:Tomato;">

<h1 style="background-color:Tomato;"> RED Server</h1>
<p style="background-color:Tomato;"> This is server RED</h1>


############## Used for Blue server ####################
<html>
<body style="background-color:Blue;">

<h1 style="background-color:Blue;"> BLUE SERVER</h1>
<p style="background-color:Blue;"> This is server Blue</h1>


############## Used for Green server ####################
<html>
<body style="background-color:Green;">

<h1 style="background-color:Green;"> Green Server</h1>
<p style="background-color:Green;"> This is server Green</h1>



Cisco Basic Command Line

SW2(config)#do sh int trunk

Port        Mode             Encapsulation  Status        Native vlan
Gi0/2       on               802.1q         trunking      1
Gi0/3       on               802.1q         trunking      1
Gi1/0       on               802.1q         trunking      1
Gi1/3       on               802.1q         trunking      1

Port        Vlans allowed on trunk
Gi0/2       1-4094
Gi0/3       1-4094
Gi1/0       1-4094
Gi1/3       1-4094

Port        Vlans allowed and active in management domain
Gi0/2       1,10,20,30,40,50
Gi0/3       1,10,20,30,40,50
Gi1/0       1,10,20,30,40,50
Gi1/3       1,10,20,30,40,50

Port        Vlans in spanning tree forwarding state and not pruned
Gi0/2       1,10,20,30,40,50
Gi0/3       none
Gi1/0       1,10,20,30,40,50
       
Port        Vlans in spanning tree forwarding state and not pruned
Gi1/3       1,10,20,30,40,50

#########################################
SW1(config-if)#do sh cdp ne
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
SW2              Gig 0/1           166             R S I            Gig 0/1
SW2              Gig 0/3           137             R S I            Gig 0/3
SW3              Gig 0/2           155             R S I            Gig 0/2

Total cdp entries displayed : 3

###############################################
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
passive interface fa/0 (default)
show ip ospf interface


























GNS3 2.2.8 VM Connection issue on Win10

GNS3 2.2.8 VM Connection issue

I have downloaded the Gns3 2.2.8 and installed on my laptop. earlier version GNS3 was working fine but just to test new Gns3 2.2.8 with web gui i have installed it. but when i fired up the gns3. Gns3 interface started well and its automatically trigger the vm inside the vmware workstation but it didn't turn  up in GNs3 application console Server Summary.


In the serve summary VM is showing red sometimes Gray.


But in the Gns VM was be up and running.



Ping was working as expected.


When i checked the default port in Gns3 Console- Edit- Preferences - default TCP port was 3080.



Changes the default port to 3080 > 80 and apply and ok Gns3 vm rebooted 


And Finally Server Back online in the server console in GNS.


So in summary, sometimes your firewall or HIPS  block the Gns3 Default Communication TCP port 3080.But changing the port to TCP 80 which is Generic one. works well.

Thanks...




Monday, August 4, 2014

Setting up secondary dns using netsh



Recently I had hard time setting up secondary dns using netsh, here is the summary.

To add primary & secondary dns:
netsh interface ip set dns name="name_of_interface" static primary_dns_value
netsh interface ip add dns name="name_of_interface" secondary_dns_value
netsh interface ip show dns

Problem setting default gateway using netsh



netsh is not a tool which I would use on a daily basis, and I tripped on setting default gateway while on a project of video streaming. Hereunder is problem/solution statement.



Problem description:
Windows would not accept the command for setting ip address and would present the cli help for netsh context.


##### CAPTURE #####
C:\>netsh interface ip set address name="Local Area Connection" source=static addr=10.0.0.210 mask=255.255.255.0 gateway=10.0.0.1
The syntax supplied for this command is not valid. Check help for the correct syntax.

Usage: set address [name=]
[[source=]dhcp |
[source=] static [addr=]IP address [mask=]IP subnet mask]
[[gateway=]|none [gwmetric=]integer]

Parameters:

Tag Value
name - The name of the interface.
source - One of the following values:
dhcp: Sets DHCP as the source for configuring IP
addresses for the specific interface.
static: Sets the source for configuring IP addresses
to local static configuration.

gateway - One of the following values:
: A specific default gateway for the
static IP address you are setting.
none: No default gateways are set.
gwmetric - The metric for the default gateway. This field should
not be set if gateway is set to 'none'.
The following options are used only if source is 'static':

addr - An IP address for the specified interface.
mask - The subnet mask for the specified IP address.

Remarks: Used to change the IP address configuration mode from either DHCP to
static mode or static mode to DHCP. Adds IP addresses on an
interface with static IP address or adds default gateways.

Examples:

set address name="Local Area Connection" source=dhcp
set address local static 10.0.0.9 255.0.0.0 10.0.0.1 1

C:\>
##########

Solution :
You can't add gateway without a metric.
netsh interface ip set address name="Local Area Connection" source=static addr=10.0.0.210 mask=255.255.255.0 gateway=10.0.0.1 gwmetric=10

Hence, adding gwmetric with value resolved the issue.