Re: subnet-woes ...

From: Harold Gutch <logix(at)foobar.franken.de>
Date: Wed, 3 Jan 2001 02:57:18 +0100

On Tue, Jan 02, 2001 at 11:09:34AM +0100, Rainer Duffner wrote:
> Hi,
>
> Gutes Neues Jahr.
>
> leider habe ich ein Problem mit dem setup von zwei
> Subnetzen.
> Das ganze ist mir irgendwie ziemlich peinlich, weil es
> ja wahrscheinlich recht simpel ist.
> Nur: ich weiss nicht, woran es liegt, das es nicht
> so tut, wie es soll:
>
>
> Folgendes setup:
>
> attacker01 <---->
> HUB <----> fragrouter <----> HUB <----> attacker03
> freebsd01 <---->
>
>
> dabei ist:
> attacker01: 10.0.0.101
> freebsd01: 10.0.0.2
> fragrouter: 10.0.0.110 (xl0)
> 10.0.1.1 (xl1)
> attacker03: 10.0.1.2
[...]
> attacker01# netstat -rn
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use Netif Expire
> default 10.0.0.2 UGSc 0 134 xl0
> 10/24 link#1 UC 0 0 xl0 =>
> 10.0.0.2 0:1:2:9b:1e:60 UHLW 3 10927064 xl0 500
> 10.0.0.110 0:1:2:9b:1e:a2 UHLW 0 27 xl0 233
> 127.0.0.1 127.0.0.1 UH 0 341 lo0

attacker01# route add -net 10.0.1 -netmask 255.255.255.0 10.0.0.110

> attacker03# netstat -rn
> Routing tables
>
> Internet:
> Destination Gateway Flags Refs Use Netif Expire
> default 10.0.1.1 UGSc 1 123 xl0
> 10.0.1/24 link#1 UC 0 0 xl0 =>
> 10.0.1.1 0:1:2:22:a5:6c UHLW 4 75 xl0 1140
> 127.0.0.1 127.0.0.1 UH 0 14 lo0

Andersrum braucht es keine eigene Route, da das was du brauchst
schon durch die Defaultroute abgedeckt ist.

Hoffe das tuts.

bye,
  Harold

-- 
Someone should do a study to find out how many human life spans have
been lost waiting for NT to reboot.
              Ken Deboy on Dec 24 1999 in comp.unix.bsd.freebsd.misc
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 03 Jan 2001 - 02:57:41 CET

search this site