problem se static_route
Jan Friedel
frido at obluda.cz
Sun May 9 19:43:01 CEST 2004
On Sun, May 09, 2004 at 07:25:39PM +0200, Jan Pechanec wrote:
> On Sun, 9 May 2004, Cizek Milan wrote:
>
> >Ahoj,
> >uz si zase vazne nevim rady... mam 2 BSD stroje:
> >
> >BSD1:
> > - vr0 (10.0.4.1/24)
> > - rc.conf:
> > static_routes="net2 net3"
> > route_net2="10.0.2.0/24 -iface vr0"
>
> -iface jsem sice nikdy nepotreboval, ale co se divam, tak
>
> -iface ~RTF_GATEWAY - destination is directly reachable
>
> coz v tomto pripade neni pravda, 10.0.2.0/24 neni na stejnem
> segmentu. V pripade 10.0.2.0/24 musis misto -iface zadat branu z
> rozsahu 10.0.3.0/24. h.
Tohle je zcela jiste spravne. Jen mi nejak pro tento pripad chybi v
`netstat -rn` pouzita adresace fyzickych rozhrani ;/
--
frido
>
> > route_net3="10.0.3.0/24 -iface vr0"
> > - netstat -rn
> >
> >Destination Gateway Flags Refs Use Netif Expire
> >10.0.2/24 link#3 UCSc 0 0 vr0
> >10.0.3/24 link#3 UCSc 2 0 vr0
> >10.0.4/24 link#3 UC 0 0 vr0
> >127.0.0.1 127.0.0.1 UH 0 0 lo0
> >212.158.158.236/30 link#1 UC 0 0 ed0
> >
> >
> >BSD2:
> > - xl0 (10.0.3.1/24)
> > - wi2 (10.0.2.1/24)
> > - rc.conf:
> > static_routes="net4"
> > route_net4="-net 10.0.4.1/24 -iface xl0"
> > - netstat -rn
> >
> >Destination Gateway Flags Refs Use Netif Expire
> >default 81.2.200.1 UGSc 162 41298 wi0
> >10.0.1/24 link#2 UC 9 0 wi1
> >10.0.2/24 link#3 UC 0 0 wi2
> >10.0.3/24 link#4 UC 3 0 xl0
> >10.0.4/24 link#4 UCSc 1 0 xl0
> >81.2.200/27 link#1 UC 1 0 wi0
> >
> >
> >Z BSD2 v pohode pinknu na 10.0.4.1. Z BSD1 rovnez funguje ping na 10.0.3.1,
> >nicmene nefunguje ping na 10.0.2.1. :( Jeste dodam ze oba stroje (vr0+xl0)
> >jsou zapojene do stejneho switche (testovaci zapojeni). Muzete mi nekdo
> >PROSIM poradit, proc mi to nefunguje? Uz jsem se dovedel, ze tohle reseni
> >neni zrovna nejlepsi, nicmene to potrebuji alespon nejak propojit (a co
> >nejrychleji). Dekuji.
> >
> >Milan Cizek (networking lama)
> >
> >
> >
>
> --
> Jan Pechanec <jp (at) devnull (dot) cz>
> --
> FreeBSD mailing list (users-l at freebsd.cz)
> http://www.freebsd.cz/listserv/listinfo/users-l
More information about the Users-l
mailing list