Tuesday, January 20, 2015

Set IP to Windows 7 from command line

 netsh interface ip set address "connection name" static 192.168.0.101 255.255.255.0 192.168.0.1


NOTE: The default connection names are Local Area Connection for wired adapters and Wireless Network Connection for Wi-Fi adapters. The IP address order: client IP, subnet mask, and gateway IP.


Here’s how to configure the DNS addresses:


netsh interface ip add dns "connection name" 208.67.222.222


netsh interface ip add dns "connection name" 208.67.220.220 index=2


NOTE: Remember to replace the connection names and IP addresses.


 To dump the TCP/IP configuration:

    netsh -c interface dump > PATH_AND_FILENAME.txt


To import the TCP/IP configuration:

    netsh -f PATH_AND_FILENAME.txt
For setting dhcp



netsh interface ip set address "Local Area Connection" dhcp




Tuesday, January 13, 2015

Delete IOS from Flash, boot from new IOS ,TFTP


sh flash

delete flash

confirm y


reload


rommon 1> IP_ADDRESS=x.x.x.x
rommon 2> IP_SUBNET_MASK=x.x.x.x
rommon 3> DEFAULT_GATEWAY=x.x.x.x
rommon 4> TFTP_SERVER=x.x.x.x
rommon 5> TFTP_FILE=1841-i-mz.bin

type 
tftpdnld

and press enter

if everything right the ios will be copied to flash

then 

reset

and you are done

Pen Drive mounted as read only error

Recently I have come across this error in Ubuntu

using mount command find the mounted location

and then

mount -o remount,rw /mount/point