Sie sind auf Seite 1von 3

DD-WRT Tutorial 1: Static DHCP

Page 1 of 3

Login Reviews Tutorials

Register Tutorials & Training Wi-Fi Trends Resources


RECOMMENDED MOST POPULAR Search

DD-WRT Tutorial 1: Static DHCP

DD-WRT Tutorial 1: Static DHCP


By Aaron Weiss August 02, 2006 Open source router firmware does things the factory-installed stuff never offers. For example, you can give a computer the same IP address every time so you'll always have remote access.

1. 2. 3. 4. 5.

Aruba Brings Wi-Fi to Wall Plates Review: Meraki Enterprise Cloud Controller for APs Logitech Harmony Link Review Ask the Wifi Guru: Episode 42 Cisco Accelerates Wi-Fi with Aironet 3600

Related Articles Ask the Wi-Fi Guru How to: Build a Wireless Bridge Using DD-WRT, Part I Step-by-Step: Creating a Wireless Network - Part 1 Bricked! Or, How to Resurrect a Dead Linksys WRT54G The Open Source WRT54G Story Open Source Arrives for Municipal Networks By now, you probably know that upgrading the near-legendary Linksys WRT54G series routers with free, often opensource firmware is one of the best bargains going. Replacement firmware typically offers a plethora of advanced router and firewall features rarely found on sub-$100 hardware. DD-WRT, a free, open-source firmware coded and distributed by BrainSlayer, has emerged as one of the leading, most powerful and also user-friendly firmware replacements for the WRT54G series. DD-WRT is available for an increasingly wide range of routers besides the WRT54G, including models by Asus, Belkin, Buffalo Devices, Motorola and Siemens. There are caveats to upgrading your router, and the process is not without risk, so beware. We'll assume you've got DDWRT successfully installed, and forge ahead... In this first detailed look at new features you can get from open source router firmware, prepare to be dazzled by the capabilities of... the Dynamic Host Configuration Protocol (DHCP) . Static DHCP Out of the box, most routers and PCs are designed to manage their IP addresses automatically. The PC, whether wired or wireless, requests an IP address and related network parameters from the router using the DHCP protocol. The router plucks an unused address from its pool of available addresses, hands it to the client, and everyone is smiling. This process results in what is called a dynamic IP address every time the PC connects to the router (on boot-up, for example, or wireless association), it is assigned a new IP address. The router may assign the same address it assigned in the previous session. Or it may not. You dont know and, usually, you dont care. There are cases, though, when you want your client to receive a predictable, consistent IP address. The most common scenario is when you run a server on your client PC. Suppose you run a Web site on a PC at home, and you need access to this server from elsewhere work, school, your laptop in the park. Your router hides your server from the outside world, which is normally a good thing for security. This is why a higher power invented Port Forwarding . Your router will allow you to forward traffic destined for a specified port to a specific machine. In its simplest form, you can configure your router to forward incoming traffic destined for port 80 the default port number for Web traffic to the IP address of the PC running your Web server. What is your Web server PCs IP address? If it receives its address automatically from the router you dont know for sure. It could change, and your port forwarding would become unreliable. One solution is to manually assign your Web server its IP address and network parameters, rather than use DHCP. However, this may limit your ability to easily connect that machine to other networks a more likely problem for laptops. If your ISP changes name servers on occasion, this could also break your manual network configuration.

IT Is Going Mobile
Research firms suggest that mobile device sales will surpass PC sales by the end of the year, so there's no denying the impact of consumerization of IT. If tablets aren't on your corporate purchasing list, you may soon find yourself behind your biggest -- and suddenly more mobile -- competitors. Download this report and learn where you need to invest your mobile money.

http://www.wi-fiplanet.com/tutorials/article.php/3624251/DD-WRT-Tutorial-1-Static-DH...

7/11/2012

DD-WRT Tutorial 1: Static DHCP

Page 2 of 3

Ideally, if you continue using DHCP on your client yet can rely on always receiving the same IP address, youre having your cake and eating it, too. Which begs the question why would you have a cake if you werent going to eat it? Isnt that the purpose of cake? Step-By-Step Fortunately, DD-WRT makes it easy to create static DHCP addresses for your network. Combining the best of both worlds, a static DHCP address allows your clients to continue receiving their network parameters automatically, yet you know exactly which IP address will be assigned. Open a browser and connect to your routers administration page. The default address for DD-WRT is http://192.168.1.1, but may vary if youve reconfigured it. Go to the Setup/Basic Settings menu. The router may first ask you to log in with your administrator password. (The default is root/admin). Scroll down the page to Network Address Server Settings (DHCP).

What's Driving Mobile Device Refresh Rates?


In addition to refreshing workstations and servers, IT pros must now also plan lifecycle refreshes for laptops, tablets, smartphones and other mobile devices. From increased productivity to compliance to support costs, discover what factors are driving those decisions. Also, download this report and learn which mobile initiatives IT organizations are investing in most aggressively.

Make a note of the pool of addresses the router uses when assigning dynamic IPs. Here, we see a pool of 100 addresses, beginning at 192.168.0.100 and ending at 192.168.0.200. It will be important later that your static DHCP address assignments fall outside this pool. (If you make any changes here, be sure to save your settings.) Go to the page Administration/Services. Heres where the action is. Below the Static Leases heading, click the Add button to create a new DHCP entry field. Enter three values: the MAC address of your client machines network adapter, a host name for the machine, and the IP address you want it to be assigned. Choose any host name you like, such as webserver or gameserver. Choose an IP address which follows the same pattern as those in your DHCP address pool (in our example, 192.168.0.x). Choose a number for x which is outside the address pool seen in step 3 (in our example, 201).

You can find the MAC address for your network adapter in either Windows XP or Mac OS X with a few clicks. Windows XP Click Start/Settings/Control Panel/Network Connections and click the name of your network connection. Wired connections are typically named Local Area Connection, while wireless connections are called Wireless Connection. In the Status window, click Support, and in that window, click Details. Your MAC address is the series of hexadecimal pairs labeled Physical Address. Use colons rather than dashes to separate the pairs in the DD-WRT interface.

Mac OS X Go to the Dock/System Preferences/Network. Click the Ethernet tab. Your MAC address is labeled Ethernet ID.

With your MAC address, host name and chosen IP address entered into DD-WRT, be sure to click Save Settings at the bottom of the page. If you want to add another static DHCP entry, you must save your settings first, then click Add to create a new entry.

http://www.wi-fiplanet.com/tutorials/article.php/3624251/DD-WRT-Tutorial-1-Static-DH...

7/11/2012

DD-WRT Tutorial 1: Static DHCP

Page 3 of 3

If you like, add a port forwarding entry for your new static DHCP address. In our example, we set up a Web server on our client PC. Our Web server listens for traffic on the default port 80. But our ISP blocks incoming traffic to port 80, because they dont want us running Web servers (ours is for private personal use, we totally swear). Go to Applications & Gaming/Port Forwarding in the DD-WRT menu. Click Add to create a new forwarding entry. We enter an identifier into the Application field, in this case, webserver. The router will listen for traffic on port 8088, so that we can connect from outside without being blocked by the ISP. Our destination IP address is the static DHCP entry created in step 5, and our destination port is where our Web server is actually listening, port 80. Be sure to check Enable for this definition to take effect. And, of course, Save Settings.

You are now, as they say in the new Taco Bell ads which are vastly inferior to the ones with the talking Chihuahua, good to go. Even if you dont run Web, game or other servers on your local machines, you never know when a stable, predictable IP address will come in handy.

Add to del.icio.us |

DiggThis
0 Comments (click to add your comment) Comment and Contribute

Your name/nickname Subject (Optional) Comments

Your email

(Maximum characters: 1200). You have 1200

characters left.

Type the two words:

Perspective/Opinions

News

Security Devices

Home and Small Business Security Tools Software

Management Site Map

Controllers and Access Points

Copyright 2012 QuinStreet Inc. All Rights Reserved. Terms of Service | Licensing & Permissions | Privacy Policy About the IT Business Edge Network | Advertise

http://www.wi-fiplanet.com/tutorials/article.php/3624251/DD-WRT-Tutorial-1-Static-DH...

7/11/2012

Das könnte Ihnen auch gefallen