Home / if_utun / freebsd
Name Modified Size InfoDownloads / Week
Parent folder
readme.txt 2013-08-26 952 Bytes
if_utun.ko 2013-08-26 15.2 kB
Totals: 2 Items   16.1 kB 0
if_utun, is a pseudo interface driver, which can encapsulate
the traffic into UDP packets.

As we know dynamips network can run in UDP mode. It's a new way of 
communicating with 'real' host PC.

1. setup if_utun
   kldload if_utun.ko
   ifconfig utun create 10.10.10.1 netmask 255.255.255.0
   sysctl net.link.utun.0.sport=40001
   sysctl net.link.utun.0.dport=40002
   sysctl net.link.utun.0.destaddr="127.0.0.1"

2. setup dynamips, use UDP NIO
   -s 0:0:udp:40002:127.0.0.1:40001   
   
3. setup router
   ip address 10.10.10.2 255.255.255.0
   
4. talk with each other
   From 'real' host
   64 bytes from 10.10.10.2: icmp_seq=0 ttl=64 time=0.919 ms
   
   From router:
   Type escape sequence to abort.
   Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
   !!!!!
   Success rate is 100 percent (5/5), round-trip min/avg/max = 4/28/68 ms

   Try ssh
   Router#ssh -l root 10.10.10.1
   Password:
Source: readme.txt, updated 2013-08-26