Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running ubuntu 10.04 on a stand alone computer.
I was using the default configuration with the dynamic ip address and somehow it changed to a static one.
I have tried editing /var/lib/dhcp3/dhcpd.leases, /etc/resolv.conf, /etc/network/interfaces, var/lib/dhcp3/dhclient
files and more suggestions that I found in other forums posted by people with similar issues. Whatever changes persisted through a restart left me without a connection until I changed it back.
It seems like my ip address has become permanently locked to this static one
Please, delete files /var/lib/dhcp3/*.leases and post contents of file /etc/network/interfaces.
I have changed /etc/network/interfaces and /var/lib/dhcp3/* files as well as every other thing I found posted in respected forums for changing ip addresses nothing has worked
I was tired of the situation and deleted that partition and made a new one with a fresh install and it has the same issue so I wonder if a static ip address is the default configuration on Ubuntu 10.04
Hi, be aware about the difference between static IP and between having the same IP!
The default IP is never static, because anybody cannot know your network configuration!
However, you need to understand the process of DHCP Leasing.
1. Your PC send request of IP (it is identified by your hardware address of your network card - MAC).
2. DHCP server send response with an IP or more IPs that can be used for your MAC.
3. Your PC send confirmation, what address it wants the use (usually there is offer of one IP and you use one IP).
Well, many modems, routers and other devices running DHCP server make following:
They remeber the MAC and IP leases for that MAC. It is called "DHCP Leases" from "DHCP Pool". If you have a better modem, router, etc, you can set the timeout for DHPC Lease. After that time the address is invalid and the PC has to request new one. However when you request the IP till it is valid, you ever obtain the same IP for the same MAC.
Reset your modem/router or go to DHCP Leases and delete the record of your MAC/IP.
Hi, be aware about the difference between static IP and between having the same IP!
The default IP is never static, because anybody cannot know your network configuration!
However, you need to understand the process of DHCP Leasing.
1. Your PC send request of IP (it is identified by your hardware address of your network card - MAC).
2. DHCP server send response with an IP or more IPs that can be used for your MAC.
3. Your PC send confirmation, what address it wants the use (usually there is offer of one IP and you use one IP).
Well, many modems, routers and other devices running DHCP server make following:
They remeber the MAC and IP leases for that MAC. It is called "DHCP Leases" from "DHCP Pool". If you have a better modem, router, etc, you can set the timeout for DHPC Lease. After that time the address is invalid and the PC has to request new one. However when you request the IP till it is valid, you ever obtain the same IP for the same MAC.
Reset your modem/router or go to DHCP Leases and delete the record of your MAC/IP.
The ip address on the DHCP lease reads as a fixed address, when I have changed that and restarted the computer, I get no connection
The lease files on client machine are not intened to make changes in them. It depends on DHCP server which IP address you get. The DHCP server has own leases and may not give you new address until lease timeout. If you have access to your router, make what MartinStrec mentioned (change IP tied with your MAC and restart router), if not, you can't change that.
The lease files on client machine are not intened to make changes in them. It depends on DHCP server which IP address you get. The DHCP server has own leases and may not give you new address until lease timeout. If you have access to your router, make what MartinStrec mentioned (change IP tied with your MAC and restart router), if not, you can't change that.
I do not have a router. I changed the mac address, or rather spoofed one and had no connection until a restart when the old mac number reset.NOTHING is working.
This address has persisted through a fresh install on a new partition as well.
Last edited by dyani; 01-13-2012 at 10:22 PM.
Reason: clarity
ip route list gives this:default via 74.195.16.1 dev eth0 proto static
74.195.16.0/22 dev eth0 proto kernel scope link src 74.195.17.169 metric 1
169.254.0.0/16 dev eth0 scope link metric 1000
and that shows this is a static ip address, as does the dhcp3 lease file
Last edited by dyani; 01-14-2012 at 12:59 PM.
Reason: clari ty
OK, it seems really to be a static IP. If you are using network-manager, see its configuration. If you want to make a server, I recommend stop the NetworkManager and manually set all network settings.
You wrote about reinstall. When you just reinstall and you do not choose format HDD, some files needn't be changes. Specially the configuration files are the same as before. If you use NetworkManager, the configuration files are in your home directory ( https://help.ubuntu.com/community/NetworkManager ),
other way look to /etc/network/interfaces ( http://www.cyberciti.biz/faq/setting...terfaces-file/ )
As I wrote, I recommend you do the following:
1. stop the NM ( /etc/init.d/network-manager stop )
2. set you eth0 configuration in /etc/network/interfaces
iface eth0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.1
3. restart network
/etc/init.d/network-interace restart
/etc/init.d/networking restart
4. Check if all has been well done by ifconfig, ip route list
if you see your IP a and default route, everything is working :-)
I do not have a router. I changed the mac address, or rather spoofed one and had no connection until a restart when the old mac number reset.NOTHING is working.
This address has persisted through a fresh install on a new partition as well.
Is that a cable modem? It is common that a cable modem needs to be reset in order to recognize a new MAC address for the device directly connected to it.
OK, it seems really to be a static IP. If you are using network-manager, see its configuration. If you want to make a server, I recommend stop the NetworkManager and manually set all network settings.
You wrote about reinstall. When you just reinstall and you do not choose format HDD, some files needn't be changes. Specially the configuration files are the same as before. If you use NetworkManager, the configuration files are in your home directory ( https://help.ubuntu.com/community/NetworkManager ),
other way look to /etc/network/interfaces ( http://www.cyberciti.biz/faq/setting...terfaces-file/ )
As I wrote, I recommend you do the following:
1. stop the NM ( /etc/init.d/network-manager stop )
2. set you eth0 configuration in /etc/network/interfaces
iface eth0 inet static
address 192.168.1.30
netmask 255.255.255.0
gateway 192.168.1.1
3. restart network
/etc/init.d/network-interace restart
/etc/init.d/networking restart
4. Check if all has been well done by ifconfig, ip route list
if you see your IP a and default route, everything is working :-)
the step 2 edit above still labels the address as static, I tried that before as well as labeling it dynamic, and many other things as well NOTHING has worked. I think there must be some other configuration file that I have not read about yet that is keeping this static. Also I am wondering if network manager is a default app, since I did not install it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.