-
August 29th, 2011, 12:58 AM
#1
Network Connection Test
I am doing a network connection test program but I have no idea how to do the DHCP.
For dns, gateway I am using ping command called by popen.
For DHCP , i was told to to a dhcp discovery. Basically the DHCP client is already running in DHCP server.
I read somewhere that ifdown, ifup command can be used to but have no idea how. Any idea ?
I am making the program in C ( Linux 2.6 ).
-
August 30th, 2011, 07:04 AM
#2
Re: Network Connection Test
not really understand what you want to do and what you want to accomplish. Please be more specific when you post the question
henky
----------------------------------
henky@nok.co.id is not my email address anymore...
Jangan Pernah Menyerah
-
August 30th, 2011, 07:44 PM
#3
Re: Network Connection Test
Originally Posted by henky@nok.co.id
not really understand what you want to do and what you want to accomplish. Please be more specific when you post the question
hello. I want to do a connection test on DHCP.
I am trying to execute the following function:
ifdown eth0
ifup eth0
then afterwards check if connection to DCHP server was successful. I tried it already but unfortunately the current internal ethernet on the board am working now is a bit defective, so it hangs up after i execute the down command.
The next question is that, if the commands where successful, which file(s) tells me that the connection was successfully executed ?
/etc/resolve.conf?
Its a busybox , so commands and resources are very limited.
The command : "udhcpc" might also be used but I am still trying to understand it now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|