in reply to Net:::Packet sending throug wrong interface

You might want to use $eth1 and $eth2 instead of re-using the variable $eth. That said, have you investigated the created object to confirm it is what you think it is?

print $eth1->print, "\n";

It sounds like your frames are being sent to the default MAC. From Net::Packet::Env, it looks like you might want to do something more like:

my $env1 = Net::Packet::Env->new(dev => 'eth1'); . . . my $frame = Net::Packet::Frame->new(env=>$env1,l3=>$ip6,l4=>$udp,l7=>$ +data);

The intelligent reader will judge for himself. Without examining the facts fully and fairly, there is no way of knowing whether vox populi is really vox dei, or merely vox asinorum. -- Cyrus H. Gordon

Replies are listed 'Best First'.
Re^2: Net:::Packet sending throug wrong interface
by admiralfreezbee (Acolyte) on Sep 15, 2005 at 09:54 UTC
    Thanks for the hint but I keep getting the same problems. Only now I have some new warnings saying that there isn't an IPv4 address bound to the interface