Add a new logical interface on a physical interface with ioctl()

Add a new logical interface on a physical interface with ioctl()

Post by Vasanthan Gunaratna » Thu, 14 Dec 2000 07:27:03



I would appreciate it if someone could provide me with or point me to some
sample code that demonstrates
adding a logical interface on a physical interface using the ioctl()
function.
i.e. I want to accomplish the same as what the ifconfig command would if the
following were executed:

    ( Given that hme2 is a physical interface which has already been
configured and is up. )

    > ifconfig hme2:1
    > ifconfig hme2:1 inet 128.10.1..32 netmask 255.255.255.0
   > ifconfig hme2:1 up

OS: Solaris 2.6, 2.8, and Linux.

Thanks in advance.

 
 
 

1. ioctl() to add logical interface on a physical one

 I would appreciate it if someone could provide me with or point me to some
sample code that demonstrates
adding a logical interface on a physical interface using the ioctl()
function.
i.e. I want to accomplish the same as what the ifconfig command would if the
following were executed:

     ( Given that hme2 is a physical interface which has already been
configured and is up. )

    > ifconfig hme2:1

    > ifconfig hme2:1 inet 128.10.1..32 netmask 255.255.255.0

   > ifconfig hme2:1 up

 OS: Solaris 2.6, 2.8, Linux.

Thanks in advance.

2. g++ 2.7.2.1-2 libc5 development system for Red Hat 5.1 and 5.2

3. using ioctl() to add logical interface on a physical one

4. Red Hat & POP3

5. Linux API to create logical interface on a physical interface?

6. How do I get printers on system ?

7. ioctl call for adding physical interface

8. pwd in the prompt

9. physical vs. logical network interfaces

10. routing issue and maximum sub interfaces on one physical interface question

11. two logical interfaces on one physical

12. Combining two physical Ethernet ports as part of one logical interface.

13. one physical interface, 3 virtual interfaces, and inetd