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 have apache2 running and am playing with virtual hosts and having 192.168.1.255 and 192.168.1.254 (and 192.168.1.253 etc) as two (or more) hosts so that they can point to different websites.
For the virtual hosts to work I have to add the IP address to the ethernet device using the following command.
Code:
/sbin/ifconfig eth0:0 192.168.1.254
But I have to do that before Apache is started.
Is there a way that I can have the computer do that command when it boots up before it starts Apache?
I only know how to do it graphically, but on FC3 with GDE, you can use system-config-network to add a new (logical) ethernet device and give it any IP address you want. Then just check the box that says, "activate this device when computer starts". But it seems like it would be easier for you to use name based virtual hosting and run all the sites on the same IP address.
Sorry I can't be more helpful, but I'm a newbie at this stuff myself.
Graphically is good, I am a newbie too (although being a programmer I dont mind text if I have instructions)
Ive gone to the YAST control centre and to yast-system-config and looked at most of the settings including the ones in hardware-network.
I think I might have to set a setting to run a script and then go and edit that script.
I'll have another look later but in the mean time anyone who knows SuSE would really help.
Don't configure a host with 192.168.1.255, this is a broadcast address for the 192.168.1.0 network and you will get all sort of weirdities if you attempt to connect to it.
Thanks, those links helped and I made my config file needed. It works great, I got to see it set the IP address as I watched it quickly boot up everything.
I did relise later that 192.168.1.255 was my broadcast address and not my default IP address as I had thought. Thanks for the warning though pete.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.