It is currently Wed Aug 23, 2017 9:08 pm


All times are UTC




Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: Cisco Ios On Unix available on the net
PostPosted: Sat Jan 22, 2011 9:35 pm 
Offline

Joined: Fri Nov 07, 2008 12:04 pm
Posts: 179
Location: Netherlands
Just as info, maybe some of you do not know this yet:
http://evilrouters.net/

I checked this software, quite good.

Missing the layer 2 features, waiting for L2IOU to be released.

Maybe we will have integration with GNS3?


Regards,



_________________
Image Image Image Image ImageImage


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Mon Jan 24, 2011 7:21 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
Hi,

I've tested it last week and doesn't seems to use real network at all :))
All emulated network stuff works internal in memory or something...
No open ports are found in any running IOU instance.
Only the 'wrapper' redirect the output from a instance to a TCP port.
Quote:
-u <n> UDP port base for distributed networks
Not sure what this command should do, but has no effect.
Probably with something else added inside 'NETMAP' file.

For real network interconnectivity you will also need 'IOUlive' :))
So without this it is impossible to be interconnected with Dynamips.

PS: Honestly I prefer Dynamips more then IOU (at least the version I found)


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Tue Jan 25, 2011 3:52 pm 
Offline

Joined: Mon Oct 13, 2008 11:26 am
Posts: 817
Location: Finland
Cisco is using this in CCIE exams. Also L2 will be added soon by using L2IOU:

https://learningnetwork.cisco.com/docs/DOC-10859

_________________
Br,
Kaage
Image Image


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Tue Jan 25, 2011 5:53 pm 
Offline

Joined: Tue Jul 20, 2010 5:50 pm
Posts: 93
It uses UNIX domain sockets. Interesting enought according to a comment on the webpage above it is possible to use UDP tunnels.
Code:
An addition to all that: IOU across boxes works!!!
Specify 1:0/0 2:0/[email protected] in NETMAP file.
Both local and remote hostnames must be resolvable by DNS or /etc/hosts to their respective LAN IPs and not 127.0.0.1, otherwise IOU will bind on 127.0.0.1 and will not accept any connections. The base port used is UDP 49000 (e.g. for id 10 is 49010).
I also noticed you cannot use the same local and remote ids, but this is acceptable IMHO.
Thanks


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Tue Jan 25, 2011 7:33 pm 
Offline

Joined: Fri Nov 07, 2008 12:04 pm
Posts: 179
Location: Netherlands
yes, you can distribute this on multiple boxes, but is so low on cpu that I could not found a reason to use more than one box.

L2IOU if will be available, we will have amazing labs.

_________________
Image Image Image Image ImageImage


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Wed Jan 26, 2011 12:28 am 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
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
nio_udp.jpg [ 11.87 KiB | Viewed 43947 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
sample_packet_compare.jpg [ 220.81 KiB | Viewed 44150 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...


Attachments:
wireshark_captures.zip [6.23 KiB]
Downloaded 1530 times
Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Wed Jan 26, 2011 3:55 am 
Offline

Joined: Tue Jul 20, 2010 5:50 pm
Posts: 93
heh, pretty funny I kind of expected this to work. Looking on the CDP example in the zip it seems like the IOU capture:
1. has the source and destination MAC in wrong order
2. the SNAP header for CDP is "aa aa 03 00 00 0c 20 00" which is also present in IOU capture but somehow shifted

I am not aware of any "encodings", isn't that what the Ethernet standard is suppose to be for?


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Wed Jan 26, 2011 8:21 am 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
jumbo wrote:
I am not aware of any "encodings", isn't that what the Ethernet standard is suppose to be for?

Let me ask you a question. Do you see Cisco's IOU traffic being Ethernet standard??

What I mean is that Dynamips (with a new nio UDP type - "NIO_IOU") should "understand" and convert to Ethernet traffic coming from IOU and send specific traffic back in the IOU style.


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Wed Jan 26, 2011 7:50 pm 
Offline

Joined: Thu Jun 24, 2010 3:58 pm
Posts: 411
Location: [email protected]
Hey guys check this out! -> http://inetpro.org/wiki/Connect_IOU_wit ... r_dynamips

Thanks to raghavme!


Top
 Profile  
 
 Post subject: Re: Cisco Ios On Unix available on the net
PostPosted: Wed Jan 26, 2011 9:35 pm 
Quote:
What I mean is that Dynamips (with a new nio UDP type - "NIO_IOU") should "understand" and convert to Ethernet traffic coming from IOU and send specific traffic back in the IOU style.

Technically, its possible, but its not that simple when you look at a bigger picture (tried to explain this in my Howto in the dynamips chapter).

The technical implementation for UDP "translation" is simple for a point to point-style connection between one IOU and one dynamips instance. Ive implemented this with a udp socket to get dynamips connectivity. After thinking through the next steps (see below) and disappointing coding effort, I stopped everything and made sort of a ioulive replacement, to finish this journey with something that works and can be documented.

As soon as you want to connect more than one interface per IOU instance to something else, like dynamips, you need some sort multiplexing logic. Potentially, many external udp connector pairs will go into the single IOU socket and vice versa. Not hard, but cumbersome to implement outside of dynamips wrappers.

Furthermore, people want comfort by abstracting topologies. Dynagen does a good job - like figuring out interface mappings and PA placements. IOU is really poor in this regard. You can specify the amount of interfaces, but without .iourc file tweaking, its always: "Ethernet PA" first, "Serial PA" last. To get some comfort, dynamic generation of IOU resource files with the help of external scripts is a must have.

To sum this up, simple udp connector is possible right now (or the dummy interface method ive shown in the howto), but it makes sense only for a single or a few "point to point"-style links.




Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 41 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO