Re: Host Route

From: Holger Wolff <Wolff(at)CargEx.de>
Date: Fri, 8 Nov 2002 07:42:05 +0100

> -----Original Message-----
> From: Bernd Walter [mailto:ticso(at)cicely8.cicely.de]
> Sent: Thursday, November 07, 2002 9:55 PM
> To: Holger Wolff
> Cc: De-bsd-questions(at)DE.FreeBSD.ORG
> Subject: Re: Host Route
>
>
> On Thu, Nov 07, 2002 at 09:11:27PM +0100, Holger Wolff wrote:

> > Konkret versuche ich eine einzelne IP aus dem "Netz A" das über
> > Interface 1
> > direkt erreichbar ist, auf ein anderes Interface zu Routen
> wo diese IP direkt
> > erreichbar ist.

> > Versucht hatte ich : route add -host "IP" -interface "Interface"

> Was sagt »netstat -nr« und »ifconfig -a« nach dem Eintrag.
> Welche IP willst du ereichen? Was sagt »route get $zielip«?

Errichen möchte ich die IP 62.132.163.98

worf-master:~ # route add -host 62.132.163.98 -interface fxp1
add host 62.132.163.98: gateway fxp1

worf-master:~ # netstat -nr -f inet
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 62.132.163.1 UGSc 2 467670 dc0
62.132.163/24 link#3 UCSc 7 0 dc0
62.132.163.2 00:40:05:9f:3d:41 UHLW 0 145 lo0 =>
62.132.163.2/32 link#3 UC 1 0 dc0
62.132.163.98 00:e0:81:21:9c:49 UHLS 0 192 fxp1
127.0.0.1 127.0.0.1 UH 11 362798 lo0
192.168.0 link#2 UC 7 0 fxp1
192.168.0.9/32 link#2 UC 0 0 fxp1
192.168.0.73 00:e0:81:21:9c:49 UHLW 0 192 lo0
192.168.20 link#3 UC 1 0 dc0
192.168.20.1 00:40:05:9f:3d:41 UHLW 0 3998 lo0

worf-master:~ # ifconfig -a
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.0.73 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::2e0:81ff:fe21:9c49%fxp1 prefixlen 64 scopeid 0x2
        inet 192.168.0.9 netmask 0xffffffff broadcast 192.168.0.9
        ether 00:e0:81:21:9c:49
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.20.1 netmask 0xffffff00 broadcast 192.168.20.255
        inet6 fe80::240:5ff:fe9f:3d41%dc0 prefixlen 64 scopeid 0x3
        inet 62.132.163.2 netmask 0xffffffff broadcast 62.132.163.255
        ether 00:40:05:9f:3d:41
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
        inet 127.0.0.1 netmask 0xff000000

worf-master:~ # route -nv get 62.132.163.98
u: inet 62.132.163.98; u: link ; RTM_GET: Report Metrics: len 164, pid: 0, seq 1, errno 0, flags:<UP,GATEWAY,HOST,STATIC>
locks: inits:
sockaddrs: <DST,IFP>
 62.132.163.98
   route to: 62.132.163.98
destination: 62.132.163.98
  interface: fxp1
      flags: <UP,HOST,DONE,LLINFO,STATIC>
 recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire
       0 0 0 0 0 0 1500 0

locks: inits:
sockaddrs: <DST,GATEWAY,IFP,IFA>
 62.132.163.98 fxp1:0.e0.81.21.9c.49 fxp1:0.e0.81.21.9c.49 192.168.0.73

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 08 Nov 2002 - 07:42:10 CET

search this site