Tuesday, September 14, 2010

Release and Renew

I was in mt Network Communications class last week and a student had no internet connection because the Ethernet cable was unplugged.  She then plugged the cable back into the jack to no avail.  I took a look at it and performed the following steps and all was fine:

SOLUTION:
  • Go to the start menu and click on Run...
  • type cmd and at the DOS prompt, type ipconfig /release
  • Now type ipconfig /renew
All was fine

Update: for Macs and other Linux based operating systems. the command is:


sudo ifconfig en1 down
sudo ifconfig en1 up

For the wired interface, replace en1 with en0.

You can also create an alias of these two commands by visiting Terminal and input this command:

alias renew="sudo ipconfig set en0 BOOTP && sudo ipconfig set en0 DHCP"

So then you just have one command called renew that will release and renew your DHCP

For a graphical way of doing this:

Open System Preferences
Click on Network
Click on Advanced...
Click on the TCP/IP tab in the bar across the top
Finally, click on Renew DHCP Lease

No comments:

Post a Comment