lost and found ( for me ? )

coreemu 4.4 part 2 : use physical link

Ubuntu 12.04 --- L2SW --- Linux box
( coreemu )

coreemu machine

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.1 LTS
Release:        12.04
Codename:       precise

# uname -ri
3.2.0-34-generic x86_64

# ls *.deb
core_4.4-0ubuntu1_precise_amd64.deb  quagga-mr_0.99.21mr2.2_amd64.deb


start core GUI
# core


add node n1 , which is a router and connect n1 to rj45 physical interface




send icmp packets to an external server from node n1.

n1 running within coreemu  eth0 --- L2SW – Linux ( 192.168.10.15 )
<----- ubuntu -------------------------->


cap data captured on Linux box ( 192.168.10.15 )

# tshark -i br0 icmp
Capturing on br0
 0.000000 192.168.10.123 -> 192.168.10.15 ICMP 98 Echo (ping) request  id=0x0046, seq=1/256, ttl=64
 0.000039 192.168.10.15 -> 192.168.10.123 ICMP 98 Echo (ping) reply    id=0x0046, seq=1/256, ttl=64
 0.999039 192.168.10.123 -> 192.168.10.15 ICMP 98 Echo (ping) request  id=0x0046, seq=2/512, ttl=64
 0.999073 192.168.10.15 -> 192.168.10.123 ICMP 98 Echo (ping) reply    id=0x0046, seq=2/512, ttl=64
 1.998035 192.168.10.123 -> 192.168.10.15 ICMP 98 Echo (ping) request  id=0x0046, seq=3/768, ttl=64
 1.998067 192.168.10.15 -> 192.168.10.123 ICMP 98 Echo (ping) reply    id=0x0046, seq=3/768, ttl=64
 2.997751 192.168.10.123 -> 192.168.10.15 ICMP 98 Echo (ping) request  id=0x0046, seq=4/1024, ttl=64
 2.997782 192.168.10.15 -> 192.168.10.123 ICMP 98 Echo (ping) reply    id=0x0046, seq=4/1024, ttl=64


config file
# cat /root/.core/configs/test2.imn
node n1 {
   type router
   model router
   network-config {
       hostname n1
       !
       interface eth0
        ip address 192.168.10.123/24
       !
   }
   canvas c1
   iconcoords {194.0 146.0}
   labelcoords {194.0 174.0}
   interface-peer {eth0 n2}
   services {zebra OSPFv2 OSPFv3 vtysh IPForward}
}

node n2 {
   type rj45
   network-config {
       hostname eth0
       !
   }
   canvas c1
   iconcoords {438.0 148.0}
   labelcoords {438.0 176.0}
   interface-peer {0 n1}
}

link l1 {
   nodes {n1 n2}
}

canvas c1 {
   name {Canvas1}
}

option global {
   interface_names no
   ip_addresses yes
   ipv6_addresses yes
   node_labels yes
   link_labels yes
   ipsec_configs yes
   exec_errors yes
   show_api no
   background_images no
   annotations yes
   grid yes
   traffic_start 0
}

option session {
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.