The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
DHCP help aliban83 SUN Solaris 0 01-29-2008 10:53 AM
Dhcp marjeg UNIX for Advanced & Expert Users 2 01-14-2007 03:56 PM
Dhcp NJay UNIX for Dummies Questions & Answers 2 06-29-2004 05:37 AM
Dhcp alex blanco UNIX for Advanced & Expert Users 2 08-04-2003 08:48 AM
Dhcp aojmoj UNIX for Dummies Questions & Answers 6 09-23-2002 10:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-07-2008
Registered User
 

Join Date: Jan 2008
Posts: 183
i have dhcp yet i get the same ip , always!!!!how do i change it?

Hi all,

I have a dhcp connection on my solaris box..
But i always get the same ip when i connect to then net....
However when i use windows, every instant i disconnect and reconnect, i get a new ip...
Now a bit of googling about this problem, led me to understand that there might be a lease period in solaris's dhcp connection that is causing this issue!!

I wanted to know how i can counter this?
How to get different ip's every time i reconnect on my solaris box...
I am using solaris (b83) and "inetmenu" to connect to the net!!!!
Reply With Quote
Forum Sponsor
  #2  
Old 06-10-2008
Registered User
 

Join Date: Jun 2008
Posts: 8
Why do you want a different IP address every time?
Reply With Quote
  #3  
Old 06-16-2008
Registered User
 

Join Date: Jan 2008
Posts: 183
It helps me download better ...
And you can figure out how it will help me if you are used to downloading stuff from rapidshare

So can you please tell me how i can change my IP

Thanks
Reply With Quote
  #4  
Old 07-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 3
Quote:
Originally Posted by wrapster View Post
It helps me download better ...
And you can figure out how it will help me if you are used to downloading stuff from rapidshare

So can you please tell me how i can change my IP

Thanks
Just a guess here, but since the dhcpagent keeps the lease information in memory, killing it may solve your problem...

Try:
ifconfig <interface> dhcp release
pkill dhcpagent
ifconfig <interface> dhcp start

I'd also make sure your router/dhcp server isn't looking explicitly for the MAC address of that interface and assigning it an IP based on that MAC address.
Reply With Quote
  #5  
Old 08-21-2008
Registered User
 

Join Date: Jan 2008
Posts: 183
Yeah even i had the same hunch regarding the lease period..
But this happens only in solaris.
When i was using xp the dhcp used to turn out different IPs each time i connected to the network
Code:
'd also make sure your router/dhcp server isn't looking explicitly for the MAC address of that interface and assigning it an IP based on that MAC address.
How do i check for this?
Reply With Quote
  #6  
Old 08-22-2008
Registered User
 

Join Date: Aug 2008
Posts: 11
delete/remove the lease from the lease table of the dhcp server. It will by default try to allow a client to have the same IP (the client is asking for the same one) whenever possible, and its possible so you get the same IP.

How? What DHCp server are you running? What version?
Reply With Quote
  #7  
Old 08-23-2008
Registered User
 

Join Date: Jul 2008
Posts: 3
Quote:
Originally Posted by wrapster View Post
How do i check for this?
First, you have to have access to the router ... If you don't know the ip of your router, you can try the command "cat /etc/defaultrouter" once you obtain the lease..

After that, it really depends on what kind of router it is...
If it happens to be a Netgear, look for something like "LAN IP Setup" .. For any other brand I'm not exactly sure - keep your eye out for things like "DHCP IP Assignment" / "DHCP Lease Management" etc...

If you see the MAC address for your solaris box there, then it's probably assigning it an IP based on that MAC address...

Last edited by nhck; 08-23-2008 at 01:23 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0