TUN is for IP tunneling. TAP is for Ethernet tunneling. Check out vtun if you’re looking to get networking working in qemu or kvm for virtual tunnels over tcp/ip networks with traffic shaping, compression, and encryption. vtun also supports serial and pipe tunnels.
So you want to setup networking so virtual machines will have access to the outside world through your hosts network connection. To do this you’ll need to share your host’s external interface with virtual machines through a bridge. A bridge can join two network segments and be used to inspect all Ethernet frames that pass between them. Create a bridge and a tunnel interface. Assign the tunnel and your host’s Ethernet interface to the bridge. Connect the bridge to the outside world. Your host uses the network card in promiscuous mode to handle packets for other interfaces connected to the bridge.
I like the description of spending a friday night spent geeking out. It makes me miss my old viewsonic 21″ CRT that I got for ninety-nine bucks from a busted dot com venture capital business back in the 90’s.
See current network properties for all interfaces, Manually configure an IP address for interface eth0, See the current network properties for all wireless interfaces, Configure wireless to talk to a specific access point by address, Configure a wireless interface to use channel 11, Set the default gateway, Configure static routes, See what PIDs/processes are associated with remote connections
Net Unreachable
The sending device knows about the network but believes it is not available at this time. Perhaps the network is too far away through the known route.
Host Unreachable
The sending devices knows about host but doesn’t get ARP reply, indicating the host is …