08-15-2009
create a file hostname.devicename in etc folder and in it add yor host name
say
# cat /etc/server1.hme0
server1
#
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
After a reboot my ifconfig -a has nothing but 0.0.0.0
have to reinput my IP and default route, what makes the info save? (1 Reply)
Discussion started by: jo calamine
1 Replies
2. UNIX Desktop Questions & Answers
Does Red Hat Fedora support Nvidia card 8800GTX and 260 card?
Does any Linux OS support Nvidia card? (1 Reply)
Discussion started by: sito
1 Replies
3. Shell Programming and Scripting
Hello,
I ran into an issue in one of my monitoring scripts. If I use the public ip address in my connection string everything works, but if I switch the connection string ip to 127.0.0.1 or the internal ip I get, " Connection refused at... (1 Reply)
Discussion started by: Styles
1 Replies
4. Solaris
hey all,
everytime i reset my computer my hme0 net card comes up with a down state, and i have to run ifconfig hme0 up command.
help? (6 Replies)
Discussion started by: shwinky
6 Replies
5. Infrastructure Monitoring
Solaris 10 -- I created SNMPv3 users with net-snmp-config --create-snmpv3-user command. I am using HP Network Node Manager's SNMPv3 Smart Plugin to serve as the SNMP management server. Some SNMPv3 users were automatically created with the same snmpengineID. This causes NNM's brassagt proxy to... (0 Replies)
Discussion started by: rjsteele
0 Replies
6. Shell Programming and Scripting
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies
7. Solaris
People i install a solaris 9 in a sparc platform this is the 3 time that i install it on this machine, the problem now is that when i do a ifconfig -a i only see the loop conection and no the hme0, i don`t remember if during the installation i set the option not networked.
Any ideas? how to... (6 Replies)
Discussion started by: enkei17
6 Replies
8. UNIX for Dummies Questions & Answers
I have two server with 2 net cards each one:
Server 1
A = 100 Mbs
B = 1000Mbs (Gigabit)
Server 2
A = 100 Mbs
B = 1000Mbs (Gigabit)
In A i ' am conected to the public network ( In both servers) and in B i make a point to point lan 1 gigabit of speed. Between the servers
... (1 Reply)
Discussion started by: enkei17
1 Replies
9. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
10. Red Hat
Hi folks,
I am trying to configure Apache webserver and also a virtual host inside this webserver.
For Global server config: /var/www/html/index.html
For virtual host config: /var/www/virtual/index.html
Both client10 & www10 are pointing to 192.168.122.10 IP address.
BUT, MY... (1 Reply)
Discussion started by: freebird8z
1 Replies
LEARN ABOUT OPENSOLARIS
net_lifgetnext
net_lifgetnext(9F) Kernel Functions for Drivers net_lifgetnext(9F)
NAME
net_lifgetnext - search through a list of logical network interfaces
SYNOPSIS
#include <sys/neti.h>
net_if_t net_lifgetnext(const net_data_t net, const phy_if_t ifp,
net_if_t lif);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
net value returned from a successful call to net_protocol_lookup(9F).
ifp value returned from a successful call to net_phylookup(9F) or net_phygetnext(9F).
lif value returned from a successful call to this function.
DESCRIPTION
The net_lifgetnext() function is used to search through all of the logical interfaces that are associated with a physical network inter-
face. To start searching through this list, a value of 0 should be passed through as the value of lif. When 0 is returned by this function,
the last of the interfaces owned by this protocol has been reached.
When called successfully, the value returned represents a logical interface that exists, at the time of the call, within the scope of the
network interface and its assigned network protocol. This value is only guaranteed to be unique for a name within the scope of the network
interface and its assigned protocol.
EXAMPLES
net_data_t net;
phy_if_t ifp;
net_if_t lif;
char buffer[32];
net_ifaddr_t atype[1];
struct sockaddr_in sin[1];
net = net_protocol_lookup("inet");
if (net != NULL) {
atype[0] = NA_ADDRESS;
ifp = net_phylookup(net, "hme0");
for (lif = net_lifgetnext(net, 0); lif != 0;
lif = net_lifgetnext(net, lif)) {
/* Do something with lif */
if (net_getlifaddr(net, ifp, lif, 1, atype, sin) == 0)
printf("hme0:%d %x0, lif,
ntohl(sin[0].sin_addr.s_addr));
}
}
RETURN VALUES
The net_lifgetnext() function returns a value of -1 if it is not supported by the network protocol and a value of 0 if an attempt to go
beyond the last network interface is made. Otherwise, it returns a value representing a network interface.
CONTEXT
The net_lifgetnext() function may be called from user, kernel, or interrupt context.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
net_phygetnext(9F), net_phylookup(9F)
SunOS 5.11 1 May 2008 net_lifgetnext(9F)