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 added the line '/sbin/ifconfig eth0:0 some_ip_address' to the end of the /etc/rc.d/rc.local file to set up a subinterface on my ethernet card for virtual hosting. Because this file is read everytime the system starts, the subinterface get started everytime. My problem is that for some reason it stops every once in a while (like once a week but not regularly). When I run the ifconfig command eth0 will be there and eth0:0 will not, so I have to re-execute the command. Does anyone know what I can do (besides writing and scheduling some kind of script) to assure that this subinterface will stay up, or at least what log files I can look at to see what's happening?
Any info would help, thanks.
Not sure why it would hang. I've never named one eth0:0, but rather eth0:1. But I can't imagine why this would be. However, my suggestion is that if you're only using this for virtual hosting, you should take a look at name-based virtual hosting rather than ip-based virtual hosting. Depending on how many sites your going to host, it can really save IP addresses.
I prefer name based virtual hosting also, and use both. In this case (for whatever reason) my isp set me up with another ip address and configured their dns servers with it, so I'm kind of trying to accomodate them. Trying to get them to change something is like pulling teeth.
I have a Kingston NIC, pretty new model, not sure of the details though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.