Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!news.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!noc.near.net!paperboy.wellfleet.com!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!reuter.cse.ogi.edu!hp-cv!hp-pcd!news1.boi.hp.com!hpax!hpscit.sc.hp.com!reink
From: reink@neth.hp.com (Reinier Kleipool)
Newsgroups: comp.os.386bsd.questions
Subject: NetBSD 1.0: Routing problems...
Date: 10 Jan 1995 23:09:42 GMT
Organization: Hewlett Packard
Lines: 100
Message-ID: <3ev43m$q5i@hpscit.sc.hp.com>
NNTP-Posting-Host: hpuamsa.neth.hp.com
X-Newsreader: TIN [version 1.2 PL2]
Hello,
I have been struggeling with internetwork routing for some time now.
For some reason unknown to me I am not able to get from one network
through a host to an other network. See the following drawing for my
network:
network 192.1.2 network 192.1.1
------------------------ -----------------------
|(if0) (le0)| |(el0) (ed0)| <- Interfaces
___________ ______________________ __________
[192.1.2.100] [192.1.2.11 192.1.1.11] [192.1.1.13] <- addr
[ PC1 ] [ UX2 ] [ UX1 ] <- Hostname
[ (pctcp) ] [ (NetBSD) ] [ (NetBSD) ] <- O.S.
----------- ----------------------- ----------
With this network I want to be able to ping from PC1 to UX1
(thereby going through host UX2). As you can suspect this does
*NOT* work. But why?
I have the following configurations:
PC1:
PCTCP.INI file contains
[pctcp if 0]
; Overschie routing experiment
ip-address = 192.1.2.100
router = 192.1.2.11
broadcast-address = 192.1.2.255
subnet-mask = 255.255.255.0
UX2:
A kernel compiled with option GATEWAY (Enables IP Packet forwarding)
Interfaces:
ifconfig el0 inet 192.1.1.11 netmask 255.255.255.0
ifconfig le0 inet 192.1.2.11 netmask 255.255.255.0
Routing Table as Follows:
Internet:
Destination Gateway Flags Refs Use Interface
127.0.0.1 127.0.0.1 UH 0 4 lo0
192.1.1 link#1 UC 0 0 el0
192.1.1.10 0:1:1b:a:7d:4c UHL 0 970 el0
192.1.1.11 2:60:8c:c:d:84 UHL 2 156 lo0
192.1.1.13 0:c0:58:20:61:4 UHL 0 0 el0
192.1.1.255 link#1 UHL 1 472 el0
192.1.2 link#2 UC 0 0 le0
192.1.2.11 8:0:9:96:1b:6e UHL 0 1 lo0
192.1.2.255 link#2 UHL 1 1013 le0
UX1:
A kernel compiled without option GATEWAY
Interface:
ifconfig ed0 inet 192.1.1.13 netmask 255.255.255.0
Routing Table as Follows:
Internet:
Destination Gateway Flags Refs Use Interface
127.0.0.1 127.0.0.1 UH 1 2 lo0
192.1.1 link#1 UC 0 0 ed0
192.1.1.10 0:1:1b:a:7d:4c UHL 1 795 ed0
192.1.1.11 2:60:8c:c:d:84 UHL 1 23 ed0
192.1.1.13 127.0.0.1 UGHS 1 25 lo0
192.1.2 192.1.1.11 UG 0 5 ed0
What *DOES* work is:
1- I can ping from PC1 to UX2.
2- I can ping from the console of UX2 to PC1
3- I can ping from the console of UX2 to UX1
4- I can use telnet from the console of UX2 to UX1
What does *NOT* work is:
1- I cannot ping from PC1 to UX1 (use routing thus)
2- I cannot use telnet from PC1 to UX2 (!)
Reinier Kleipool
/\
-( )-/##------------------------------------------------------------------
}{/ ## One has to look out -- Overschie ----------------------------
.====. for engineers- they -- Reinier Kleipool ---- Tel 010-4154025
| [] | begin with sewing machi- -- ---- Fax 010-4625928
| | nes and end up with the --Mail ----------------------------------
| | atomic bomb..... --X400 C=nl A=400net P=hp O=hp S=Kleipool
| [] | Marcel Pagnol --Desk Reinier KLEIPOOL/ HPITCB/85
| | --rfc822 REINIER_KLEIPOOL@hpitcb.desk.
| | -- hp.com
---------------------------------------------------------------------------