[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wo konfiguriert man Routen?



Am Wed, Jan 08, 2003 at 06:22:19PM +0100 schrieb Christian H. Kuhn:

> > > /etc/network/interfaces? [ ...]
> > 
> > iface eth0 inet static
> >   address dei.ne.i.p
> >   gateway 192.168.1.2
> >   netmask 255.255.255.0
>  
> Und woher weiß Linux dann, welches Gateway für welches Netz?
> 192.168.1.2 für 192.168.2.x, 192.168.1.3 für 192.168.3.x, keins für
> 192.168.1.x,. Der Default-Eintrag kommt ja immer noch vom pppd.
> 
> > dei.ne.i.p ist dann vermutlich 192.168.1.1.
> Richtig. 

Um auf deine Frage im Subject zurück zu kommen:

Das ist (etwas indirekt) aus man 5 interfaces entnehmbar.

,--------[ /etc/network/interfaces ]
| auto eth0
| iface eth0 inet static
| address 192.168.203.113
| network 192.168.192.0
| netmask 255.255.240.0
| broadcast 192.168.207.255
| gateway 192.168.200.254
|
| up route add -net 172.30.0.0 netmask 255.255.0.0 gw 192.168.200.254 eth0
| down route del -net 172.30.0.0 netmask 255.255.0.0 gw 192.168.200.254 eth0
`--------

Aleks



Reply to: