home | list info | list archive | date index | thread index

how to use "ip netns" to tie two net ports to each other for testing?

  • Subject: how to use "ip netns" to tie two net ports to each other for testing?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Sat, 18 Aug 2018 09:04:14 -0400 (EDT)
  i want to tie two ethernet ports together for the sake of pinging
out of one and into the other for testing. (in fact, i just grabbed a
couple startech USB/net adapters and plugged them into two spare USB
ports on the laptop, but i figure that should not become an issue in
any of this.)

  as i understand it (as i've never actually done it), i simply need
to use "ip netns" to define at least one (additional?) network
namespace, so that pinging doesn't simply recognize both ports being
on the same system.

  is there anything tricky about this? i found one blog post:

https://blog.scottlowe.org/2013/09/04/introducing-linux-network-namespaces/

which seems pretty straightforward, just wondering if anyone knows
precisely the incantation for this. thanks muchly.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org