Fwd: ifconfig / alloc_netdev

Kumar amit mehta gmate.amit at gmail.com
Thu Nov 8 00:17:13 EST 2012


On Wed, Nov 07, 2012 at 04:47:26PM -0500, A B wrote:
> Yes it did come up in 'ifconfig' with running that command 'ifconfig
> <ifname> up'. But I'm still not seeing any packets forwarded to that
> interface. Rx/Tx counters are not incrementing. How can i troubleshoot
> this problem?.
> 
> On Mon, Nov 5, 2012 at 11:36 PM, Kumar amit mehta <gmate.amit at gmail.com> wrote:
> > On Mon, Nov 05, 2012 at 09:34:55PM -0500, A B wrote:
> >> I'm facing an issue where
> >> ifconfig command output doesn't display the interface that is created
> >> using alloc_netdev and registered using register_netdev.
> >>
> >> If i do 'ifconfig -a', i'm seeing the interface which i created.
> >>
> >> Under what circumstances does the interface is not shown in ifconfig
> >> output but in 'ifconfig -a' output.
> >>
> >> Also, i'm not seeing any packets forwarded to the created interface.
> >> i.e None of the Rx Packets and Tx Packets counters are getting
> >> incremented,
> >>
> > Maybe your interface is down. Try bringing it up by invoking:
> > ifconfig <your interface> up
> >> Can any one please let me know your suggestions / any documentation
> >> related to this problem area.
> >>
> >
There can be multiple reason for this!!!, However the obvious things to look
first would be:
i) Proper IP addresses
ii) Source and destination MAC
iii) Routing table
iv) Physical connection

BTW, no top posting please.

-Amit



More information about the Kernelnewbies mailing list