http://etherealmind.com/2008/02/13/installing-tun-tap-driver-on-leopard/Installing Tun Tap Driver on Leopard13 February, 2008 by Greg Ferro First, I read about what TunTap is at Wikipedia and VTUN Sourceforge. >From what I read, TunTap was written for the VTUN project to specifically encapsulate Ethernet packets (TAP driver), whereas the TUN driver encapsulated IP packets. The driver is used by other popular software so it looks like it is here to stay. It is implemented as part of the Linux Kernel. Go here Tun TAP driver for MAC OS X and download the installer package for Leopard. Extract the package using Stuffit Expander (free app, google for it), and this will create a pkg file. This is a self installing script package so use Finder to run it, it will ask for your password so as to root privileges to install the Tun and Tap drivers into your dev directory.
After this I went into my /dev directory and did an ls and you can see
the Tun and Tap driver are there. Setup Dynagen to connect to the TAP driverThe next step is to then to create the TAP configuration in your dynagen net file. The following a sample:
[localhost] [[3640]] [[ETHSW sw1]] [[ROUTER r1]] [[router r2]] Once you have get this to successfully start you will now be able to see the interface
We need to give this interface an ip address:
now you will be able to configure R1 with an IP address and you can now reach your OS X system.
Sending 5, 100-byte ICMP Echos to 198.18.0.250, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 1/4/8 ms r1# |
