Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Linux Forum Linux-Web.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

18.02.2003, 15:24

Virtuelle IP-Adressen dauerhaft unter SUSE 8.1 anlegen

Hallo Miteinander,

ich möchte unter Apache verschiedene Webspaces unter Zuhilfenahme der VirtualHost-Direktive anlegen. Soweit ich es richtig verstanden habe, müssen hierzu zunächst der installierten Netzwerkkarte virtuelle IP-Adressen zugeordnet werden. Leider habe ich bis jetzt noch nichts gefunden, damit Einträge wie z.B.:

ifconfig eth0:1 192.168.0.251
ifconfig eth0:2 192.168.0.252
ifconfig eth0:3 192.168.0.253

permanent nach Systemneustart bei einem Suse 8.1 System erhalten bleiben?

Vielen Dank im Voraus

Raui

pg

Schüler

  • »pg« ist männlich

Beiträge: 145

Wohnort: Freiburg

Beruf: FIAE

  • Nachricht senden

2

20.03.2003, 11:38

RE: Virtuelle IP-Adressen dauerhaft unter SUSE 8.1 anlegen

Zitat

/etc/sysconfig/network/ifcfg.template
# Multiple addresses (aka aliases)
# There are several ways to assign more than one IP address to a network
# interface. If you ever want to use YaST2 for this you should choose the
# first possibility:
# 1) one IP address per config file:
# create multiple copies of your master config files and add ':<string>' to
# the filenames of the copy. Prefer increasing number starting at 1.
# 2) multiple IP addresses per config file:
# You can extend the variable name 'IPADDR' by any string you like (IPADDR_1,
# IPADDR_FOO, IPADDRxxx, ...) and use these variables for your IP addresses.
# If you need some additional parameters for these addresses, then just add
# the same extension to these variable names.
# IPADDR_AAA=1.2.3.4
# NETMASK_AAA=255.0.0.0
# BROADCAST_AAA=1.2.3.55
# IPADDR_BBB=10.10.2.3/16
# LABEL_BBB=BBB
# an so on ...
#
# You do not need to set a label for any address. But then you should not use
# ifconfig any longer; go and use ip. If you want to use ifconfig then omit the
# label for your main address and set a label for every additional address.
# This is equivalent with using aliases with method 1.
#
# !!! YaST2 is not able to read multiple addresses from one file. Use this only
# if you configure your stuff manually anyway !!!



du musst das ganze also manuell in der Datei /etc/sysconfig/network/ifcfg-eth0 anpassen.

pg
It's not an optical illusion, it just looks like one.
-- Phil White

Thema bewerten