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've got a Redhat 9 machine set up as a NAT on my network. This is connected via ethernet to my NTL Cable Modem. However, one machine in the house does not have a network card so uses the USB connection when it is required.
The problem comes when the cable modem is plugged back into the ethernet again and the IP address of the connection has changed, the ethernet card still has the old one. Although deactivating and reactivating the network card solves the problem is there a way of automatically checking if the ip address has changed (a script that could be Cronned etc).
I know this is not the MAC related problems associated with NTL as is worked with Windows XP using the same machine.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Well, you could cron DHCP...
I would recommend simply getting a NIC for the box that doesn't have one. They aren't that expensive. If you look on pricewatch.com, you can even get an Intel 82559-based NIC (great chipset) for around $20. You can get shoddy (like rl8139) cards for much less, probably less than $10 with tax and shipping.
Yeah, but I thought your problems were with the NAT box pulling a new IP addr when you hooked it back up to the cable modem. This doesn't have anything to do dhcpd on your NAT box. You need to configure your dhclient or dhcpcd. You need to let us know which of these you are running. just ps -aux | grep eth0 and you should see one of these two attached to an interface.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.