On GameSpot: Wii Fit tells 10-year-old she's fat

Configuring the Cisco 871W wireless router: SOHO setup

Tags: LANs, Wireless LANs, Wi-Fi, NETWORKING, Network technology, George Ou, SOHO, wireless router, Cisco 871W, wireless, WLAN, LAN, Cisco Systems Inc., router, network, VLAN, SSID, internal network, computer

  • Save
  • Print
  • Digg This
  • 9

Takeaway: Working with the Cisco 871W wireless router will help expand your knowledge of a broad range of Cisco devices. We're kicking off a series of tutorials based on this router with a look at how to set up an advanced SOHO configuration--and we're providing a companion template that generates configuration output.

The Cisco 871W router is a relatively low cost device ($500 to $700, depending on licensing options) that can perform the wide range of duties described in this earlier blog. We selected the Cisco 871W for this series of tutorials because it has massive utility in an affordable router and can offer many lessons that apply to a wide range of Cisco equipment. Just about anyone can purchase one or two of these routers to practice with in their IT department lab, and the device can be given to employees to separate their corporate extension in their home from their personal home network.

Advanced SOHO dual network architecture

In this tutorial, I will show you how to configure a Cisco 871W router in an advanced SOHO configuration that offers:

  • Stateful packet inspection firewall
  • Two virtual Wireless LANs (max 10)
  • Two virtual LANs bridged to the two wireless LANs
  • Both Wireless LANs configured for WPA security
  • One virtual LAN serving as a guest network with restricted access
  • DSL PPPoE client
  • DHCP server
  • Four-port VLAN-capable switch configured to support 2 separate networks

Figure A shows a logical diagram of the configuration. The orange represents the guest network and the green represents the internal network. The two wireless LANs are bridged to their respective VLANs using BVI (Bridge Virtual Interface) 10 and 20. The router will have port F0 configured for wired guest access and F1 through F3 configured for internal network access. Port F4 is the WAN interface configured to dial PPPoE to an ADSL modem. The orange guest wired or wireless networks will have full access to the Internet but no access to the green internal network. The internal network will have full access to the orange guest network and the Internet. The guest wireless LAN will have an SSID of GuestWLAN, and the internal wireless LAN will have an SSID of InternalWLAN. For now, the Cisco 871W is capable of broadcasting only one SSID, so GuestWLAN will be the only one broadcasting. Future firmware will fix this shortcoming. For anyone wondering, SSID hiding is a worthless security feature.

Figure A

Initial hardware setup

After you've removed the 871W from the box and plugged in the power adapter, plug the supplied console cable into a valid serial port on your computer. If you have a laptop that doesn't have a serial port, you will need a USB-to-serial adapter. For ideal testing purposes, you'll need a wireless LAN-capable laptop and a desktop computer.

Plug the desktop computer into F1 or FastEthernet port 1. (This is the second port from left in Figure B, since F0 is the first.) Most desktop computers have at least a COM1 port, so you can use that as the console configuration computer. Plug the RJ45 end of the console port into the right-most RJ45 port labeled "console."  If all you have is the laptop, you can use that to test the wired and wireless functionality.

Figure B

For more details on the hardware setup procedure, see the quick start guide from Cisco on the 850 and 870 series router. (This is actually a fairly decent hardware guide from Cisco.)

Wiping the default configuration and creating VLANs

The first thing I do with all the newer Cisco routers is wipe the default configuration on them. Old school routers didn't have any username and passwords assigned to them, but these new devices are different. You must first log in with username "cisco" and password "cisco."  The "c" in "cisco" may need to be capitalized on certain access points and routers, but most of the newer Cisco devices are like this. After you've logged in, you'll need to type the following commands:

  • enable
  • write erase
  • reload (confirm reboot)

Once the router is rebooted, you'll see a "router>" prompt and there will be no passwords required. Now you're starting with a clean slate. Note that for our particular lab exercise, you'll need to create two VLANs before you go into global configuration mode. You'll do that with the following commands:

  • enable
  • vlan data
  • vlan 10 name Internal-LAN
  • vlan 20 name Guest-LAN
  • exit

Once the VLANs are created, you'll be able to enter global configuration mode by typing the old "config t" command.

Introducing our new CLI configuration template

I've always thought that the Cisco configuration guides were too difficult to use, with their inline comments and hints, so I've created my own configuration template system in Microsoft Excel.  Thanks to our development blogger, Justin James, who wrote a quick replacement button that automatically generates a ready-to-use configuration output, we have a truly useful new tool for documenting and creating CLI configuration files. For this tutorial, I've created this Cisco 871W SOHO template, embedded with Justin's new rapid replace functionality.

How to use the CLI template for Cisco 871W

Once you've downloaded the template for this tutorial, it's easy to generate your own Cisco 871W configuration. All you need to do is fill out the yellow section shown in Figure C on the Variables sheet.

Figure C

Figure D shows the Reference sheet in the configuration template with substitute variable names in red fonts and enclosed in [brackets]. The Replace button will copy the contents of the Reference sheet to a new sheet called 871W (user-configurable in cell G5) with an auto-incrementing number behind it for each new configuration you create.

Figure D

Inserting the configuration into the 871W

Once the output is created, you can copy the Command column with your customized settings (starting below the "Command" label) and paste it into your console. Note that all the Excel formatting will be excluded from the paste command, which is exactly what we want. Some commands take longer than others to insert because the router has to think, so I would recommend that you do a small section at a time. The console is also known to drop certain statements if you paste too fast, so make sure the router takes every command.

You'll have to verify with the "show run" command.  When you're satisfied, be sure to issue the "write mem" command to commit all the changes permanently so that the settings will remain the next time you reboot the router.

Notice that on the Reference sheet, I labeled all the commands with their purpose. This is for reference, learning, and documentation purposes. It would be wise to look through the entire Reference sheet so you'll understand what most of the lines are doing.

The final Excel file is perfect for initial setup and permanent documentation. Anyone with any knowledge of Cisco devices should readily understand what's going on with this Excel template. The spreadsheet format help make Cisco CLI more readable and understandable.

You can also change the Reference sheet if you want to modify the template to suit your own purposes. For example, you may not want to force your guests to use WPA-PSK security instead of WEP. and you may even want to leave it wide open and offer a free hotspot. In future articles, we'll go over QoS options to restrict the amount of bandwidth the guest network can consume and to prioritize latency-sensitive applications, like VoIP and online gaming. We'll accompany those articles with an updated CLI template for you to download.

Test your multi-VLAN multi-WLAN router

Your desktop PC connected to port F1 should be on the internal LAN. You should be able to acquire an address in the internal network. If you left my IP scheme default, that should be an IP address of 192.168.1.100. You should be able to ping 192.168.1.1 and 192.168.2.1, which are the IP addresses of the BVI 10 and 20 interfaces.

Once the configuration is complete, you'll need to log in with the username and password you configured. If pinging doesn't work, check the IP address configuration on your BVI interfaces.You can't use telnet or SSH if you can't even ping the router, so you'll need to use the console to troubleshoot. You can troubleshoot IP configuration with the "show ip int brief" command, which will display a listing of all the interfaces in your Cisco 871W router, as shown in Figure E.

Figure E

You should also be able to ping something like techrepublic.com.com if you've entered a valid DNS server. If you can't ping any Web site that you know should work, try pinging your DNS server and see whether it's available. If that doesn't work, you'll need to troubleshoot and verify that your configuration is correct. A good thing to check is whether your Dialer1 interface has been assigned an IP address from your DSL provider yet. If this were a cable modem, it would simply be the FastEthernet4 interface configured in DHCP mode.

If you're able to ping everything mentioned above, test your wireless laptop by connecting to both wireless LANs. From the guest network, try to ping 192.168.1.1 and make sure it fails, to prove the Guest-ACL is working. The Guest-ACL can be modified to have exceptions if, for example, you want your guests to be able to print. The guest network should be able to get to everything on the Internet. If you still have problems, post your question in the article discussion and send me a private TechRepublic message.

  • Save
  • Print
  • Digg This
  • 9

Print/View all Posts Comments on this article

Configuring the Cisco 871W wireless router: SOHO setupJodyGilbert Techrepublic | 08/04/06
Limited experience with the 871Wschleprock@...  | 08/05/06
These commands will probably work on the 1811Wgeorgeou  | 08/05/06
Great ProductAnthony.V  | 08/07/06
FIOS Configurationamcclellan@...  | 04/25/07
FiosLwood  | 01/29/08
clarificationLwood  | 04/21/08
mac cloning no longer neededLwood  | 04/22/08
Can't add VLANgenesmini@...  | 08/09/06
You have the 851W or 871W?georgeou  | 08/09/06
871W Configurationgenesmini@...  | 08/09/06
Sounds like you have the Advanced security IOSgeorgeou  | 08/09/06
Bummer Daze...Amphitryon  | 08/09/06
You don't have to have VLANsgeorgeou  | 08/09/06
Getting Closergenesmini@...  | 08/09/06
Careful when you paste using consolegeorgeou  | 08/09/06
dhcp serverkylewa@...  | 08/10/06
How/where do I add a PPoE section to authenticate to my ISP?lukeprimm@...  | 12/16/06
It's already in theregeorgeou  | 01/16/07
Posting The Configcyberpsych1@...  | 03/14/07
You just highlight those cells and cut pastegeorgeou  | 03/14/07
Here is a possible solutiongeorgeou  | 08/11/06
thanks, 1 last problemkylewa@...  | 08/15/06
In correct IOSmichael.rosanbalm@...  | 08/30/06
Must UPGRADE to add VLANandres.pantoja@...  | 12/19/06
I have another article that works on 851/871 standard IOS with 10 WLAN VLANgeorgeou  | 12/19/06
Nice jobdamoy@...  | 01/17/07
Glad you liked itgeorgeou  | 01/18/07
Need some helpjnicita1970  | 11/05/07
DHCP ServiceAmphitryon  | 08/10/06
You're in luck, I have a new config for you!georgeou  | 08/11/06
Got It to Work!genesmini@...  | 08/13/06
Even without VLANs, you can still have multiple WLANsgeorgeou  | 08/14/06
How to Configure a Cisco Router Behind a Non-Cisco Cable Modemggraham2@...  | 10/01/06
This was a good start What's next in the SOHO setupggraham2@...  | 10/20/06
QoS is nextgeorgeou  | 10/20/06
QOS Auto or Manualggraham2@...  | 11/14/06
David Davis is doing bothgeorgeou  | 11/15/06
Allowing guest to have access only to the printer on Internal-WLANggraham2@...  | 01/09/07
No, just open a port to that printer from the guest networkgeorgeou  | 01/10/07
I got the following error Georgeggraham2@...  | 01/11/07
Sorry, typo. Try thisgeorgeou  | 01/11/07
Thanks, I'll try it once I get out of rommon modeggraham2@...  | 01/12/07
Yep that did the trick.ggraham2@...  | 01/15/07
See this article for HP JetDirect tricksgeorgeou  | 01/15/07
Will Intrusion Prevention System (IPS) be next in the tutorialggraham2@...  | 01/16/07
Never tried it on this modelgeorgeou  | 01/16/07
I've found a IPS module I'm not sure if it will work with this router.ggraham2@...  | 01/17/07
assigning multiple outside ports to single inside portjnicita1970  | 04/30/07
Ah good questiongeorgeou  | 04/30/07
IOS imagefox_iacmnf@...  | 05/13/07
Worked for us...michael.rosanbalm@...  | 05/15/07
it won't workmobius@...  | 05/21/07
Yes - I have this IOS on my 871wLwood  | 04/21/08
IP IOSron@...  | 05/22/08
Portforwarding, NAT, and ACL for OpenVPNggraham2@...  | 01/21/08
hiflashbigdeal@...  | 04/22/08
No PPOEPlist@...  | 05/22/08
15" Powerbook didn't connect to the 871wschleprock@...  | 08/04/06
Did you try the template?georgeou  | 08/04/06
I don't have access to the 871w nowschleprock@...  | 08/05/06
Template can easily be modified for other productsgeorgeou  | 08/05/06
...and if I add a Vonage VoIP phone?Amphitryon  | 08/08/06
Put VoIP on the Internal networkgeorgeou  | 08/08/06
Ports - Guest and InsideAmphitryon  | 08/08/06
Ports - Guest and InsideAmphitryon  | 08/08/06
Doh! Try this inspect command if needed.georgeou  | 08/08/06
VOIP on its own VLAN?ggraham2@...  | 09/06/06
Wireless QoS is trickygeorgeou  | 09/07/06
871w Cable Modem & DHCP on WLANsggraham2@...  | 08/24/06
I'll have to add a template for that, but try thisgeorgeou  | 08/25/06
It worked! Thanks! Can I specify my ISP DHCP Server and block all others?ggraham2@...  | 09/06/06
I have an updated template for next weekgeorgeou  | 09/07/06
Tunnel interfaces and Static IPssupport@...  | 09/08/06
IPSEC template is heregeorgeou  | 09/08/06
MAC address for cable modemslance.aubry@...  | 11/10/06
That's one way to do it. A simple reboot of the Cable modem is easiergeorgeou  | 11/10/06
ISP DHCP configjohn_45409@...  | 08/09/07
871w Cable Modem & Public static IP from ISPsergeb  | 03/17/08
Public Static IP, Cisco 871W and SDM GUIsupport@...  | 03/18/08
Fixed WAN IP Addresssupport@...  | 09/11/06
Will put DHCP and Static IP version out next weekgeorgeou  | 09/12/06
Will put DHCP and Static IP version out next weeksupport@...  | 05/22/07
DNS Servers for 871W DHCP Clientssupport@...  | 09/17/07
Configuring the Cisco 871W wireless router: SOHO setuplloyd@...  | 10/25/06
authenticate to ISP via PPoE???lukeprimm@...  | 12/16/06
You don't need to inject it, it's already theregeorgeou  | 12/16/06
The updated template has been fixedgeorgeou  | 12/16/06
VLAN's and bridges. . .Hantra  | 03/12/07
Wireless Router 871W Setupwilliam.farrell1@...  | 05/12/07
copy running-config startup-configmobius@...  | 05/21/07
Wr mem is more thoroughgeorgeou  | 05/21/07
871Wwilliam.farrell1@...  | 05/22/07
just copy the running config.service@...  | 12/06/07
simple config?mobius@...  | 05/21/07
Nevermind I guessmobius@...  | 05/22/07
871W for PPOA?christopherddecker@...  | 05/29/07
RE: Configure the Cisco 871W wireless router: SOHO setupedward.hamilton@...  | 06/11/07
RE: Configure the Cisco 871W wireless router: SOHO setupmichael.chandler@...  | 09/05/07
Questionsscroam@...  | 11/27/07
RE: Configure the Cisco 871W wireless router: SOHO setupgp1200x@...  | 01/02/08
solutiongp1200x@...  | 01/11/08
RE: Configure the Cisco 871W wireless router: SOHO setupmurali.adi@...  | 02/25/08
RE: Configure the Cisco 871W wireless router: SOHO setupflashbsd@...  | 02/26/08
RE: Configure the Cisco 871W wireless router: SOHO setupflashbsd@...  | 02/26/08
RE: Configure the Cisco 871W wireless router: SOHO setupchaileor@...  | 03/01/08
Server in the setup?mike.matonis@...  | 03/11/08
PPPOA access?adam4432@...  | 06/22/08

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET

advertisement
Click Here