Silly networking

drhyde on 2004-01-28T08:29:25

A week or so ago I got a Toshiba Libretto - probably the smallest and cutest laptop in the world - and installed Debian Linux on it. I also bought a PCMCIA NIC for it off ebay. The NIC arrived yesterday, so I could at last do the apt-get dance. First, though, I had to get it on the network.

The NIC is a wired NIC, so I need to plug it into that obsolete ethernet thingy. But I have no spare addresses on my wired network, nor can I temporarily use one from any of the machines because they are all busy doing things. And to cap it all, I don't have any spare switch ports so I can't even be naughty and run another address range on the same subnet. But, I realised, my Powerbook, which lives on my wireless network, does have an ethernet port.

So I ran a cross-over cable between the Libretto and the Powerbook. The Powerbook does NAT and routes the packets out over its wireless interface. Which connects to an Airport base station which does NAT and routes the packets out onto the wired network, where another router picks them up and does the DSL dance to get them to the rest of the world.

Looks like I'm losing about 20% of the network capacity with all the gratuitous NATting.


Remember...

Dom2 on 2004-01-28T08:38:10

20% slower bandwidth is a small price to pay for actually being able to use the damned thing. :)

-Dom

Re:Remember...

drhyde on 2004-01-28T09:59:58

But but but but but it steals packets from my bittorrents!

crossover

jerakeen on 2004-01-29T09:42:01

small point, but you don't _need_ a crossover cable, any old bit of ethernet should work. Modern hardware is so clever...