08-29-2006
Re: Setting primary ip address with ifconfig
Solaris 9 and persistent.
10 More Discussions You Might Find Interesting
1. Solaris
hi all
iam trying to set my eri0 interface but with little luck .
when i set the ip using ipconfig i always get "bad adress"..
moreover when i use ifconfig eri0 i can notice that the inet is 0.0.0.0 and the netmask 0
i am runnig solaris 9 on sparc .
any helpis highly appreciated ... ... (2 Replies)
Discussion started by: ppass
2 Replies
2. Linux
Hi,
I am running Fedora 7. I seem to remember there being a command to determine the primary dns. Can anyone help me find out what it is?
Thanks! (2 Replies)
Discussion started by: user23
2 Replies
3. IP Networking
HI All,
My interface card has failed.If i am giving the command to uplumb it i am getting an error.
ce401001: flags=219040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,CoS> mtu 1500 index 3
inet 10.188.24.18 netmask ffffffc0 broadcast 10.188.24.63
# ifconfig... (2 Replies)
Discussion started by: sag71155
2 Replies
4. Shell Programming and Scripting
hi,
i want to know how to grep inet address for below
below is the output of ifconfig command
/home/JA> ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:0A:5B:2E:E9
inet addr:161.239.203.18 Bcast:161.239.203.127 Mask:255.255.255.128
UP BROADCAST RUNNING... (3 Replies)
Discussion started by: mail2sant
3 Replies
5. Shell Programming and Scripting
Hello All,
Can someone show me how to cat "only the IP address of e1000g0" using ifconfig -a.
i am trying to grep only the ip address (xx.xx.xx.xx) from the bunch of all other things like, broadcast address, IPV4, UP........and so on.
thanks (1 Reply)
Discussion started by: solaix14
1 Replies
6. Shell Programming and Scripting
I'm a newbie to linux, so pleases forgive me!
I would like to find a script that I could use to extract a dynamic ip from the ppp0 and set it as a variable to be used in IPTables
basically, if ppp0 ip address is 10.10.10.20, I would like a script that would set a var to 10.10.10.0. of... (9 Replies)
Discussion started by: speedy3k
9 Replies
7. IP Networking
I'm working on an AIX Unix LPAR (AIX 3.5 00C3C9904C00 as returned by uname -a)
I can access this box using telnet, port 22 using adress IP A and B
A=AA.AA.XX.XX and B=AA.AA.YYY.YYY
I can confirm these 2 are the same space, I can see
I can't find address B listed anywhere... so I wonder what... (1 Reply)
Discussion started by: Isax50
1 Replies
8. Solaris
hi,
I am trying to configure one of my interfaces, but after reboot - i lose the changes to the netmask & broadcast address.
I have added an entry in /etc/netmasks, but it doesnt pick up the new settings. any ideas - much appreciated.
before reboot:
eri0:... (3 Replies)
Discussion started by: badoshi
3 Replies
9. Shell Programming and Scripting
Hi
I am trying to create a script extracting the IP provided by ifconfig.
I tried with grep + awk but I am returned more than I need.
/sbin/ifconfig eth0 | grep "inet addr:" | awk '/inet addr:/ { print $2 }'
and returns
addr:10.15.1.64
How can I remove "addr:" string?... (9 Replies)
Discussion started by: manustone
9 Replies
10. Solaris
I have two ethernet interfaces nge0 and nge1.
An IP assigned on nge0 is 10.10.10.1/24 and on nge1 is 20.20.20.1/24. I want to make nge0 as primary interface.
My question here is,
1. Being nge0 as primary interface, if I ping to an IP 20.20.20.5, what will happen?
2. If the answer for the... (4 Replies)
Discussion started by: nthiruvenkatam
4 Replies
LEARN ABOUT LINUX
persistent-keyring
PERSISTENT-KEYRING(7) Linux Programmer's Manual PERSISTENT-KEYRING(7)
NAME
persistent-keyring - per-user persistent keyring
DESCRIPTION
The persistent keyring is a keyring used to anchor keys on behalf of a user. Each UID the kernel deals with has its own persistent keyring
that is shared between all threads owned by that UID. The persistent keyring has a name (description) of the form _persistent.<UID> where
<UID> is the user ID of the corresponding user.
The persistent keyring may not be accessed directly, even by processes with the appropriate UID. Instead, it must first be linked to one
of a process's keyrings, before that keyring can access the persistent keyring by virtue of its possessor permits. This linking is done
with the keyctl_get_persistent(3) function.
If a persistent keyring does not exist when it is accessed by the keyctl_get_persistent(3) operation, it will be automatically created.
Each time the keyctl_get_persistent(3) operation is performed, the persistent key's expiration timer is reset to the value in:
/proc/sys/kernel/keys/persistent_keyring_expiry
Should the timeout be reached, the persistent keyring will be removed and everything it pins can then be garbage collected. The key will
then be re-created on a subsequent call to keyctl_get_persistent(3).
The persistent keyring is not directly searched by request_key(2); it is searched only if it is linked into one of the keyrings that is
searched by request_key(2).
The persistent keyring is independent of clone(2), fork(2), vfork(2), execve(2), and _exit(2). It persists until its expiration timer
triggers, at which point it is garbage collected. This allows the persistent keyring to carry keys beyond the life of the kernel's record
of the corresponding UID (the destruction of which results in the destruction of the user-keyring(7) and the user-session-keyring(7)). The
persistent keyring can thus be used to hold authentication tokens for processes that run without user interaction, such as programs started
by cron(8).
The persistent keyring is used to store UID-specific objects that themselves have limited lifetimes (e.g., kerberos tokens). If those
tokens cease to be used (i.e., the persistent keyring is not accessed), then the timeout of the persistent keyring ensures that the corre-
sponding objects are automatically discarded.
Special operations
The keyutils library provides the keyctl_get_persistent(3) function for manipulating persistent keyrings. (This function is an interface
to the keyctl(2) KEYCTL_GET_PERSISTENT operation.) This operation allows the calling thread to get the persistent keyring corresponding to
its own UID or, if the thread has the CAP_SETUID capability, the persistent keyring corresponding to some other UID in the same user names-
pace.
NOTES
Each user namespace owns a keyring called .persistent_register that contains links to all of the persistent keys in that namespace. (The
.persistent_register keyring can be seen when reading the contents of the /proc/keys file for the UID 0 in the namespace.) The
keyctl_get_persistent(3) operation looks for a key with a name of the form _persistent.<UID> in that keyring, creates the key if it does
not exist, and links it into the keyring.
SEE ALSO
keyctl(1), keyctl(3), keyctl_get_persistent(3), keyrings(7), process-keyring(7), session-keyring(7), thread-keyring(7), user-keyring(7),
user-session-keyring(7)
Linux 2017-03-13 PERSISTENT-KEYRING(7)