Routing table question

47 views
Skip to first unread message

Jin

unread,
May 15, 2013, 1:01:25 AM5/15/13
to omn...@googlegroups.com
I am currently using inetmanet-2.0.

In example "wiredandwirelesshostswithap", I have question regarding routing table. 
In the file of omnet.ini, the routing path is specified as following. 

*.iPv4NetworkConfigurator.config = xml( \
    "<config> \
        <interface hosts='wirelessHost1 wiredHost1' address='10.0.1.x' netmask='255.255.255.0'/> \
        <interface hosts='router' names='eth0' address='10.0.1.x' netmask='255.255.255.0'/> \
        <interface among='router wiredHost2' address='10.0.2.x' netmask='255.255.255.0'/> \
        <route hosts='wirelessHost1' gateway='router>accessPoint' destination='10.0.2.0' netmask='255.255.255.0' interface='wlan0' /> \
        <route hosts='wiredHost1' gateway='router>accessPoint' destination='10.0.2.0' netmask='255.255.255.0' /> \
        <route hosts='wiredHost2' gateway='router>wiredHost2' destination='10.0.1.0' netmask='255.255.255.0' /> \
    </config>")

What is the mean of 'router>accessPoint' ? 
Why wiredHost2 's nexthop is set as 'router>wiredHost2' ?

Acutally, wiredHost2 has two UDP applications, and each application send packets towards to 'wirelessHost1' and 'wiredHost1' respectively. 
**.wiredHost2.udpApp[1].destAddresses = "wirelessHost1"
**.wiredHost2.udpApp[2].destAddresses = "wiredHost1"


Thank you experts, I need your help. 

Reply all
Reply to author
Forward
0 new messages