Problem with Dual Ethernet Interface on Target - VxWorks

This is a discussion on Problem with Dual Ethernet Interface on Target - VxWorks ; Hello, I am using Dual Ethernet Interfaces on my target. I have done the Setup as follows - Interface 0 - int0 IP address - 192.138.41.81 SubnetMask - 0xffffff00 This interface ethernet port is connected to PC -0 as - ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Problem with Dual Ethernet Interface on Target

  1. Problem with Dual Ethernet Interface on Target

    Hello,

    I am using Dual Ethernet Interfaces on my target.
    I have done the Setup as follows -

    Interface 0 - int0
    IP address - 192.138.41.81
    SubnetMask - 0xffffff00

    This interface ethernet port is connected to PC -0 as -
    IP address - 192.138.41.10
    SubnetMask - 0xffffff00
    Default Gateway 192.138.41.81


    Interface 1 - int 1
    IP address - 192.138.42.82
    SubnetMask - 0xffffff00

    This interface ethernet port is connected to PC -0 as -
    IP address - 192.138.42.10
    SubnetMask - 0xffffff00
    Default Gateway 192.138.42.82

    Now the scenario is as follows

    The following Ping work -

    Interface 0 <-> PC 0
    Interface 1 <-> PC 1
    PC 0 -> Interface 1
    PC 1 -> Interface 0

    The following Ping does not work -

    PC 0 <-> PC 1

    I have checked by putting debug statements in my ethernet driver.
    When I ping from PC0 to PC1, the packet in received on Interface 0.
    But any packet is not sent on the Interface 1. I think it should have
    generated ARP / ICMP packet, but it doesnt.


    The required Dump of settings from the OS is as -

    -> ifShow

    lo (unit number 0):
    Flags: (0x48049) UP LOOPBACK MULTICAST TRAILERS ARP RUNNING
    INET_UP
    Type: SOFTWARE_LOOPBACK
    inet: 127.0.0.1
    Netmask 0xff000000 Subnetmask 0xff000000
    Metric is 0
    Maximum Transfer Unit size is 1536
    0 packets received; 0 packets sent
    0 multicast packets received
    0 multicast packets sent
    0 input errors; 0 output errors
    0 collisions; 0 dropped
    0 output queue drops
    int (unit number 2):
    Flags: (0x68843) UP BROADCAST MULTICAST ARP RUNNING INET_UP
    Type: ETHERNET_CSMACD
    inet: 192.138.41.81
    Broadcast address: 192.138.41.255
    Netmask 0xffffff00 Subnetmask 0xffffff00
    Ethernet address is 08:00:28:32:00:86
    Metric is 0
    Maximum Transfer Unit size is 1500
    0 octets received
    0 octets sent
    383 unicast packets received
    0 unicast packets sent
    0 non-unicast packets received
    0 non-unicast packets sent
    0 incoming packets discarded
    0 outgoing packets discarded
    0 incoming errors
    0 outgoing errors
    9 unknown protos
    0 collisions; 0 dropped
    0 output queue drops
    int (unit number 3):
    Flags: (0x68843) UP BROADCAST MULTICAST ARP RUNNING INET_UP
    Type: ETHERNET_CSMACD
    inet: 192.138.42.82
    Broadcast address: 192.138.42.255
    Netmask 0xffffff00 Subnetmask 0xffffff00
    Ethernet address is 08:00:28:32:00:88
    Metric is 0
    Maximum Transfer Unit size is 1500
    0 octets received
    0 octets sent
    66 unicast packets received
    0 unicast packets sent
    0 non-unicast packets received
    0 non-unicast packets sent
    0 incoming packets discarded
    0 outgoing packets discarded
    0 incoming errors
    0 outgoing errors
    0 unknown protos
    0 collisions; 0 dropped
    0 output queue drops
    value = 26 = 0x1a

    -> routeShow

    ROUTE NET TABLE
    destination gateway flags Refcnt Use
    Interface
    ----------------------------------------------------------------------------
    192.138.41.0 192.138.41.81 33554689 0 0
    int2
    192.138.42.0 192.138.42.82 33554689 0 0
    int3
    ----------------------------------------------------------------------------

    ROUTE HOST TABLE
    destination gateway flags Refcnt Use
    Interface
    ----------------------------------------------------------------------------
    127.0.0.1 127.0.0.1 35651589 0 0
    lo0
    ----------------------------------------------------------------------------
    value = 0 = 0x0

    -> mRouteShow
    Destination/Pfx Gateway Flags RefCnt Use Proto Tos
    I/f

    127.0.0.1 127.0.0.1 2200005 0 0 2 0
    lo0
    192.138.41.0/24 192.138.41.81 2000101 0 0 2 0
    int2
    192.138.42.0/24 192.138.42.82 2000101 0 0 2 0
    int3

    -> ipstatShow
    total 87
    badsum 0
    tooshort 0
    toosmall 0
    badhlen 0
    badlen 0
    infragments 0
    fragdropped 0
    fragtimeout 0
    forward 0
    fastforward 0
    cantforward 58
    redirectsent 0
    unknownprotocol 0
    delivered 29
    localout 22
    nobuffers 0
    reassembled 0
    fragmented 0
    outfragments 0
    cantfrag 0
    badoptions 0
    noroute 0
    badvers 0
    rawout 0
    toolong 0
    notmember 0
    nogif 0
    badaddr 0

    value = 1 = 0x1
    ->
    -> arptabShow

    LINK LEVEL ARP TABLE
    destination gateway flags Refcnt Use
    Interface
    --------------------------------------------------------------------------
    192.138.41.10 00:01:02:4c:67:90 33686533 0 5
    int2
    192.138.42.10 00:11:43:39:4c:53 33686533 0 5
    int3
    --------------------------------------------------------------------------
    value = 0 = 0x0
    ->


    Can anybody please tell me what would be the probabl problem?
    Why VxWorks IP Stack is not able to forward the packets on the other
    interface?

    Thanks in advance for all your help.

    Raj.


  2. Re: Problem with Dual Ethernet Interface on Target

    Sorry forgot to mention,

    I am using VxWorks 6.2, GNU Compiler and MIPS processor on h/w.


  3. Re: Problem with Dual Ethernet Interface on Target

    this is probably because PC's routing tables are wrong.

    PC1 needs to have a route entry for PC2 network via vxworks1 interface.
    PC2 needs to have a route entry for PC1 network via vxworks 2
    interface.

    assuming vxworks iprouting is not turned off.


    Raj wrote:
    > Hello,
    >
    > I am using Dual Ethernet Interfaces on my target.
    > I have done the Setup as follows -
    >
    > Interface 0 - int0
    > IP address - 192.138.41.81
    > SubnetMask - 0xffffff00
    >
    > This interface ethernet port is connected to PC -0 as -
    > IP address - 192.138.41.10
    > SubnetMask - 0xffffff00
    > Default Gateway 192.138.41.81
    >
    >
    > Interface 1 - int 1
    > IP address - 192.138.42.82
    > SubnetMask - 0xffffff00
    >
    > This interface ethernet port is connected to PC -0 as -
    > IP address - 192.138.42.10
    > SubnetMask - 0xffffff00
    > Default Gateway 192.138.42.82
    >
    > Now the scenario is as follows
    >
    > The following Ping work -
    >
    > Interface 0 <-> PC 0
    > Interface 1 <-> PC 1
    > PC 0 -> Interface 1
    > PC 1 -> Interface 0
    >
    > The following Ping does not work -
    >
    > PC 0 <-> PC 1
    >
    > I have checked by putting debug statements in my ethernet driver.
    > When I ping from PC0 to PC1, the packet in received on Interface 0.
    > But any packet is not sent on the Interface 1. I think it should have
    > generated ARP / ICMP packet, but it doesnt.
    >
    >
    > The required Dump of settings from the OS is as -
    >
    > -> ifShow
    >
    > lo (unit number 0):
    > Flags: (0x48049) UP LOOPBACK MULTICAST TRAILERS ARP RUNNING
    > INET_UP
    > Type: SOFTWARE_LOOPBACK
    > inet: 127.0.0.1
    > Netmask 0xff000000 Subnetmask 0xff000000
    > Metric is 0
    > Maximum Transfer Unit size is 1536
    > 0 packets received; 0 packets sent
    > 0 multicast packets received
    > 0 multicast packets sent
    > 0 input errors; 0 output errors
    > 0 collisions; 0 dropped
    > 0 output queue drops
    > int (unit number 2):
    > Flags: (0x68843) UP BROADCAST MULTICAST ARP RUNNING INET_UP
    > Type: ETHERNET_CSMACD
    > inet: 192.138.41.81
    > Broadcast address: 192.138.41.255
    > Netmask 0xffffff00 Subnetmask 0xffffff00
    > Ethernet address is 08:00:28:32:00:86
    > Metric is 0
    > Maximum Transfer Unit size is 1500
    > 0 octets received
    > 0 octets sent
    > 383 unicast packets received
    > 0 unicast packets sent
    > 0 non-unicast packets received
    > 0 non-unicast packets sent
    > 0 incoming packets discarded
    > 0 outgoing packets discarded
    > 0 incoming errors
    > 0 outgoing errors
    > 9 unknown protos
    > 0 collisions; 0 dropped
    > 0 output queue drops
    > int (unit number 3):
    > Flags: (0x68843) UP BROADCAST MULTICAST ARP RUNNING INET_UP
    > Type: ETHERNET_CSMACD
    > inet: 192.138.42.82
    > Broadcast address: 192.138.42.255
    > Netmask 0xffffff00 Subnetmask 0xffffff00
    > Ethernet address is 08:00:28:32:00:88
    > Metric is 0
    > Maximum Transfer Unit size is 1500
    > 0 octets received
    > 0 octets sent
    > 66 unicast packets received
    > 0 unicast packets sent
    > 0 non-unicast packets received
    > 0 non-unicast packets sent
    > 0 incoming packets discarded
    > 0 outgoing packets discarded
    > 0 incoming errors
    > 0 outgoing errors
    > 0 unknown protos
    > 0 collisions; 0 dropped
    > 0 output queue drops
    > value = 26 = 0x1a
    >
    > -> routeShow
    >
    > ROUTE NET TABLE
    > destination gateway flags Refcnt Use
    > Interface
    > ----------------------------------------------------------------------------
    > 192.138.41.0 192.138.41.81 33554689 0 0
    > int2
    > 192.138.42.0 192.138.42.82 33554689 0 0
    > int3
    > ----------------------------------------------------------------------------
    >
    > ROUTE HOST TABLE
    > destination gateway flags Refcnt Use
    > Interface
    > ----------------------------------------------------------------------------
    > 127.0.0.1 127.0.0.1 35651589 0 0
    > lo0
    > ----------------------------------------------------------------------------
    > value = 0 = 0x0
    >
    > -> mRouteShow
    > Destination/Pfx Gateway Flags RefCnt Use Proto Tos
    > I/f
    >
    > 127.0.0.1 127.0.0.1 2200005 0 0 2 0
    > lo0
    > 192.138.41.0/24 192.138.41.81 2000101 0 0 2 0
    > int2
    > 192.138.42.0/24 192.138.42.82 2000101 0 0 2 0
    > int3
    >
    > -> ipstatShow
    > total 87
    > badsum 0
    > tooshort 0
    > toosmall 0
    > badhlen 0
    > badlen 0
    > infragments 0
    > fragdropped 0
    > fragtimeout 0
    > forward 0
    > fastforward 0
    > cantforward 58
    > redirectsent 0
    > unknownprotocol 0
    > delivered 29
    > localout 22
    > nobuffers 0
    > reassembled 0
    > fragmented 0
    > outfragments 0
    > cantfrag 0
    > badoptions 0
    > noroute 0
    > badvers 0
    > rawout 0
    > toolong 0
    > notmember 0
    > nogif 0
    > badaddr 0
    >
    > value = 1 = 0x1
    > ->
    > -> arptabShow
    >
    > LINK LEVEL ARP TABLE
    > destination gateway flags Refcnt Use
    > Interface
    > --------------------------------------------------------------------------
    > 192.138.41.10 00:01:02:4c:67:90 33686533 0 5
    > int2
    > 192.138.42.10 00:11:43:39:4c:53 33686533 0 5
    > int3
    > --------------------------------------------------------------------------
    > value = 0 = 0x0
    > ->
    >
    >
    > Can anybody please tell me what would be the probabl problem?
    > Why VxWorks IP Stack is not able to forward the packets on the other
    > interface?
    >
    > Thanks in advance for all your help.
    >
    > Raj.



  4. Re: Problem with Dual Ethernet Interface on Target

    Hi hjb,

    You are right.
    The ip routing of VxWorks was off.
    I had to remove the brdiging component and add the router stack in the
    configuration
    Then I had to re-compile the kernel.
    The above configuration started working.

    Thanks a million for your suggestion,
    Pranav


+ Reply to Thread