AI, ML, Development + Cisco Learning Blog Learning about Machine Learning, Artificial Intelligence, related devlopment topics and formerly Routing and Switching, Datacenter, Security and other topics, CCIE #23664, Frank Wagner

20. Februar 2007

dynamips and local connectivity / bridging with linux

Filed under: dynamips — ocsic @ 08:18

Hi, i had really a hard time to get this working. I tried to make the local PC interface reachable by the dynamips router and could not succeed. But i gladly found a solution, that works. Someone on http://hacki.at/7200emu figured it out.

——————————————————————————————

Content of the post (order of these steps seem to be important!!!)

1.Download bridge-utils – If you have Ubuntu or Debian simply do apt-get install bridge-utils
Or download from here http://linux-net.osdl.org/index.php/Bridge
2.Remove ip address on eth0 – ifconfig eth0 0.0.0.0
shutdown eth0 – ifconfig eth0 down
3.Create bridge – brctl addbr br0
assign ip address to bridge – ifconfig br0 netmask
4.Bridging tap0 in Dynampis config.net
e0/0 = NIO_tap:tap0
5.Start Dynamips/vpod

6.Bridging eth0 and tap0 to br0
brctl addif br0 eth0
brctl addif br0 tap0
7.Bringing all interfaces up
ifconfig br0 up
ifconfig eth0 up
ifconfig tap0 up
8.Logging on to the router with the bridged interface and assigning ip address in the same network/subnet as br0

——————————————————————————————

Look at this. 192.168.2.1 is a local vmnet (vmware) interface.

Rack1R6#ping 192.168.2.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/34/60 ms
Rack1R6#

Now i can also use all kinds of software on my local pc to test with dynamips. That’s really great. For example you can use a local syslog server or a radius server for authentication. I will try to configure a local freeradius server with dynamips.

Source:

http://hacki.at/7200emu/viewtopic.php?t=669&highlight=arp

Keine Kommentare »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress