Interface Alias creation using NetworkManager
- From: Girish Kumar Shetty <girishkumar shetty gmail com>
- To: networkmanager-list gnome org
- Subject: Interface Alias creation using NetworkManager
- Date: Thu, 20 Jun 2013 22:46:35 +0530
Dear Experts,
I am quite new-bie for Network Manager and looking for some information mentioned below, any help/pointers on these will be a great help.
- I am just wondering, Is there a way to create an Alias for interface using Network Manager libraries( I mean, programmatically using libnm-glib and/or libnm-utils )?
- And how can I configure IP4 information( like IP Addresses, Netmask, DNS, routes etc.,) to this alias interface. Could you please provide some hints on APIs?
-
Is it possible to get a notification If I run g_main_loop_run() as mentioned in libnm-glib-test.c when this alias is created and removed?
- I ran executable created from 'libnm-glib-test.c' and at the same time I have created an alias for eth0 manually by adding an entry eth0:0 n the /etc/network/interfaces ( and also tried using 'ifconfig' command in command line) in both cases 'ifconfig' command on terminal has shown the alias. But active_connection_changed call back function was not called. I was assuming that creation/deletion of on Alias will cause a change in active connection and 'active_connection_changed' callback function will be called.
Could you please tell me what is the signal and callback function I have to register in-order to get the events on this alias interface creation an deletion.
My OS : Ubuntu-12.10
NetworkManager Version : 0.9.6
Thanks in Advance,
Girish Shetty
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]