From: Christian Bricart <christian@bricart.de>
To: gentoo-user-de@lists.gentoo.org
Subject: Re: [gentoo-user-de] routing über eth0
Date: Thu, 18 Oct 2007 18:41:12 +0200 [thread overview]
Message-ID: <47178CA8.6010004@bricart.de> (raw)
In-Reply-To: <20071018182309.mttdhb64g4s4s0so@mail.nerd2nerd.org>
twist@evilhome.de wrote:
>
>> twist@evilhome.de schrieb:
>>> Jan Kohnert schrieb:
> [..]
>>> > /etc/con.d/net.example kennst du? Da sind folgende Zeilen her:
>>> > # Here's how to do routing if you need it
>>> > #routes_eth0=(
>>> > # "default via 192.168.0.1" # IPv4 default route
>>> > # "10.0.0.0/8 via 192.168.0.1" # IPv4 subnet route
>>> > # "::/0" # IPv6 unicast
>>> > #)
>>>
>>> funktioniert leider nicht, da die alle ueber einen gateway gehen. den
>>> hab ich nicht, ich hab nur ein device wo das internet drann haengt
>>> (also richtig grosses internet *g*)
> [..]
> wie gesagt, die kiste hat kein gateway. die haengt direkt im netz.
> klartext: ich hab da so ein schnuckeliges subnetz mit 128 ips die direkt
> geroutet werden. da muss man sich nicht um nen gw kuemmern, da gibt man
> das device an. eth0 hat ne subnetzmask von 0.0.0.0 und als route muss
> ich im moment noch
>
> route add default dev eth0
>
> eintragen... und das nervt halt... das per hand eintragen. was ich suche
> ist der passende befehl fuer die /etc/conf.d/net der mir obige zeile
> ausfuehrt.
und wenn man einfach mal drüber nachdenkt, was da in dem Sniplet ganz
oben steht (ich schreib den gekürzten relevanten Teil nochmal hin, damit
es evtl eher in's Auge springt..):
> #routes_eth0=(
> # "default via 192.168.0.1" # IPv4 default route
> #)
und dann vergleicht man das mit deinem Kommando:
> route add default dev eth0
hmmm... kurz darüber nach- und weitergedacht...
_könnte_ evtl einfach ein Eintrag:
> routes_eth0=( "default dev eth0" )
die Lösung sein...? hmmm...
Um ganz sicher zu gehen, dass keine antiquierte Software versucht diese
Route zu setzen, zusätzlich noch ein Eintrag:
> modules_eth0=( "iproute2" )
und "sys-apps/iproute2" emergen (falls noch nicht sowieso geschehen..
kein Mensch benutzt mehr freiwillig "ifconfig" und "route"..)
Christian
P.S. Wobei das schon ein krankes Setup ist, wenn's kein explizites
Gateway gibt.. entweder man hat eins, oder man bekommt eins zugewiesen
(ospf/bgp) - naja.. wenn du der Meinung bist das tut ist's ja ok
--
gentoo-user-de@gentoo.org mailing list
next prev parent reply other threads:[~2007-10-18 16:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 20:07 [gentoo-user-de] routing über eth0 twist
2007-10-17 20:15 ` Jan Kohnert
2007-10-18 4:44 ` twist
2007-10-18 4:58 ` Jan Kohnert
2007-10-18 16:23 ` twist
2007-10-18 16:41 ` Christian Bricart [this message]
2007-10-18 16:55 ` twist
2007-10-18 17:23 ` Christian Bricart
2007-10-18 18:15 ` Bernd Wurst
2007-10-18 19:12 ` [gentoo-user-de] OT: Hetzner Netzmaske (war: Re: routing über eth0) Christian Bricart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47178CA8.6010004@bricart.de \
--to=christian@bricart.de \
--cc=gentoo-user-de@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox