That’s one cool virus
design, gadgets, ict / computers August 11th, 2008
Absolutely brilliant:
Absolutely brilliant:
If your switching infrastructure needs something bigger than a standalone LAN switch but not quite as big (and expensive) as a modular chassis, you might want to consider stacking your switches. Cisco offers their StackWise feature on the Cisco Catalyst 3750 series switches, and StackWise Plus on Catalyst 3750-E series.
What StackWise basically does is build one big switch by intelligently joining several individual switches together (with a maximum of nice switches total). The switches are united into a single logical unit using special stack interconnect cables that create a bidirectional closed-loop path. The bidirectional path acts as a switch fabric for all the connected switches, where network topology and routing information is updated continuously through the stack. All stack members have full access to the stack interconnect bandwidth (32 Gb).
The stack is managed as a single unit by a master switch, which is elected from one of the stack member switches. Any stack member switch can become master, and election is done my one of these methods:
When one master switch becomes inactive and while a new master is elected, the stack continues to function.
To build StackWise connections you need (at least two) of either of these cables:
The reason you need at least two cables (or more precisely: X + 1, where X is the number of switches in the stack) is that the stacking cables must form a ring, as the connections are bidirectional, and without the ring a failure of one of the cables would break the stack with all manner of nasty things happening to your network. In a correct configuration a stack cable failure will halve the capacity but the stack continues functioning, while after the failed cable starts functioning again full capacity is automatically restored.
The main differences between StackWise (supported on 3750 and 3750-E series) and StackWise plus (only supported on 3750-E series) are:
You can build a stack consisting of a mix of 3750 and 3750-E switches, in that case only StackWise features are available with the exception of the local switching, the 3750-E’s will still do that.
All in all the StackWise feature is quite nice. Just as with RAID arrays you can build a resilient and easy to manage system by using relatively inexpensive devices. Management is almost as easy as managing a single switch, and most of the features that make StackWise worthwhile and in some respects even great are automatic and do their thing quietly and without fuss. Good stuff.
Gizmodo (my daily dose of gadget envy) has a great overview with explanations on use of the cable types in use attached to the average PC, media center or home cinema center. Get it straigh once and for all in one great list:
Giz Explains: An Illustrated Guide to Every Stupid Cable You Need
As a professional user of VMware’s Virtual Infrastructure 3 (and thus ESX Server 3, which is the backbone of the VI3 suite) I personally think VMware is the leader in virtualisation right now. But as virtualisation, server consolidation through virtualisation and “Green IT” are hot focus points in the industry at the moment, Microsoft, Citrix and to a lesser extent Parallels are pushing hard to gain market share. Microsoft has released Windows Server 2008 with Hyper-V and Citrix is working hard to get their XenServer in there.
VMware had already made their Windows-based VMware Server (formerly GSX Server) free, but last week has done the same with ESX Server 3i. The 3i edition can do everything their flagship product ESX Server 3 can, it just lacks all the frills on the local server (such as local console-based management tools etc.), reducing it to the base hypervisor core which weighs in at a beautifully small 32 MB. They can do this because the management of the server does not need to reside on the server itself: you can use the VMware Infrastructure Client to manage it remotely or join the ESX 3i server in your Virtual Infrastructure 3 environment, handing over management to your VirtualCenter server.
So, if you’re looking for an easy and quickly to deploy virtualisation product, look no further. You can get all the power of ESX Server 3 for nothing by downloading and registering for an ESX3i license for free. Absolute killer.
I think this is a truly smart move by VMware: now they have a free product available in both branches of vrtualisation products types, both OS-based and hypervisor-based (i.e. bare-metal). Sweet.
As I’ve been studying (well…) for the VCP (VMware Certified Professional) exam over the past days, and here’s my take on getting ready for the exam:
Try to avoid trusting the Testkings, Actualtests etc. you find online. VMware shuffles a lot of the questions often, and are well-known for asking stuff stright out of the manuals (which don’t feature heavily in the course). It’s okay to use the tests as exactly that: practice, but don’t let the be your only preparation.
Yes, this is a glitzy marketing video, and yes, the product itself will probably cost an arm, a leg and selling your soul to the devil, but still I’d quite like to have this and work with it. Of course, that would mean I’d need to shave more often before going to work…
Full product info here @ Cisco.
Thureon have released Armarac, a wall-mounted zero footprint mini rack that can hold several 19″ 1U or 2U servers or a wiring closet. The small size is made possible by using VertiBlade, which basically means mounting the equipment vertically. And to top it off it looks really, really great. So great in fact that it’s won a Silver Award at this year’s IDEA awards (International Design Excellence Awards). Designed by Australian firm 4design for Thureon and available in four colours (so far), this is a stunning piece of equipment:
I can actually see this thing taking off, completely replacing the boring old 10U or 21U mini-racks, especially for branch offices or distributed locations. In fact, I would happily use this anywhere, even at home.
Excellent piece of kit, I’m looking forward to getting one ![]()
When building high availability networks or systems the three golden rules are:
When coupling server to the network I myself quite like using EtherChannel. EtherChannel allows multiple physical Ethernet links to combine into one logical channel, which allows the links in the channel to share traffic load, as well as redundancy in the event that one or more links in the channel fail. So you have at least two cables linking a server to a switch, and with some intelligence in setting up the link you both double the bandwidth available to that server and make sure that a dead cable doesn’t leave your server dead in the water and you racing to the data center.
As a big friend of Cisco equipment I’ll use a Cisco switch to show the configuration at the switch end, although many other managed switches from other brands do support the EtherChannel standards as well. Of course the server (or in fact the network card) also needs to support the configuration, I’ll be using an HP ProLiant server today with an HP Dual Port ProLiant Network Adapter (again, other brands of course also support this configuration).
Another note: All commands used below are Cisco IOS commands. if you’re using a switch running CatOS please scroll to the end of this article for a short recap of the used commands for CatOS.
First you’ll need to check if your switch supports EtherChannel by using the show command on one of the ports you’d like to use, and look for the ‘Channel’ key word:
asp-lsw-01#show interface Gi1/5 capabilities
GigabitEthernet1/5
Model: WS-C4948-RJ-45
Type: 10/100/1000-TX
Speed: 10,100,1000,auto
Duplex: half,full,auto
Auto-MDIX: no
Trunk encap. type: 802.1Q,ISL
Trunk mode: on,off,desirable,nonegotiate
Channel: yes
Broadcast suppression: percentage(0-100), hw
Flowcontrol: rx-(off,on,desired),tx-(off,on,desired)
VLAN Membership: static, dynamic
Fast Start: yes
CoS rewrite: yes
ToS rewrite: yes
Inline power: no
SPAN: source/destination
UDLD: yes
Link Debounce: no
Link Debounce Time: no
Port Security: yes
Dot1x: yes
Maximum MTU: 9198 bytes (Jumbo Frames)
Multiple Media Types: no
Diagnostic Monitoring: N/A
Queuing: rx-(N/A), tx-(1p3q1t, Sharing/Shaping)
asp-lsw-01#
Hooray, my switch understands EtherChannels. To check the capabilities of your network card you’ll have to refer to the manufacturer’s information I’m afraid.
As Cisco puts it:
The EtherChannel should start on a single device and end on another single device. The device can be a switch, a switch stack, a workstation, or a server.
- Within a single switch chassis, the EtherChannel can start or end on different modules. This setup is applicable for Cisco Catalyst 4000/4500/6000/6500 switches.
- Within a single switch stack, the EtherChannel can start or end on different stack members.
Do note that CatOS-based Cisco switches do have stricter requirements on EtherChannels, basically you can only create EtherChannels on adjoining odd/even pairs, otherwise the switch will not accept your port selections.
Rule of thumb on cabling: never ever connect a cable to a port on your network without configuring it first! Especially connecting multiple cables to the same end device can produce some very unexpected and nasty results on your network as for example STP goes haywire on ill-configured ports and disables entire trees of switches on your LAN. Connect the cables only after finishing your configuration.
EtherChannel ports can use two protocols for EtherChannel negotiation: either the Cisco-proprietary PAgP or LACP (IEEE 802.3ad). I generally prefer using accepted cross-brand standards (see HA golden rule 3 above) , so we’ll use LACP here as well. When setting an EtherChannel mode in a Cisco switch, your choices are ‘on’, ‘off’, ‘active’, ‘passive’, ‘desirable’ or ‘auto’. Each mode setting forces a particular negotiation protocol and behaviour as such:
| Mode | Negotiation | Operation |
| on | None | Enables EtherChannel, does not negotiate |
| off | None | Disables EtherChannel |
| active | LACP | Initiates negotiation to enable EtherChannel |
| passive | LACP | Responds to received negotiation requests |
| desirable | PAgP | Initiates negotiation to enable EtherChannel |
| auto | PAgP | Responds to received negotiation requests |
I shall not bore you with the pros and cons of using negotiation vs. fixed configuration, you will have to decide for yourself here whether you’ll use on or active mode. In this example I’ll be using active mode.
As an EtherChannel uses multiple ports, you will have to repeat these steps for all ports you wish to couple in this channel.
1. Set the port to switchport mode (optional, only necessary on L2/L3 switches):
asp-lsw-01(config)#int Gi1/5 asp-lsw-01(config-if)#switchport
2. If you’re using VLANs, set the port to access mode for the correct VLAN (I’m using VLAN 2 in this example):
asp-lsw-01(config-if)#switchport access vlan 2 asp-lsw-01(config-if)#switchport mode access
3. As this ports connects to a server directly (as opposed to a part of the network infrastructure such as another switch) you can enable portfast, thus shortening the time the port takes to become active. Never ever enable portfast on ports connected to other switches etc.
asp-lsw-01(config-if)#spanning-tree portfast %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION
%Portfast has been configured on GigabitEthernet1/5 but will only have effect when the interface is in a non-trunking mode.
4. Configure the port for EtherChannel using the mode you chose earlier. Make sure you use an unused channel group number.
asp-lsw-01(config-if)#channel-group 1 mode active Creating a port-channel interface Port-channel 1
This concludes the configuration of the switch port (don’t forget to perform these steps on all ports that have to be linked in the EtherChannel!).
As we’re using an HP ProLiant server we can configure the EtherChannel using the HP Network Configuration Utility. Other brands and types will have their own drivers and software to get this done. One thing to keep in mind is that the NIC software may not call the setup “EtherChannel” but may use other terms like “Teaming” (which is what HP calls it).
1. Start the HP Network Configuration Utility (from the task bar of the Start menu):

2. Select both listed NICs and click the ‘Team’ button. This will immediately create the team:

3. Select the team and click the ‘Properties’ button:

4. Pick the appropriate Team Type Selection, in our case “802.3ad” (which is the IEEE standard number for LACP):

5. Choose the Transmit Load Balancing Method from the next drop-down list, and click ‘Ok’ after you’ve made your selection.
6. Apply the configuration, after which the server will want to reboot. After the reboot, go back to the HP Network Configuration Utility to check that the Teaming is functioning as expected (i.e.: showing a green icon).
If all went well you should now have a new network adapter in your Windows network configuration. This is the adapter you will use to configure the network from now on (i.e.: IP address, file and printer sharing, etc.).
Now that you have an EtherChannel link to your switch, ponder in this: what if the switch fails? You would in fact still lose connectivity to the server. Yowsa. Remember HA golden rule number 1: No single points of failure. You could actually create two EtherChannels (so using four network cables in total), each to a separate but interconnected switch, thus ensuring that even a switch failure wouldn’t kill the traffic to your server. If both switches are configured properly STP (Spanning Tree Protocol) will disable one of the EtherChannels while the primary is active, but will fail over to the second link if the first one dies.
How far are you willing to go for HA?
If your Cisco switch happens to be running CatOS, the EtherChannel modes and the commands to configure the switch ports are somewhat different. The modes are:
| Mode | Operation |
| on | Enables EtherChannel, does not negotiate |
| off | Disables EtherChannel |
| desirable | Initiates negotiation to enable EtherChannel |
| auto | Responds to received negotiation requests |
Using the same example as before the commands on CatOS would be:
1. assign the ports to the correct VLAN (VLAN 2 in this example, being set on ports 5/1 and 5/2 (as CatOS works with port sets)):
old-sw-01 (enable)set vlan 2 5/1-2 old-sw-01 (enable)set trunk 5/1-2 off
2. Enable portfast (optional):
old-sw-01 (enable)set spantree portfast 5/1-2 enable
3. Enable EtherChannel on the port set:
old-sw-01 (enable)set port channel 5/1-2 mode on
4. Set the load distribution method:
old-sw-01 (enable)set port channel all distribution mac source
This concludes the configuration of the switch ports, as you can see you don’t need to repeat these steps on CatOS as you’ve just configured both ports in the set in one go.
As a long, long, long time user of Bind (and quite frankly not being the only one by far) I’m afraid I’m losing faith. Yes, Bind still does what it does (which is: being a kickass name server or DNS) and does it well,but today a colleague introduced me to PowerDNS. Whoa!
Why I like it? Well, aside from being a Dutch product (yay!), and of course FOSS, it has a staggering amount of back-end possibilities. A list, you say? Here goes:
Holy crap, that realy is a bloody long list. And it’s fast and powerful, does all you want from it (i.e.: answer DNS queries) and does is well. It’s very simple to set up, runs like a charm, easy.
I think I’m in love.
I’m running a pretty friendly little (LAMP) server here, hosting domains, email and web sites for friends and my own little side projects. Some sites are straight-up HTML and some are dynamic PHP sites, running WordPress or Joomla.
Last week I noticed a major dip in the server’s performance, which got worse and worse nearing the weekend. A quick scan revealed that my Apache processes were taking up around 90 - 95% of the CPU capacity with no real direct sign of the offending site. It took my 30 minutes to write and run a script that disabled the hosted sites one by one and then checked the CPU results. The ‘culprit’ appeared to be moqub.com, a (Dutch) blog run my a friend of mine with a steady following of readers.
As I had recently upgraded her WordPress to version 2.5 my first suspicion was that the new software was messing up my server…but then again my own site also runs WordPress 2.5, and if I put some stress on this blog the CPU was still quietly ticking over, not stressing out as with her site. But still…her WordPress was the result of upgrade upon upgrade, each version having been added on to with lots of plugins, so I just couldn’t be sure. I set up a fresh site on the server, did a clean WordPress 2.5 install, imported Moqub’s posts, comment and links, added the theme (after verifying its 2.5 compatibility) and diverted the visitors to the new site. Hey presto, the CPU was back up to 90% again, even when I disabled all customisations and the extra theme. Yikes.
As I now knew that the problem was not with WordPress itself, I started digging around in the logs. I found that there was an extraordinary amount of requests from a single IP address, identifying itself as a “Microsoft Search Bot 4.0″. Well, that should be easy to fix: I built a custom robots.txt that should have shushed all robot traffic except for GoogleBot, but to no avail. The bot never even tried to read the text file, it just went straight for the content, running several threads at once at high speed and thus maxing out the CPU.
A little research showed the IP address belonged to the Provincial Central Library in Drenthe (a province in the east of The Netherlands). This was no coincidence as Moqub writes about libraries and the use of information systems in them. Still, as their robot misbehaved I had no alternative but to completely block the IP address the robot was originating from. Ahh…peace and quiet on the server at last.
Now the question bugs me: why do robots still misbehave and completely ignore the robots.txt file, accepted (as far as I know) as the de facto standard in blocking or guiding robot traffic? And this was no home-brew, this was a Microsoft robot. Am I just being silly and naive in expecting “professional” software to behave according to the rules?
The lesson for me here was that badly run scripts can really mess up your server, especially if they decide to dig in to dynamically generated pages. And there really is not a whole lot you can do about it if they decide to completely ignore the standards in place.