Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I try to understand the way the network-admin retrieve and set information about the network connections, and after reviewing thee code, I still dont undertsnad how it does it. ...
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    1

    how does Network-admin works ?

    Hello,


    I try to understand the way the network-admin retrieve and set information about the network connections, and after reviewing thee code, I still dont undertsnad how it does it. I thought that it should use maybe linux commands such as iwconfig or ifconfig or by using ioctl for get/set the parameters of the wireless, but I did not find such things in the code. It also does not use AT commands for modem devices parameters.
    I see that it uses liboobs files, but after veiwing the code, I still don't understand how it works.

    I thank you if you can give me some clue about it.
    These question comes since I need to make a program which connects to wireless devices (possibly several wifi and modems devices can be connected ), and I try to think how to set/get the network parameters, I thought that a good start will be to look at how network-admin works.

    Best Regards,

    Ran

  2. #2
    Just Joined!
    Join Date
    Apr 2011
    Posts
    14
    Network connections, by default, are automatically configured using DHCP. The command run by network-admin is dhclient.

    You can run this manually by typing:

    Code:
    sudo dhclient eth0
    Before running this command you should stop dhclient to make sure there are not multiple instances running.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...