i have dhcp yet i get the same ip , always!!!!how do i change it?


 
Thread Tools Search this Thread
Special Forums IP Networking i have dhcp yet i get the same ip , always!!!!how do i change it?
# 1  
Old 06-08-2008
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!!!!
# 2  
Old 06-10-2008
Why do you want a different IP address every time?
# 3  
Old 06-16-2008
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
# 4  
Old 07-03-2008
Quote:
Originally Posted by wrapster
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.
# 5  
Old 08-22-2008
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?
# 6  
Old 08-22-2008
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?
# 7  
Old 08-23-2008
Quote:
Originally Posted by wrapster
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 05:23 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Dhcp

I have a DHCP thing on my HP printer. How can I find information on numbers for that? (2 Replies)
Discussion started by: teak
2 Replies

2. SCO

How to change raid controller driver ? (hardware change)

Hello I'm trying to virtualize an instance of Sco Unix 5.0.5 in VirtualBox (called VM-A) , but sco I have problems set to launch with the new raid controller . The physical machine has a raid controller adaptec (alad driver) but VirtualBox uses buslogic (blc driver) What ... (3 Replies)
Discussion started by: flako
3 Replies

3. IP Networking

Get DHCP relay interfaces IP address using DHCP

Hi All , please view the set up below: ------------------------------------------------------------------- | DHCP Server |-----------| ROUTER & |-----------| Clients | | 192.168.99.1 | - -<eth1>| DHCP-RELAY|<eth2>-- | 192.168.88.X | ... (2 Replies)
Discussion started by: gdangoor
2 Replies

4. IP Networking

Can't get DHCP IP

Dear Experts, I have a TI DM8148 EVM board REV C, the EZSDK5.05 SW package, and DVRRDK1.09 SW package. EZSDK5.05, DVRRDK1.09 both use Linux2.6.37, however, there are some modifications between these two kernels. When I use uImage of DVRRDK1.09 to boot up EVM board, this board can be given a... (0 Replies)
Discussion started by: oobin168
0 Replies

5. UNIX for Advanced & Expert Users

How to get DHCP address change event notification programmatically?

Hello Experts, I am working on a software that has network client-server architecture. I need to have a mechanism that notifies me upon change of dhcp address change locally or at remote machine. Windows have IP Helper APIs to get address change notification. Is there something similar in Unix?... (3 Replies)
Discussion started by: GajendraSharma
3 Replies

6. Solaris

DHCP help

Can someone help me with this please. I am new to this: I am trying to install Solaris 8 over the network using my DHCP. After I type the comman: ./add_install_client -d -e 8:0:20:7e:97:51 I would get something like this: cleaning up preexisting install client "8:0:20:7e:97:51"... (0 Replies)
Discussion started by: aliban83
0 Replies

7. UNIX for Advanced & Expert Users

Dhcp

Last question for today!! :rolleyes: In what file does the DHCP server keep its list of leases? THANKS!!! :) Maria from Maria (2 Replies)
Discussion started by: marjeg
2 Replies

8. UNIX for Dummies Questions & Answers

Dhcp

HI, New to Unix and I inherited a network that runs DHCP in manual configuration mode. Basically, in order for a machine to get an IP it has to have an entry in dhcpd.conf with its MAC address mapped to a hostname (the hostname then maps to an IP address listed in the DNS db file). If there is... (2 Replies)
Discussion started by: NJay
2 Replies

9. UNIX for Advanced & Expert Users

Dhcp

Hi you all. I'm trying to enable DHCP in a Sun Utra 5 runing Solaris 8 but during the boot process it sends me the message : "Device not in appropiate status" Do anyone have enabled DHCP on solaris 8? Any Procedure? The DHCP server is an NT I guess. (2 Replies)
Discussion started by: alex blanco
2 Replies

10. UNIX for Dummies Questions & Answers

Dhcp

When using DHCP how can I can my hostname. I vi all the hosts file and if still didn't work. So now my hostname is unknown and I want to change it. So if anyone out there can help me. Thank You (6 Replies)
Discussion started by: aojmoj
6 Replies
Login or Register to Ask a Question