Sunday, May 24, 2009

Qemu Olive to Dynamips

AS666 (eBGP) AS777
Olive-r1 <-> Dynamips-r1
|(iBGP)
Olive-r2 <-> Dynamips-r2
AS666 (eBGP) AS777

### Olive (Junos 8.5R1.13) ###
sudo qemu -m 256 -hda /home/olive/ olive.img -kernel-kqemu -localtime \
-serial telnet::1001, server,nowait \
-net nic,vlan=0,macaddr= 00:aa:00: 00:01:01, model=i82559er -net tap,vlan=0,ifname= tap0,script= no \
-net nic,vlan=1,macaddr= 00:aa:00: 00:04:04, model=i82559er -net tap,vlan=1,ifname= tap1,script= no \
-net nic,vlan=1,macaddr= 00:aa:00: 00:05:05, model=i82559er -net tap,vlan=1,ifname= tap2,script= no \
-net nic,vlan=1,macaddr= 00:aa:00: 00:02:02, model=i82559er -net udp,vlan=1,sport= 10000,dport= 10001,daddr= 127.0.0.1 \
-net nic,vlan=1,macaddr= 00:aa:00: 00:03:03, model=i82559er -net udp,vlan=1,sport= 20000,dport= 10002,daddr= 127.0.0.1

### Dynamips (3640) ###
[[router Cisco1]]
fa0/0=NIO_udp: 10001:127. 0.0.1:10000
[[router Cisco2]]
fa0/0=NIO_udp: 10002:127. 0.0.1:20000

logical-router: r1
Groups: 2 Peers: 2 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 8 3 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/ Received/ Damped...
192.168.3.1 666 54 55 0 1 22:28 2/7/0 0/0/0
10.10.10.2 777 32 36 0 2 14:28 1/1/0 0/0/0
-----

logical-router: r2
Groups: 2 Peers: 2 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 7 2 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/ Received/ Damped...
192.168.0.1 666 37 51 0 1 7:25 1/6/0 0/0/0
10.10.10.6 777 6 7 0 0 1:22 1/1/0 0/0/0
-----

r1#sh ip bgp neighbors 10.10.10.1 received-routes
BGP table version is 10, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
r> 10.10.10.0/30 10.10.10.1 0 666 i
*> 10.10.10.4/30 10.10.10.1 0 666 i
*> 10.10.10.8/30 10.10.10.1 0 666 i
*> 192.168.0.0 10.10.10.1 0 666 i
*> 192.168.0.1/ 32 10.10.10.1 0 666 i
*> 192.168.3.0 10.10.10.1 10 0 666 i
*> 192.168.3.1/ 32 10.10.10.1 10 0 666 i

Total number of prefixes 7
-----

r2#sh ip bgp neighbors 10.10.10.5 received-routes
BGP table version is 10, local router ID is 192.168.4.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 10.10.10.0/30 10.10.10.5 0 666 i
r> 10.10.10.4/30 10.10.10.5 0 666 i
*> 10.10.10.8/30 10.10.10.5 0 666 i
*> 192.168.0.0 10.10.10.5 10 0 666 i
*> 192.168.0.1/ 32 10.10.10.5 10 0 666 i
*> 192.168.3.0 10.10.10.5 0 666 i
*> 192.168.3.1/ 32 10.10.10.5 0 666 i

Total number of prefixes 7
-----