8 More Discussions You Might Find Interesting
1. AIX
Hello All,
We are setting up an IBM P710 Express server for our QA testing internal customer. We are planning to setup 2 WPARs on this base server. The only thing we do not know is: "Would the compilers on the two WPARs conflict?"
This might have sounded like a naive question but these were... (5 Replies)
Discussion started by: satish51392111
5 Replies
2. Shell Programming and Scripting
A) I would like to achive following actions using shell script. can someone help me with writing the shell script
1) Go to some dir ( say /xyz/logs ) and then perform find operation in this dir and list of subdir using
find . -name "*" -print | xargs grep -li 1367A49001CP0162 >... (1 Reply)
Discussion started by: GG2
1 Replies
3. Shell Programming and Scripting
Hi
This is my third past and very impressed with previous post replies
Hoping the same for below query
How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies
4. Shell Programming and Scripting
Hi,
I am logging to a linux server through a user "user1" in /home directory.
There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory.
When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies
5. Shell Programming and Scripting
Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies
6. Shell Programming and Scripting
Hi Everyone,
I have 1.txt
here
a
b
c' funny"yes";
d
e
The finally output is:
here
a
b
c
d
e' funny"yes"; (1 Reply)
Discussion started by: jimmy_y
1 Replies
7. UNIX for Advanced & Expert Users
I need help in forming a script to copy files from one location which has a sub directory structure to another location with similar sub directory structure,
say location 1,
/home/rick/tmp_files/1-12/00-25/
here 1-12 are the number of sub directories under tmp_files and 00-25 are sub... (1 Reply)
Discussion started by: pharos467
1 Replies
8. Solaris
First off, I'm pretty new to Solaris, although I know Windows very well.
I have a mixed Wintel, Linux and SPARC/Solaris environment and am looknig for a way to make short work of installing Solaris. I know there is a network booting option and there are the WebStart (configurable) and JumpStart... (1 Reply)
Discussion started by: BeekerC
1 Replies
IP-NETNS(8) Linux IP-NETNS(8)
NAME
ip-netns - process network namespace management
SYNOPSIS
ip [ OPTIONS ] netns { COMMAND | help }
ip netns { list }
ip netns { add | delete } NETNSNAME
ip netns identify PID
ip netns pids NETNSNAME
ip netns exec NETNSNAME command ...
ip netns monitor
DESCRIPTION
A network namespace is logically another copy of the network stack, with its own routes, firewall rules, and network devices.
By convention a named network namespace is an object at /var/run/netns/NAME that can be opened. The file descriptor resulting from opening
/var/run/netns/NAME refers to the specified network namespace. Holding that file descriptor open keeps the network namespace alive. The
file descriptor can be used with the setns(2) system call to change the network namespace associated with a task.
For applications that are aware of network namespaces, the convention is to look for global network configuration files first in
/etc/netns/NAME/ then in /etc/. For example, if you want a different version of /etc/resolv.conf for a network namespace used to isolate
your vpn you would name it /etc/netns/myvpn/resolv.conf.
ip netns exec automates handling of this configuration, file convention for network namespace unaware applications, by creating a mount
namespace and bind mounting all of the per network namespace configure files into their traditional location in /etc.
ip netns list - show all of the named network namespaces
This command displays all of the network namespaces in /var/run/netns
ip netns add NAME - create a new named network namespace
If NAME is available in /var/run/netns/ this command creates a new network namespace and assigns NAME.
ip netns delete NAME - delete the name of a network namespace
If NAME is present in /var/run/netns it is umounted and the mount point is removed. If this is the last user of the network names-
pace the network namespace will be freed, otherwise the network namespace persists until it has no more users. ip netns delete may
fail if the mount point is in use in another mount namespace.
ip netns identify PID - Report network namespaces names for process
This command walks through /var/run/netns and finds all the network namespace names for network namespace of the specified process.
ip netns pids NAME - Report processes in the named network namespace
This command walks through proc and finds all of the process who have the named network namespace as their primary network names-
pace.
ip netns exec NAME cmd ... - Run cmd in the named network namespace
This command allows applications that are network namespace unaware to be run in something other than the default network namespace
with all of the configuration for the specified network namespace appearing in the customary global locations. A network namespace
and bind mounts are used to move files from their network namespace specific location to their default locations without affecting
other processes.
ip netns monitor - Report as network namespace names are added and deleted
This command watches network namespace name addition and deletion events and prints a line for each event it sees.
EXAMPLES
ip netns list
Shows the list of current named network namespaces
ip netns add vpn
Creates a network namespace and names it vpn
ip netns exec vpn ip link set lo up
Bring up the loopback interface in the vpn network namespace.
SEE ALSO
ip(8)
AUTHOR
Original Manpage by Eric W. Biederman
iproute2 16 Jan 2013 IP-NETNS(8)