Network namespace

  • Thread starter Thread starter avi_c
  • Start date Start date
A

avi_c

I've done some namespace configurations with router
interface and static-routes and everything looks fine.
connected 2 namespaces - OK. Connected namespace to
the 'outside' network - OK. All these are OK when I configure the namespace and network from linux shell with iproute2 commands.
But when I doing this programticaly from my C program - I fail when I refer to eth0 (which is in the globall namespace) - I receive a message "Cannot find device "eth0""
I need to 'revert' to the default namespace before referring to eth0 - how to revert to the default namespace ?
All is done in a single process - I understand that I can manage multiple namespaces in a single process - correct ?
Thanks Avi

Continue reading...
 
Back
Top