HOEI

Change XP IP from Command Line

March 23rd, 2009

Here are a few tips on how to change your Network Interface card IP address setting from the command line. Why? Well, as a network security engineer there can be a number of reasons that require switching between network segments many time in a day. I might have to move my laptop off into a DMZ to verify connectivity after making Firewall changes. Most of these segments were not running a DHCP server and required that I manually set the IP, Default Gateway, subnet mask, and sometime the DNS settings.  So running a ipconfig release and renew was not going to do it.  Then I might have to switch back to a segment running DHCP.  I was often running from the command line anyway to execute ping and tracert. I also use SSH from the Windows command line to access routers, switches, and firewalls so it just made sense to switch IP settings from the commandline.  Here is how I do it:

  1. Create folder a in My Documents called “ip”
  2. Inside of that folder create as many batch files as required to meet your needs

Example Batch (.bat) file used to switch from static IP back to DHCP.

netsh interface ip set address name=”Local Area Connection” static 192.168.10.200 255.255.255.0 192.168.10.2 1
netsh interface ip set dns “Local Area Connection” static 192.168.16.102 primary

Note: this file only contains two lines (each beginning with “netsh interface”)

Each of your Ethernet adapters will be listed as “Ether adapter [some name]:” The portion between the [brackets] is what you enter between the “quotes” after name=.

Below is an example of how to set a static IP address, subnet mask, default gateway, and DNS.

netsh interface ip set address name=”Local Area Connection” static 192.168.10.200 255.255.255.0 192.168.10.2 1
netsh interface ip set dns “Local Area Connection” static 192.168.10.102 prima
ry

I create as many of these as needed and name the bat files something that makes sense to me for the job I am on. My bat files might be named;

  • DHCP.bat
  • homewireless.bat
  • siteFWinside.bat
  • siteFWoutside.bat
  • siteDMZ1.bat
  • siteDMZ2.bat

If you put your ip folder in your path then you can execute the bat files from any directory on the command line.  You can also put bat files on your desktop and create keyboard shortcuts as well. I put a copy of my DHCP.bat on my desktop and assign it a Ctrl+Alt+D keyword shortcut.

iPhone to offers “NEW” features

March 18th, 2009

Apple announced this week an advanced preview of some new features that will appear on iPhone 3.0.  These “new” features include the ability to search your iPhone as well as cut-copy-and-paste.  These features which have been found standard on many other PDAs for years will arrive on iPhone later this year.

It is simply amazing how well iPhone has done while missing some very simply features.  Marketing is a powerful tool and the Apple guys have it figured out. There are and have been PDAs on the market for years that do most of the things iPhone advertises plus simple things like cut/paste across applications, searching, sending/receiving SMS (with pictures).

I have been an avid Palm user for years.  I started on the Handspring Visor Deluxe about ten years ago and have progressed through the Treo 650 and 700p in recent years.  Today I use a Palm Centro and love it.  Cut-and-Paste has been a stand a feature on Palm products for years, long before iPhone was conceived.  Palm has also for years offered as standard features many of the cool things iPhone offers like phone, sync with Exchange, camera, video, MP3 player, games, SMS, plus access to a ton of custom applications.

While I will admit that the built-in wifi feature is on iPhone is neat, it seems to breed illegal wifi use.  I know that some people see the use of open wifi as a murky subject, but it is not.  If you do not have permission from the wifi access point owner then you are stealing.  The iPhone is to open wifi as a slim jim or lock pick are to a car doors.   Just because you carry something in your pocket that makes it easy to get in does not mean you have the legal right to do so.  Yes, you can do the same thing with a wifi enabled laptop, but the iPhone makes it way more convenient.  Enough of that soapbox.

The bottom line is that the folks at Apple are the masters of selling an Eskimo and ice cube. In other words, they have mastered the art of selling people something they don’t necessarily “need”, but will certainly help make them more cool. ;-)

Help me select a wireless router

March 2nd, 2009

I am having problems with my home wireless switch/router.  It causes me and my wife to regularly loose Internet connectivity on both wireless and hardwired connections.  A restart of the Linksys WRK54G device immediately solves the problems for all connections without taking any action on any of the clients. So that is the reason why I am searching for a new device.

What I am looking for is a wireless/hardwired router/switch combination.  I like the features of the WRK54G, but it has seen better days as mentioned above.  I am only equipped with 802.11g cards right now and have no desire to upgrade to 802.11n.  Here are a few things that I really like and use on the WRK54G and want to have on my new device:

- At least 4 hardwired 100mb ports
- dynamic DNS interoperaility
- Advanced routing (able to add other IP subnets on private side)
- Lots of wireless security options with some backwards compatability
- MAC filtering
- Port forwarding
- 10/100 uplink to telco modem
- VPN PassThrough

Any advice on new device options would be greatly appreciated.

Feed Icon
Subscribe to our feed.

TwitterCounter for @TheOzz

What's a feed?

Enter your email address:

Delivered by FeedBurner



Blogging Blogs - BlogCatalog Blog Directory