Networking Forums

Networking Forums > Computer Networking > Linux Networking > need help from networking and linux expert

Reply
Thread Tools Display Modes

need help from networking and linux expert

 
 
a10.part@gmail.com
Guest
Posts: n/a

 
      11-18-2007, 04:47 PM

Hi, Gurus:

Now I am using hping3 to be packet generator, sending customerized pkt
to a switch and then forward to another linux box, on which hping3
recv was enabled. If modify the dest mac from the sender and changed
arp table make sure those pkts could be forwarded out to switch, and
also, the switch flood this unknown unicast pkts out, but somehow
hping3 recv always saying that no pkt received, but if I turn on
etheral capture on the receiving side, then hping3 recv could see all
those pkts, meaning that if I turn on etheral, something got turned on
the linux box, then make sure all those customerized pkts could go
through. anybody knows what has been turned on and anyway for me to
turn on this without ethereral? thanks.

/zhenwu
 
Reply With Quote
 
 
 
 
Pascal Hambourg
Guest
Posts: n/a

 
      11-19-2007, 08:31 AM
Hello,

(E-Mail Removed) a écrit :
> Hi, Gurus:


What about non-gurus ? :-\

> Now I am using hping3 to be packet generator, sending customerized pkt
> to a switch and then forward to another linux box, on which hping3
> recv was enabled. If modify the dest mac from the sender and changed
> arp table make sure those pkts could be forwarded out to switch, and
> also, the switch flood this unknown unicast pkts out, but somehow
> hping3 recv always saying that no pkt received, but if I turn on
> etheral capture on the receiving side, then hping3 recv could see all
> those pkts, meaning that if I turn on etheral, something got turned on
> the linux box, then make sure all those customerized pkts could go
> through. anybody knows what has been turned on and anyway for me to
> turn on this without ethereral? thanks.


By default ethereal, like other packet sniffers, puts the specified
network interface into promiscuous mode, allowing it to accept ethernet
frames with any hardware (MAC) destination address. The -p option
reverses this behaviour. Otherwise a network interface which is not in
promiscuous mode ignores incoming frames with a MAC destination address
it does not listen to, i.e. other than its own MAC address, the
broadcast address and multicast addresses it has been set to receive.

You can put a network interface in promiscuous mode manually with
'ifconfig' (man 8 ifconfig) or 'ip link set' (man 8 ip).

No need to be a networking & Linux expert to answer this. :-p
 
Reply With Quote
 
a10.part@gmail.com
Guest
Posts: n/a

 
      11-19-2007, 04:20 PM

To me, you are expert. Anyway, thanks for your help and make it
work after using ifconfig. thanks again.

/zhenwu

On Nov 19, 1:31 am, Pascal Hambourg <boite-a-s...@plouf.fr.eu.org>
wrote:
> Hello,
>
> a10.p...@gmail.com a écrit :
>
> > Hi, Gurus:

>
> What about non-gurus ? :-\
>
> > Now I am using hping3 to be packet generator, sending customerized pkt
> > to a switch and then forward to another linux box, on which hping3
> > recv was enabled. If modify the dest mac from the sender and changed
> > arp table make sure those pkts could be forwarded out to switch, and
> > also, the switch flood this unknown unicast pkts out, but somehow
> > hping3 recv always saying that no pkt received, but if I turn on
> > etheral capture on the receiving side, then hping3 recv could see all
> > those pkts, meaning that if I turn on etheral, something got turned on
> > the linux box, then make sure all those customerized pkts could go
> > through. anybody knows what has been turned on and anyway for me to
> > turn on this without ethereral? thanks.

>
> By default ethereal, like other packet sniffers, puts the specified
> network interface into promiscuous mode, allowing it to accept ethernet
> frames with any hardware (MAC) destination address. The -p option
> reverses this behaviour. Otherwise a network interface which is not in
> promiscuous mode ignores incoming frames with a MAC destination address
> it does not listen to, i.e. other than its own MAC address, the
> broadcast address and multicast addresses it has been set to receive.
>
> You can put a network interface in promiscuous mode manually with
> 'ifconfig' (man 8 ifconfig) or 'ip link set' (man 8 ip).
>
> No need to be a networking & Linux expert to answer this. :-p


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial] Become an Expert in Linux Kernel Programming Concepts Systems Linux Networking 0 05-21-2008 11:45 AM
Iptables to Manage web-Attacks [Linux Expert] Pseudonyme Linux Networking 7 02-18-2008 07:57 AM
Any Documentaion about How Linux Networking IP stack looklike between Linux PC (single NIC card) and Router with multiple Network interfaces (LAN and WAN)? santa19992000@yahoo.com Linux Networking 0 02-11-2007 09:19 PM
Another great example of the Linux community in action: NOT! (Was: Linux networking is a ball of confusion) Kevin Pederson Linux Networking 15 10-01-2004 07:13 PM
Are you Expert? Myrna Windows Networking 0 01-13-2004 04:54 PM



1 2 3 4 5 6 7 8 9 10 11