Posts tagged with internet

cheap but useful trick with alias network interface

November 4th, 2006

How many times did you have to change the IP address of your workstation to match the IP subnet of that new network device you needed to configure, maybe just to change its address from the default?

How many times did you need to check something on the Internet during the process, and you had to switch addresses back and forth, maybe many times? Worse still, did you like all your TCP connections such as your umpteen IM logins, ssh sessions, VPN tunnels and the like, to be shut down on the occasion?

If you do my job, it happens a lot of times. But never before this morning had occurred to me that there is a smarter way to do that, if you’re under some sort of un*x operating system like GNU/Linux(*).

Suppose you have a device on 192.168.1.1/24 (if you don’t know about CIDR, this may be a good time to learn something about it) and your workstation’s interface, let’s say eth0, is on a different IP subnet (but of course plugged into the same Ethernet network). You can do like this (as the root user):

# ifconfig eth0:0 192.168.1.100 netmask 255.255.255.0

As you may have guessed, this command adds an alias interface for eth0 called eth0:0, and assigns it the specified IP address. You can use this interface in the same ways you would use eth0, e.g. using your web browser to reach the new device’s web-based configuration interface at http://192.168.1.1 or whatever else.

The good thing is that this does not affect your main interface and the associated routing, so your existing connections don’t get killed.

Once you’re done, you can remove the alias interface:

# ifconfig eth0:0 down

and you’re back to your routine.

A couple of notes to the tech-savvy:

  • (*) You can add multiple IP addresses on Windows also (from Windows 98 on, I believe). Just add a new IP address to the interface. I don’t know (nor care about) the details, though.
  • Adding the alias interface automagically adds a route for the new interface’s IP subnet, but of course does not change your default route. If your new device is a router and you want to reach networks behind it, you’ll need to add specific routes to your system.
  • You may unwillingly expose services running on your workstation which are listening on all interfaces (TCP *:port)

the importance of being Firefox

January 5th, 2006

I left a comment on a story on digg about Firefox being close to 10% adoption:

1 in 10 is still not much. But look at it this way. IE was MS’s move to get hold of the Internet as a platform. Not only they have not succeeded, thank the Lord, recently they also seem to be lagging. We all can see how the latest trends in web development focus on open standards, as it should be.

It does not really matter that software is free (as in whatever) as much as it matters that it’s compliant to open, unencumbered, interoperable standards (even if, as we all know, free software stands much better chances to be so inclined). In that respect, the importance of Firefox (and similar projects like Opera and KHTML) goes way beyond the percentage points of their adoption figures.

Of course this is not to say that those numbers should not grow or that I do not wish it to be so. Quite the contrary. If future releases of IE should turn into something different than the blatantly insecure, incompatible-by-design mess it is today, I’d have much less problems with it. But I seriously doubt to see it happen anytime soon.

ie eats babies

October 6th, 2005

Internet Explorer eats babies!

One of the funniest banners I’ve ever seen.

Get Firefox!