I want to serve 2 different webistes from same machine, each site having it’s own IP.
i have slightest idea that i have to change /etc/sysconfig/network/ifcfg-eth0 but I am not sure what to change.
Thanks for reply.
I added IPADDR_2 = ‘121.212.121.212’ to ifcfg-eth0 and it worked.
I will remember next time about Yast. I thought I could do that only from desktop/window mode but I just checked after reading your comments and now I know bit better.
if you make this how can you make the difference when you try to access from outside ???
this is interesting but at same time i m not understand the meaning …
till today i have think that network cards can only have one ip address at a time is this correct ?
if so how can you do this and create the difference …??
now when i go to 127.0.0.2 i get redirected to my drupal installation.
I am using it for IP based virtual hosts. If you are talking in some different context then I don’t have much knowledge about that. it is working for apache and for my purpose. I wanted to test SSL based multiple IP hosting.
You generally configure at least one network interface. That is the “device” the operating system will reference when sending data destined for that network card. It’s possible to configure multiple network interfaces for a specified physical network card, but that starts getting into advanced uses… If you’re just beginning to understand this, those advanced scenarios should be ignored for now.
As part of the configuration of an interface, various network settings are configured like IP address, subnetwork mask, default gateway, other gateways, name resolution and more. And yes, you <can> configure more than one IP address for the interface, but be aware this normally only done on Servers… There is no benefit and can cause plenty of problems if you do this on a Network Client.
On openSUSE the recommended way to configure the network card and interface is using YAST, it will prevent you from making many mistakes if you edit the network device configuration files directly.
Note also that if you have Network Manager installed, at least on KDE it looks like one of the “newer” features is to configure multiple IP addresses.
If mymind or anyone else has a further question how to access/configure, you’ll have to be more detailed and descriptive what you’re asking.