davidrickard.net

Random stuff, randomly updated.

Archive for May, 2007

A catalyst for madness

Thursday, May 31st, 2007

Catalyst 4006 SwitchI was playing with a six-year-old Cisco Catalyst 4006 switch today at work. The reason was that we have a small test network with servers and workstations which we use to, oddly enough, test things out. It used to all be on one big class-A subnet, but that doesn’t really resemble our real network in any way at all, which is an assortment of routed subnets and VLANs.

I’d used an array of different bits of kit to create a mini version of the real network – an old Cisco netbuilder router and some superstack switches (horribly slow), an old PC running FreeBSD and some mini switches, and most recently, a 48-port Cisco 3550 layer-3 switch. The 3550 was a loan from our comms team though, so it had to go back. I was instead given the 4006, which had for many years been used as a router for a handful of other subnets. It was now kicking about surplus to requirements as it had since been replaced with something newer.

I was told it ran both CatOS and IOS. ‘Not a problem’ I thought. It had a layer-3 routing blade (4232), so it was capable of routing. The routing blade ran IOS, so I just thought it’d be a case of configuring that and leaving CatOS alone.

Wrong!

As it turns out, as it is a ‘big’ chassis switch, CatOS takes care of all the switch ports, and VLANs, whilst IOS looks after the routing. I fiddled about with it for ages and couldn’t figure out what to do with it, until I found this incredibly handy guide.

My experience with CatOS was basically zero. All I knew, was it was different! With the 3550 switch, I had basically done the following things:

  • Add VLANs
  • Set IPs for VLANs
  • Enable router rip
  • Associate VLANs with ports

And that’s about it! With CatOS and IOS, it’s a little more complicated:

  • CatOS commands:
  • Add VLANs
  • Set trunking
  • Associate VLANs with ports
  • IOS Commands:
  • Create Port Channel interface
  • Set IPs for Port Channel interfaces
  • Enable router rip

Quite a bit more to do there! The more the dug into it, the more it made sense. Firstly, the backplane is treated like virtual gigabit ports. I assumed the backplane was ‘magic’. Plug in a blade, and suddenly your switch/router sprouted some extra ports. Whilst that’s true of the port-only blades, it’s not true of the layer-3 routing blade. So basically you have two logical devices (a router and switch) inside one big physical one. That confused me for a while!

It took me a while to work out why the layer-3 blade, which had two Gbics, and 36 switch ports, showed four gigabit ports when I did ‘show interfaces’. The reason is that ports three and four are ‘virtual’. They are the ‘ports’ plugged into the blackplane. Once I twigged that, it made perfect sense!

So now it was all configured, as per the instructions, it still didn’t work. After more fiddling, I remembered that IOS has an annoying quirk (I think anyway) whereby if there’s nothing plugged into any of the VLAN ports, it shuts down the VLAN. So as I only had something plugged into one of the ports, my pings would return with ‘destination host unreachable’. Once I plugged something pingable (a printer) into one of the other VLAN ports, it all sprang to life. I was super pleased!

My final crowning glory for it was to set the ip helper for one of the VLANs so that DHCP and PXE would work, and it was all working perfectly. It performs nicely now, so I’m pleased. For the record, the Cisco guide is a little confused. It says about plugging the routing blade into slot 2, which is how my 4006 was configured. All the examples and other info, refers to the blade as being in slot 3! The end result being that where it says something like “set trunk 3/1 nonegotiate dot1q 1-1005″ it should say “set trunk 2/1 nonegotiate dot1q 1-1005″. Not a major thing, and you’d hope whoever is following the instructions would spot it, but it threw me for a moment!.

Cherry Ghost

Tuesday, May 29th, 2007

I heard the song Mathematics some time ago, by a relatively new band called Cherry Ghost. It stuck in my head as soon as I heard it – a symphony of twangy guitars, soaring vocals, strings and other sounds. Full of many things I love to hear in a song really! I duly downloaded the single from iTunes and listened to it quite a few times since downloading it. On my drive home today, Chris Evans played a new Cherry Ghost song on Radio 2 (I didn’t catch the title) but I was rather pleased to hear that that song also sounded pretty good! So I’m now eagerly awaiting the album to turn up. Hopefully they’ll be a band with some staying power.

Here it comes!

Sunday, May 27th, 2007

http://www.youtube.com/watch?v=6NScqmL5EQY

From a TV show called Mega Moves (or Monster Moves, Huge Moves or Impossible Moves, depending on where you are). A church was being moved in Iowa, and followed for the TV show. The producers decided to do something different, and did this.So cool!Article about it here too.

For the record, I tried posting the video on this page, but it screwed up the layouts. Something else to fix then!

With hands that do dishes as soft as this Audio Scrobbler

Tuesday, May 22nd, 2007

Yeah, I use Last.fm. I’ve had an account for quite some time now, as I signed up to Audioscrobbler a long time ago. I think I was still using Winamp at the time. Last.fm and Audioscrobbler merged, and the accounts went with it.

I was using Mog for a little while, but I got bored of it and didn’t reinstall the plugin after a rebuild. People have been using Last.fm more and more, and not one to miss a 2.0 fad, I had to get back into it.

The default Last.fm scrobbler plugin is pretty good, and it works well, but one thing it won’t do is sync songs from my iPod. So any songs I listen to on the iPod don’t count towards my Last.fm stats and info. Obviously, this is a total injustice, so something had to be done about it!

After a little digging, I found a few methods of doing it, but most were manual. I really didn’t want to have to run a script before syncing (what with being lazy and all), so instead I managed to find iSproggler.

The nice thing about iSproggler is that it sits quietly in the background, watching iTunes. If I play a song, it gets scrobbled. Nothing  ground breaking there, but it will also watch any iPod syncs and pull the play status off the iPod and scrobble that too.

A couple of caveats with it though. Firstly, it’s a little unstable. It doesn’t see to like scrobbling and syncing the iPod at the same time. I frequently remember to sync whilst listening to music, and that crashed iTunes. Not a major problem, as I can just try and remember to sync when I open iTunes, THEN start playing.

The second problem is that it uses iTunes scripting interface, but seems to hold it open all the time. This means when I  try to quit iTunes I’m informed something is using iTunes and would I like to wait. A minor annoyance, but I’m sure something that will be fixed in a future version.

Still, useful little tool!

Change is good

Friday, May 18th, 2007

I’ve been changing some things (as you’ve probably already noticed). I really do love how easy it is to slap bits of WordPress around and make it to what you want!

I think it looks quite nice though. It’s all different. And yes, that is me up there.

Running on Air

Wednesday, May 16th, 2007

Here’s an interesting article about a Chevrolet concept car which runs on Hydrogen power. I think the most impressive thing is that Chevrolet are happy to let the journalists try it, but they admit it’s still not ready, by virtue of the fact there’s a technician in each car watching all the vitals. Also, how often do the company bigwigs come along for the drive?

I quite like the styling of the car too, which is odd for an American car design. Personally I think it’s got rather European styling, and it’s a fairly compact vehicle.

I really do hope the next car I buy is a fuel-cell car. Having only just changed cars, I won’t be changing again for probably at least five years, so they’ve got time to sort it out and get something ready. Hopefully a Ford too!