Mike Neir's Page[ignignokt][err]
Mike loves the feeling when he listens to a song he's heard a hundred times before and hears something new. (706 days ago)
Fun With Networking

Tuesday, January 23 2007, 12:21 PM

A few weeks ago, I picked up a couple old Cisco 2924XL switches from the MSU surplus store. It was my goal to use them to learn more about the inner workings of Cisco equipment, since our core network at work is comprised exclusively of Cisco equipment. I attempted this once before a few years back, but the switch model I purchased was too old and didn't support IOS - Cisco's Internet Operating System that runs on most of its modern switches/routers - so I wasn't able to achieve my goals. These switches do run IOS, albeit an old version.

Getting them configured really wasn't that hard. It seems that the knowledge that I gleaned from what I've done at work so far was enough to get the basic configuration in place. I ran into a few headaches with what I thought should work compared with what was actually possible, but that was due to a combination of the switch specs and the old IOS image. At work, we have things segregated into many VLANs, and the switch acts as a layer3 gateway for all machines that 'reside' in the VLANs provided by that switch. I was trying to duplicate that with my switches for practice, but no matter what I tried, I could only get one VLAN (VLAN1) to route an IP. I thought it was probably the old IOS image, so I tried to hit Cisco's site to grab a newer image. Unfortunately for me, Cisco's website sucks, and I wasted hours going in circles on their site before learning from someone else that you can't download Cisco software images without a support contract. It would have been nice to see that somewhere in the download area, but no, they'd rather send people in and endless loop of "failed" logins. Grrr.

I was able to pull a few strings and acquired the newest IOS image from a friend who has access to Cisco's software download site. I had the same difficulty after I upgraded the software image, but the error message I got from the newer IOS version proved helpful in isolating the cause. Those switches don't have the capability to run with more than one virtual MAC address, so only one VLAN can be routed with an IP at a time. Once I realized this, I took down the VLAN interface I didn't want to use, an configured the VLAN I did want to use, and everything was peachy. I'm thinking that the same technique would have worked with the old IOS image, but since I don't feel like downgrading, I won't know for sure.

With my new Cisco goodness in place, I was able to play with something I thought up a while back. I bought a few Linksys WRT54GL wireless routers earlier on in the summer, and flashed them with OpenWRT to get Linux on them in a form that I could manipulate. I thought it would be cool to set one of them up in a way that would mimic the networking configuration of my router machine, which has four ethernet interfaces for keeping various parts of my network segregated. Using VLANs, this was possible to replicate in the WRTs. The onboard switch can do VLAN tagging and trunking at a per-port level, so it's possible to replicate the multiple interfaces using seperate VLANs instead of seperate physical interfaces. I was able to replicate the networking for my setup after a good amount of trial and error, with one port allocated for each of the three internal subnets and one for the internet. That left one additional port, which i set up as a trunked port that could carry all VLANs to another VLAN-aware device. Too bad I didn't have any other VLAN-aware devices. After the initial success, I just let it sit.

Well, now I do have some VLAN-aware devices, so I've resumed my experimenting. The VLAN system I set up in the WRTs worked perfectly after I ws able to get over some internal problems in the OpenWRT networking scripts that kept me from using VLANs greater than 9. During some tinkering yesterday, I found that the WRTs can be set into monitor mode without affecting their capability as access points, which allows for the WRTs to function as Kismet drones at the same time as they're functioning as access points. In a corporate setting, this would be a great feature for the security staff. While providing wireless access for employees of the company, the security staff could use Kismet (or another utility) to "patrol" for people that shouldn't be entering the network. I don't have much use for it really, but it is kinda neat to see the various other wireless networks that are in range of my apartment.

Tags:


Comments

:: 01/23/2007, 1:13 pm :: Reply

I read this posting. I thought about this posting. I realized I have no clue what you are talking about.

Thanks for that.

Mike Neir :: 01/23/2007, 1:46 pm :: Reply

Hmm. Apparently my links to wikipedia didn't help.

You also don't seem to have a name.

Phil :: 01/23/2007, 5:59 pm :: Reply

Wow. Wireless access at work. What a concept. (sigh) It'll never happen at GM. Well.. If it does, I'll have been retired a few years. The IT department rolls out technology as soon as it is superceded.

Mike Neir :: 01/24/2007, 1:52 pm :: Reply

Well, they have to make sure the technology works right? Too bad they jump on the bandwagon well after it has stopped...

Matt :: 01/23/2007, 10:31 pm :: Reply

Check out Cisco's controller-based WLAN devices. The access points function as monitors as well, providing a great deal of smart networking. Access points will adjust power and channels, detect and block rogue access points, report coverage holes, and a wide array of other features. Pretty cool stuff.

Mike Neir :: 01/24/2007, 1:51 pm :: Reply

That does sound neat. I'm sure I could make my APs do that, with a lot of work. But, I'm not that motivated. ;)

Alex :: 01/24/2007, 12:35 am :: Reply

I love everything about the surplus I went today and came out with 23 things and only spent 9 bucks. most of it was free.

Mike Neir :: 01/24/2007, 1:51 pm :: Reply

Yah, surplus is great. I'm thinking I might try to get a bookshelf there or two, but I don't have any way to carry one.

Alex :: 01/28/2007, 9:24 pm :: Reply

I'll help you carry it, but you'd have to figure out a way to haul it.

..and also haul the stuff that I want.

sneezer :: 01/24/2007, 9:44 am :: Reply

i did the exact same configuration on my system but used an old Pong game married to a Ms Pac Man in my trunked subnet (outside the wrt but interfaced with a Linksys WRT 45 XL; not the GL - I hate the GL). it works perfectly!

Mike Neir :: 01/24/2007, 1:50 pm :: Reply

Well done sir. How are you networking your pinball machine?

AG :: 01/25/2007, 5:26 pm :: Reply

eh?


Add a comment


Related Reading - cisco  kismet  networking  openwrt  vlan  wrt54g  


RSS Feed | Comments RSS Feed | Valid HTML 4.01 | Valid CSS
Memcache: Hits: 40 Misses: 6 Updates: 6 Deletes: 0 LocalHits: 0 Time: 0.0119
MySQL: Selects: 8 Inserts: 0 Updates: 0 Deletes: 0 Time: 0.0016
Page Render Time: 0.2545 seconds