MonthMay 2011

Cisco iOS routing

Making a static route on cisco iOS is rather easy!

With static routes you can tell your router (or any other network device) where to route the network traffic for a specified network to. This can be an Interface or IP address. The command looks like this:

iOS(config)# ip route <IP/network> <netmask> <gateway/interface>

So, if you know that network 10.10.0.0/16 is behind router 192.168.1.1 you’d do:

iOS(config)# ip route 10.10.0.0 255.255.0.0 192.168.1.1

If you want to add a default route, specify a 0.0.0.0/0 network:

iOS(config)# ip route 0.0.0.0 0.0.0.0 192.168.1.1

And, last but not least, use a exit interface: (192.168.1.2 is directly connected to FE1)

iOS(config)# ip route 192.168.1.2 255.255.255.255 FE1

And at the end, you probably want to have a look at what you’ve done:

iOS(config)# show ip route static

or more specific, “grep” for a route or gateway:

iOS(config)# show ip route static | inc 192.168.1.1

As inc stands for include, see this post.

Reset Windows Administrator Password

This should work with Windows Vista, 7, 2003 and 2008, maybe more. I personally tested it with 2008 R2 Standard only.

To reset a Windows Admin password, you need the following things:

  • Physical access to the Server
  • A Windows installation boot media

If you have it all, continue with this:

  • insert boot media and reboot (from media)
  • jump through the menu so that you get a recovery console at the end
  • find the original installations C:\ drive and change to it (original C:\ drive can be D:\ or any other letter when booted from recovery/install media)
  • then:
cd Windows\System32\
copy sethc.exe C:\ <-- remember: C:\ could be D:\ now!!
copy /y cmd.exe sethc.exe
exit
  • reboot your box
  • on login screen, press shift-key five times
  • a command window should show up
  • maybe you have to press Alt+Tab until the new window has the focus
  • type:
net user administrator <new password>  <-- while <new password> is  actually replaced by your new password :)
exit
  • login with your new password

© 2017 netmess

Theme by Anders NorenUp ↑