Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it L'avatar di alexmaz
    Registrato dal
    May 2001
    Messaggi
    972

    [Gentoo] Aggiungere una route

    Sul router/firewall ho su gentoo e ho aggiunto una route per una macchina Windows che fa da router per una sottorete.

    route add -net 192.168.0.0 netmask 255.255.255.0 gw 128.0.0.35

    qual'è il posto migliore per metterla per eseguire il comando al boot? /etc/conf.d/local.start?

    Grazie
    The individual has always had to struggle to keep from being overwhelmed by the tribe. If you try it, you will be lonely often, and sometimes frightened. But no price is too high to pay for the privilege of owning yourself.

  2. #2
    local.start mi sa di workaround

    /etc/conf.d/net forse è il file giusto


  3. #3
    Utente di HTML.it L'avatar di alexmaz
    Registrato dal
    May 2001
    Messaggi
    972
    ci avevo pensato pure io, ma non mi pare una file da cui eseguire comandi, ma solo un file da cui i vari /etc/init.d/net.* prenddono i paramentri di configurazione, no?
    The individual has always had to struggle to keep from being overwhelmed by the tribe. If you try it, you will be lonely often, and sometimes frightened. But no price is too high to pay for the privilege of owning yourself.

  4. #4
    Sì è così, per ogni interfaccia devi avere il rispettivo script in etcinit.d

    pero' ad esempio sul mio ho un pezzetto cosi'

    gateway="eth0/192.168.0.100" (mi sa che non ho capito )

  5. #5
    Utente di HTML.it L'avatar di alexmaz
    Registrato dal
    May 2001
    Messaggi
    972
    il comando che gli do io, instrada il traffico diretto a un'altra sottorete verso il router che fa il routing per quella sottorete... chiaro no!?
    The individual has always had to struggle to keep from being overwhelmed by the tribe. If you try it, you will be lonely often, and sometimes frightened. But no price is too high to pay for the privilege of owning yourself.

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 © 2025 vBulletin Solutions, Inc. All rights reserved.