Tuesday, September 1, 2009

How to kill application runs in a specific port

If you are not able to run a application due to port erro,
Open a terminal

# netstat -tvlnp |grep lsnr

Output:
tcp 0 0.0.0.0:1800 23985/tnslsnr

This application runs in port no 1800 with process identifier 23985

# kill -9 23985

It will terminate the application

Friday, August 28, 2009

Removing Vlan and Interface from router

removing vlan access from interface

cisco#configure terminal
cisco(config)#interface fastethernet 0/3/2
cisco(config-if)#no switchport access vlan 30

Removing Vlan from database

cisco#vlan database
cisco(vlan)#no vlan 30
cisco(vlan)#exit

That's it.

Assigning VLAN to interface

Create new vlan in Vlan database

cisco#vlan database
cisco(vlan)#vlan 30
cisco(vlan)#exit
Assigning interface
cisco#configure terminal
cisco(config)#interface fastethernet 0/3/2
cisco(config-if)#switchport access vlan 30

That's it.