Toon posts:

Meerdere IP`s binden aan 1 nic

Pagina: 1
Acties:
  • 33 views sinds 30-01-2008

Verwijderd

Topicstarter
Ik heb hier al wat topics over gevonen maar geen van alle hebben ze me kunenn helpen.

ik wil meerdere ip`s aan 1 nic binden.

dit kan zeer eenvoudig met iproute:
ip addr add xxx.xxx.xxx.xxx dev eth0

dit werkt, ik kan het adres gewoon pingen, maar als ik reboot is ie weg!

hoe kan ik op een andere manier meerdere adressen aanmaken? (bijvoorbeeld in mijn /etc/network/interfaces)

Ik gebruik debian linux met 1 nic.

  • TrailBlazer
  • Registratie: Oktober 2000
  • Laatst online: 07-02 09:48

TrailBlazer

Karnemelk FTW

makkelijkste is gewoon ff deze regels toevoegen in /etc/init.d/networking onder het start kopje.
Als je de man page van interfaces had gelezen dan had je gezien dat je met up /down statements een command uit kan laten voeren als een interface wordt opgebracht
pre-up command
Run command before bringing the interface up. If this command
fails then ifup aborts, refraining from marking the interface as
configured, prints an error message, and exits with status 0.
This behavior may change in the future.

up command

post-up command
Run command after bringing the interface up. If this command
fails then ifup aborts, refraining from marking the interface as
configured (even though it has really been configured), prints
an error message, and exits with status 0. This behavior may
change in the future.

down command

pre-down command
Run command before taking the interface down. If this command
fails then ifdown aborts, marks the interface as deconfigured
(even though it has not really been deconfigured), and exits
with status 0. This behavior may change in the future.

[ Voor 116% gewijzigd door TrailBlazer op 04-05-2006 11:11 ]


  • Koffie
  • Registratie: Augustus 2000
  • Laatst online: 19-02 14:37

Koffie

Koffiebierbrouwer

Braaimeneer

Kom op, je gaat me niet vertellen dat je als Linux beheerder niet weet waar dit te zoeken.

Tijd voor een nieuwe sig..


Dit topic is gesloten.