The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh_exchange_identification: Connection closed by remote host Connection closed jeevan_fimare UNIX for Dummies Questions & Answers 1 02-05-2009 01:43 AM
Testing physical network connection tjlst15 SUN Solaris 1 09-22-2005 03:03 PM
Testing VPN Connection maxhewitt Shell Programming and Scripting 1 06-10-2005 05:56 PM
Testing ssh connection from KSH script dmilks Shell Programming and Scripting 8 06-02-2005 04:34 AM
Dhcp alex blanco UNIX for Advanced & Expert Users 2 08-04-2003 12:48 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-07-2009
chebarbudo's Avatar
chebarbudo chebarbudo is offline
Registered User
  
 

Join Date: Nov 2008
Location: various
Posts: 188
testing a dhcp connection

Hi there,

I have a computers that has a fixed address :

Code:
terminal48:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 172.16.150.151
netmask 255.255.0.0
network 172.16.0.0
broadcast 172.16.255.255
gateway 172.16.100.3

I'd like to switch it to a dhcp address but before editing the file, I need to be sure it will be able to contact the dhcp server. Indeed, I can only remote control the computer (ssh) and have no physical access to it. If I edit the file, restart the networking and if the computer cannot get an dhcp ip address, I permanently loose control over it.

Is there a command that can test a dhcp connection without actually modifying the current parameters?

Thanks for your help

Santiago
 

Bookmarks

Tags
dhcp, test

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0