Visualizzazione dei risultati da 1 a 8 su 8
  1. #1

    2 interfacce di rete: quale la primaria?

    Ciao!

    Utilizzo Debian. Ho configurato un'interfaccia viruale sulla scheda di rete. Ora la situazione è la seguente:

    auto eth0
    iface eth0 inet static
    address IP pubblico
    netmask 255.255.255.0
    gateway gateway IP pubblico

    auto eth0:1
    iface eth0:1 inet static
    address IP privato
    netmask 255.255.255.0
    gateway gateway IP privato

    Il problema è che se attivo anche eth0:1, NON esco con IP pubblico, ma con quello privato (poi nattato dal router)!!

    Come posso dirgli di utilizzare il pubblico per uscire? E soprattutto, perchè usa il privato!??

    Grazie

  2. #2
    Ho fatto alcune prove:

    Se avvio o riavvio /etc/init.d/networking mi esce con il privato, se uso ifdown eth0 e ifup eth0 mi esce con il pubblico!! :master:

    Help!!

  3. #3
    Utente di HTML.it L'avatar di Sym81
    Registrato dal
    Jan 2002
    Messaggi
    114
    Com'è la route di default nei due casi?
    "Dream on
    Do you believe...all the things that you are seeing are true?
    The Start's where the End's leading you
    Do you believe...all's as twisted as one would perceive?
    Seek the Answer and soon you'll believe"

  4. #4
    In questo modo funziona (esce col pubblico)

    codice:
    # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    212.xx.xx.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    192.xx.xx.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    0.0.0.0         212.xx.xx.1     0.0.0.0         UG    0      0        0 eth0


    Poi riavvio il servizio, mi da un errore...
    # /etc/init.d/networking restart
    Reconfiguring network interfaces: SIOCDELRT: No such process
    done.

    ...e si mette ad uscire col privato...

    codice:
    # route -n
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    212.xx.xx.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    192.xx.xx.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
    0.0.0.0         192.xx.xx.253   0.0.0.0         UG    0      0        0 eth0
    0.0.0.0         212.xx.xx.1     0.0.0.0         UG    0      0        0 eth0

  5. #5
    Utente di HTML.it L'avatar di Sym81
    Registrato dal
    Jan 2002
    Messaggi
    114
    Il problema potrebbe essere che specifichi due route di default.
    "Dream on
    Do you believe...all the things that you are seeing are true?
    The Start's where the End's leading you
    Do you believe...all's as twisted as one would perceive?
    Seek the Answer and soon you'll believe"

  6. #6
    Intendi i due gateway? Devo utilizzare lo stesso per entrambi?

  7. #7
    Utente bannato
    Registrato dal
    Sep 2004
    Messaggi
    45
    dovresti vedere se ai


    netcardonfig ...

  8. #8
    Il comando netcardonfig? Non ce l'ho...

    Comunque non impostando il gateway per l'interfaccia virtuale funziona correttamente!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.