I did some interconnectivity testing [IOU] <-> [Dynamips] and it is almost working ;))
What I use:
A VMWare Linux host with IOU on it
Real PC with Windows and GNS3 open ;)
Changes in 'linuxbox':
Quote:
#Change the hostname to 'vmhost' (it was localhost before :)
#This change is necessary because IOU listen on the hostname ip address only (the one from license file)
hostname vmhost
#Update the license file to the new hostname ;))
#It strictly requires to be the real hostname... (I think it can be easily patched)
echo -e "[license]\n`hostname` = 1234567890123456;" > iourc
#Add 'vmhost' and 'realhost' in '/etc/hosts'...
echo "vmhost 192.168.123.5" >> /etc/hosts # VMnet bridge mode
echo "realhost 192.168.123.3" >> /etc/hosts # Real PC NIC
#Create a demo NETMAP with a connection between a IOU and Dynamips using UDP
#Interconnecting IOU R10 e0/0 with a Dynamips Cloud (nio_udp) thru GNS3
#seems that you can add also a ip address instead of 'realhost'
echo "10:0/0 11:0/
[email protected]" > NETMAP
#Now start IOU instance 10 without any other options
#Optional a base UPD port can be specified '-u UDP_PORT' default is 49000
./i86bi_linux-ipbase-ms_patched 10
Port 0/0 is connected to:
11:0/
[email protected]#Checking the open ports for that process shows a UDP listening on hostname's IP address port 49000+10 (UDP base port + IOU instance ID)
netstat -nlp| grep i86bi_linux
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 192.168.123.5:49010 0.0.0.0:* 28151/i86bi_linux-i
#Enabled interface e0/0 on R10 and assigning ip address 1.1.1.1/24
Changes in 'Windows' GNS3:
Quote:
Added a Dynamips router and a cloud with a nio_udp connection.
Here the hostnames and interfaces numbers doesn't have any relevance, but I correlated them with IOU stuff...
Attachment:
nio_udp.jpg [ 11.87 KiB | Viewed 61985 times ]
Enabled interface fa0/0 on R11 and assigning ip address 1.1.1.2/24
Connectivity test between those two routers... (unsuccessfully)
In this attached capture file "
wireshark_realnic_capture_udp_traffic.pcap" it all goes great from one side to the other of the UDP tunnel.
Also adding the option '-t' for IOU (Netio message trace) confirms that the communication is working between those parts.
Pushing some pings from Dynamips side, but no replies comes back, IOU it only sends keepalives and CDP at that moment.
R11 has a static ARP configured for R10 to force the ping...
Code:
R10# (IOU debug)
netio: send: 10:0 => 11:0 len:68
netio: recv: 49154:0 <= 6604:0 len:52
netio: send: 10:0 => 11:0 len:68
netio: recv: 49154:0 <= 6604:0 len:52
netio: send: 10:0 => 11:0 len:68
netio: recv: 3584:10 <= 0:0 len:106
netio: recv: 3584:10 <= 0:0 len:106
netio: recv: 49154:0 <= 6604:0 len:52
netio: recv: 3584:10 <= 0:0 len:106
netio: send: 10:0 => 11:0 len:68
netio: recv: 3584:10 <= 0:0 len:106
netio: recv: 3584:10 <= 0:0 len:106
netio: recv: 49154:0 <= 6604:0 len:52
But after starting a new capture on R11 fa0/0 "
R11_to_C1.cap" traffic coming from IOU is pretty weird and for sure IOU sees Dynamips traffic in the same way :))
Attachment:
sample_packet_compare.jpg [ 220.81 KiB | Viewed 62188 times ]
By looking at two packets (capture from dynamips) for example CDP, the one from IOU comes in a different format...
So, a different decoder/encoder has to be used in between to make this possible!
Not sure what is the binary difference between formats at this hour, (almost 3AM) ;))
Just hope it will be possible in one day even without IOUlive...