Sponsored Content
Operating Systems HP-UX Adding virtual Interface on HP UX Post 86491 by Perderabo on Friday 14th of October 2005 02:06:20 PM
Old 10-14-2005
Usually it's something like this: if the first ip address went to lan0, the 2nd ip address goes to lan0:1. And lan0 and lan0:0 are the same thing.
 

10 More Discussions You Might Find Interesting

1. HP-UX

HP-UX - how to create virtual interface

OS - HP-UX B.10.20 A 9000/777 Anyone know how to set up a virtual interface on HP-UX? I've looked quickly through docs.hp.com and searched this site. No luck. And my HP Guru is sleeping today. (4 Replies)
Discussion started by: thehoghunter
4 Replies

2. HP-UX

Traceroute on virtual interface

Hello all, I have configured a virtual interface using ifconfig on HP UX 11.11. When i try to do traceroute with -i option i get * * * from traceroute. i use $traceroute -i lan0:1 my-gateway traceroute to my-gateway (15.70.180.1), 30 hops max, 40 byte packets 1 * * * 2 * * * 30 * *... (2 Replies)
Discussion started by: supersumanth
2 Replies

3. IP Networking

Solaris Virtual Interface Problem in DHCP

Hi all, I am experiencing a problem with dhcp broadcast packages. these broadcast packages are seen on bge1 and bge1:1 interfaces but somehow they are not seen at bge771001 interface which is second virtual interface on the bge1 interface. I have a server on which I configured it as working... (2 Replies)
Discussion started by: ironoxide
2 Replies

4. Shell Programming and Scripting

virtual interface

How would i create virtual interface in linux to configure more than one IP address for a physical interface? any help wll be appreciated. https://www.unix.com/images/misc/progress.gif (1 Reply)
Discussion started by: salil2012
1 Replies

5. IP Networking

assign mac address for virtual interface eth1:0

Hi , by default the physical interface (eth1) and virtual interface eth1:0 will be having same mac address, is there any way we can assign separate mac addresses for both the interfaces. would some one help me out in this. Thanks Gopi (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies

6. AIX

Virtual interface on AIX

Hi, I am totally new to AIX. I would like to know how to create virtual interface on AIX machine. Thanks, Pooja (4 Replies)
Discussion started by: pooja84k
4 Replies

7. IP Networking

Splitting eth0 traffic into two virtual interface

Hello everybody, I have been reading many posts about this topic but I have no figure out how to solve it. I need to split the traffic incoming on eth0 on two other interfaces (for instance one receiving on port 80 and the others on the other interface). I cannot understand how to do that.... (2 Replies)
Discussion started by: nicandro
2 Replies

8. UNIX for Dummies Questions & Answers

Adding a network interface to a bonded interface

I have a RHEL 5 system with a bonded interface configure using only one network port (eth0). So I have config file for ifcfg-bond0 and ifcfg-eth. I'd like to configure eth5 to be the second SLAVE in the bond. My question is, after I modify ifcfg-eth5, can I add eth5 to the bond0 interface without... (1 Reply)
Discussion started by: westmoreland
1 Replies

9. IP Networking

How to route all incoming packets from one virtual interface?

Hello, I'm trying to route all packets arriving at a particular interface by entering the same interface the virtual interface eth1: 2 and now everything is routed by default gw configured on eth1. eth1 Link encap:Ethernet HWaddr 0a:0e:64:18:52:72 inet addr:192.168.10.15 eth1:2 ... (1 Reply)
Discussion started by: faka
1 Replies

10. AIX

LPAR missing virtual interface

Note: Newbie to IBM virtualization :-) Query: Created a new AIX7.1 lpar on a system with same config as one before however the new one is having issues going out to physical network. Now on comparison the only thing which differs between these two machines is an additional en1 and ent1 shown... (7 Replies)
Discussion started by: max
7 Replies
if_nameindex(3N)														  if_nameindex(3N)

NAME
if_nameindex(), if_nametoindex(), if_indextoname(), if_freenameindex() - functions that map between an interface name and index value SYNOPSIS
DESCRIPTION
Interfaces are normally known by names such as "lan0" and "vlan200." The index is a unique positive integer value assigned to an inter- face. Index values start at 1, and 0 is not a valid index. This function maps an interface name into its corresponding index. If the specified interface name does not exist, the return value is set to 0 and is set to If there is a system error, the return value is 0, and is set to the appropriate value. For example, if the system is running out of memory, will be set to This function maps an interface index into its corresponding name. The ifname argument must point to a buffer of at least bytes into which the interface name corresponding to the specified index is returned. This pointer is also the return value of the function. is defined in and its value includes a terminating null byte at the end of the interface name. If there is no interface corresponding to the specified index, NULL is returned and is set to If there is a system error, the return value is 0, and is set to the appropriate value. This function returns all interface names and indexes as an array of structures, one structure per interface. The structure is defined in struct if_nameindex { unsigned int if_index; /* 1, 2, ... */ char *if_name; /* null terminated name: "lan0" */ }; The end of the array of structures is indicated by a structure with an if_index of 0, and an if_name of NULL. The function returns a NULL pointer upon an error, and would set to the appropriate value. The memory used for this array of structures along with the interface names pointed to by the if_name members is obtained dynami- cally. This memory is freed by the next function. This function frees the dynamic memory allocated by The argument to this function must be a pointer that was returned by CHANGE HISTORY
The function prototypes and were defined in prior to HP-UX 11i v3. They are now defined in Beginning with HP-UX 11i v3, these functions may pass on both IPv4 and IPv6 interfaces, and they no longer reside in the IPv6 library. They currently reside in the C library. Therefore, applications using these functions no longer need to link with Applications using other IPv6 interfaces that reside in IPv6 library will need to continue to link with AUTHOR
and were developed by HP, IETF, and X/Open Company Limited. ERRORS
When or fails, the following error message is set in The specified interface or index does not exist. SEE ALSO
ndp(1M), inet6_opt_init(3N), inet6_rth_space(3N), ip6(7P), ndp(7P). RFC 3493 Basic Socket Interface Extensions for IPv6. STANDARDS CONFORMANCE
if_nameindex(3N)
All times are GMT -4. The time now is 08:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy