Networking

Set it and forget it: Tether your Windows Mobile 6 Phone to Linux

I have a love/hate relationship with my phone - an HTC PPC6800. I can't live without it - I can check my work email from anywhere, and surf the web. While I've tried many PDA's through the years, none of them have stuck, because I got tired of lugging them around. I always have my phone with me, so therefore my smartphone has made me much more organized. My wife loves it because I can remember all the upcoming appointments. Yet, I hate it. It's UI is horrible. It locks up and needs rebooted, and I feel dirty using a M$ product.

dnsmasq + dhclient

I needed to be able to use dnsmasq on my laptop so that I could forward corporate hostname requests to our corporate DNS servers, but send all other requests to OpenDNS' servers.  Sometimes at a hotel, you can't use OpenDNS, so I also wanted to fail back to whatever DNS servers were being sent via DHCP.

Per-subnet routing with Solaris 10 non-global zones

I had the chance to finally tinker with Solaris 10 zones the other day. They are impressive - very easy to setup! One of my biggest gripes about Solaris is that they've fallen way behind in the area of advanced IP routing. If you want to do things like policy routing in Solaris, you have to install ipfilter, which is no easy task. There is no alternative to iproute2 in Linux. Read after the jump to find a quick hack to setup proper routing for non-global zones on multiple subnets.

Forcing NIC Speed and Duplex on Solaris 10

There are two ways to force duplex & speed on a Solaris 10 box - via the driver, and via ndd.

First, via the driver:

# cat <<EOD > /platform/`uname -i`/kernel/drv/bge.conf
adv_autoneg_cap=0 adv_1000fdx_cap=0 adv_1000hdx_cap=0
adv_100fdx_cap=1 adv_100hdx_cap=0 adv_10fdx_cap=0
adv_10hdx_cap=0;
EOD

Note that this sets all instances of bge to 100Mbit Full Duplex.

If you wish to be more selective, you can do this:

Combining IPSEC, Dynamic NAT, and Static NAT behind a Cisco IOS Router

Trying to combine IPSEC, dynamic NAT, & static NAT on a Cisco router? Check out Cisco's article on how to do it first. If that doesn't work and you're ready to drop kick the router out of the datacenter like I was, put away your black belt for a few minutes, and read about how I worked around a couple of bugs.

Let's define our problem first.

Subscribe to SysAdmin's Journey RSS