I'm running Linux (Debian Etch) in a VirtualBox VM on my MacBook. I usually ssh from my Mac terminal to the guest machine. I also want to access the internet from my guest, so I set up my host's WLAN card (en1) as a bridged adapter for eth0 on the client.
This works fine, but when I turn off the WLAN card (e.g. to reduce battery consumption), I'd still like to ssh from my host to the guest. This fails of course, because en1 loses its IP address.
Is a bridged adapter the best option for what I want to do? How can I make it work? (A simple "ifconfig en1 add 10.0.0.4" didn't do the trick...)
I can currently live with the proposed workaround (secondary interface). Ideally however, I'd prefer a solution where I always access my guest system under a single IP from my LAN. If somebody knows an easy way to set up a virtual interface (as a bridged adapter) in my MacOS 10.6 host, and to make that route to the WLAN interface, I'd be happy to hear that. Other solutions are welcome, too!