*BSD News Article 78618


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!iafrica.com!uct.ac.za!quagga.ru.ac.za!howland.erols.net!newsfeed.internetmci.com!in1.uu.net!news.maz.net!news.bs.tpl.net!news.bs.priconet.de!xmp.priconet.de!cayman.priconet.de!marc
From: marc@cayman.priconet.de (Marc Zimmermann)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: annoying route problem
Date: 17 Sep 1996 22:44:22 GMT
Organization: Priconet, e.V.
Lines: 87
Message-ID: <51n9k6$8nm@cayman.priconet.de>
References: <517a1b$aoc@cayman.priconet.de> <51fdqs$159@anorak.coverform.lan>
NNTP-Posting-Host: cayman.priconet.de
X-Newsreader: TIN [version 1.2 PL2]

Hiya!
In article <51fdqs$159@anorak.coverform.lan> you wrote:
 
> I'd skip the "-host -interface" bit.  Before the route command, you should
> have:
 
.
.
.
 
 
> Then running "route add 194.195.236.98 172.16.16.2" should produce
 
> 194.195.236.98        172.16.16.2     .....
 
Hmm, it does, but it has an interesting effect:
 
The destination ether address is wrong. Have a look:

This is ok (The echo request):
 
ETHER:  ----- Ether Header -----
ETHER:  
ETHER:  Packet 1 arrived at 0:30:52.04
ETHER:  Packet size = 98 bytes
ETHER:  Destination = 0:0:e8:8:cb:72, Accton Technology Corporation
ETHER:  Source      = 8:0:20:20:f7:b6, Sun
ETHER:  Ethertype = 0800 (IP)
ETHER:  
IP:   ----- IP Header -----
.
.
.
IP:   Protocol = 1 (ICMP)
IP:   Header checksum = 4fb7
IP:   Source address = 194.195.236.98, cayman
IP:   Destination address = 194.64.160.18, bs01
 
so far so good, this was the ping.
 
But here comes:
 
ETHER:  ----- Ether Header -----
ETHER:  
ETHER:  Packet 2 arrived at 0:30:52.17
ETHER:  Packet size = 98 bytes
ETHER:  Destination = 0:0:e8:8:cb:72, Accton Technology Corporation
ETHER:  Source      = 0:0:e8:8:cb:72, Accton Technology Corporation
ETHER:  Ethertype = 0800 (IP)
ETHER:  
IP:   ----- IP Header -----
.
.
.
IP:   Source address = 194.64.160.18, bs01
IP:   Destination address = 194.195.236.98, cayman
IP:   No options
IP:   
ICMP:  ----- ICMP Header -----
ICMP:  
ICMP:  Type = 0 (Echo reply)
.
.
.
 
Gotcha! The IP  address is ok, but  the ethernet address is wrong. ==>
My  Sun only sees   the packet, if   the iface is  in  promiscous mode
(i.e. snooping)
 
With -interface I get the same probs as previously posted.
 
:-(
 
Cheers,

--
 
    _______________________________________ 
    \_______________________________  / / /   Marc Zimmermann
                                   / /_/_/__________________________________
        M.Zimmermann@priconet.de  /________________________________________/
        zimmerma@ibr.cs.tu-bs.de
 
              ... ceterum censeo MSDOS esse delendam ...

M: Shit! -- U: What? -- M: MS-DOS! -- U: No! -- M: Yes! -- U: Shit!