Is it possible to force packets to go over a loopback cable?

Peter Eriksson <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
I’d like to find some way to force FreeBSD to send a stream of packet over a loopback cable connected between two ethernet ports on the same machine, but it seems FreeBSD also short-circuits it and handles that traffic internally in the OS. Which normally is a good thing for speed, but bad when you are trying to test suspect cables :-)

I’ve found references that back in the pre-FreeBSD 10 days there used to exist a sysctl:

  net.link.ether.inet.useloopback

that could be set to 0 to disable this internal shortcut and force the packets out onto the cable…

Any suggestions? :-)

- Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.