Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 1996 21:28:02 +0100
From:      Angelo Turetta <ATuretta@stylo.it>
To:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   IP Aliasing: a little confused
Message-ID:  <c=IT%a=_%p=Regulus%l=SERVERNT960223212801AU005B00@servernt.stylo.it>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I hope someone can make it more clear.

My Internet router is running 2.0.5R: its NE2000 is assigned the IP 194.21.207.254 out of my class "C" network.
I've other PCs 'Internet enabled' on the same network, and a PPP connection via V34 leased line to my Internet provider.

On the same physical LAN, I've setup an internal IP network using one of the class "C" reserved for internal use by the RFCxxxx (sorry I don't have the RFC number handy :-(      192.168.1.x
In rc.local, I've added:

	ifconfig ed1 alias 192.168.1.254 netmask 0xffffff00
	ifconfig ed1 alias 194.20.21.28 netmask 0xfffffff0
(the second is for temporarily keeping the old IP addresses I used to have before requesting a class "C")

After boot, my routing table is:

Internet:
Destination      Gateway            Flags     Refs     Use     Netif Expire
default          194.20.20.37       UGc        25        9      tun0
127.0.0.1        127.0.0.1          UH          2       73       lo0
192.168.1        link#1             UC          0        0
194.20.20.37     194.21.207.250     UH         16        0      tun0
194.20.21.16     link#1             UC          0        0
194.21.207       link#1             UC          0        0
194.21.207.254   127.0.0.1          UGHS        0        0       lo0
224              link#1             UCS         0        0

Now, weirdness # 1: when the router must tell its address to the ethernet, it always uses the one from the lowest numbered network, and not from the same network as the source address: that is, when I traceroute a PC on the internal network from one on the Internet network, I get:

  E:\>tracert www.regulus.it

  Tracing route to segreteria.regulus.it [192.168.1.1]
  over a maximum of 30 hops:

    1   <10 ms   <10 ms    10 ms  unix.regulus.it [192.168.1.254]
    2    10 ms    10 ms    10 ms  segreteria.regulus.it [192.168.1.1]

And the same happens for packets going through the ppp link.

  E:\>tracert www.dsnet.it

  Tracing route to maggiore.dsnet.it [194.20.20.15]
  over a maximum of 30 hops:

    1   <10 ms   <10 ms    10 ms  unix.regulus.it [192.168.1.254]
    2   150 ms   150 ms   160 ms  mazzini.dsnet.it [194.20.20.37]
    3   160 ms   170 ms   171 ms  maggiore.dsnet.it [194.20.20.15]

Is this normal ?????
I'd think if a fixed address must be used, it should be the 'TRUE' one, not one of the aliases.

Weirdness # 2 (worst than first): one of the PCs on the 'Internet' subnet has a dial-up connection to another site. There, the IP addresses are taken from another RFCxxxx reserved network: 10.0.0.0 netmask 255.0.0.0. My side of the link is on the machine at 194.21.207.13.

when I issue this command:

	# route add -net 10 194.21.207.13

the new route becomes:

Destination      Gateway            Flags     Refs     Use     Netif Expire
10               194.21.207.13      UGSc        0        0      tun0

You may see the Netif value is wrong, as it routes packets for the new net to the 'default' interface, rather than the interface through which the gateway is reacheable. Obviously, packets sent to 10.x.x.x are lost.

Is there any way to work around this problem ?

Thanks in advance for any help.

Angelo.


-----------------------------------------------------------------
 Angelo Turetta                         mailto:aturetta@stylo.it
 Stylo Multimedia - Bologna - Italy         http://www.stylo.it/


[-- Attachment #2 --]
x>"IPM.Microsoft Mail.Note1$ $	!F0AD0845876CCF11B1E00000440136B7
IP Aliasing: a little confused
d	#)&6xpeIHOPESOMEONECANMAKEITMORECLEARMYINTERNETROUTERISRUNNING205R:ITSNE2000ISASSIGNEDTHEIP19421207254OUTOF	LZFu
PTch
set223Fprq1 U4 "5zhel Dlg}
	

`ng103 
 I hope spe cki@`0le
.

My@0 `u  run 2.0.5Rv:E#`!aigd t@P 194.21%07%54 {!a%fp P# P"C" !wkI'vo$aPC ' 	`d'%$bsa&,#n$@a(+G0 cti*v0 V3%a$@lto&" .o,O*)phy@ LAN+@'up+Q 1q$' u"A&$b&hr($@o!24b $bRHFCx8 (rr  d '@(7&uq+p :-( ;$"p168;.x'8rc.1a1ad
d: f$)pd@0 /;x%!s30x
A#`>?$"%8AO
(*C+q!6R mp
 ep"2$b$@$=5 P7!$A.9C:@6Qq
P^s,`"A+&g)Aq(@+@&1!RH_)!>
 >DL#a,c;GRpa SF`g ;R
T>U71;,`&ExH

aul@'SDf"37SUGcS%S9;2`

12%`""W;[UaHS ;73?S[g;S-k#]yUR9S0c&`'Xm$c^);c[:Dwgabc%a?klm,w%s\Y4Ho_22rBSnosp_ HNow+@weVd#$"w*$!Um4@ "I-$b(a!+@@Sa 7!~!IBR$Sz}:$1*n(@߀*#ac=J"$`Rp!z{PtH@p!S+9*234s*$ *PgQx
;E:\\>4@w.gWp4.Ќ>TA"2-	 09 [;x|1]/q+xp: %30qP;3;<pT$"ix@^ŗ^ǐM+q*Gp16R
c#goH!Qgh$SП2w2 ds!.Tpg,p"Xf15/?O_oX6ӭzziX:_rv$7oPy"! r ?B'$BwAC!+?x$1}|:@J3>spWp$@!$b'TRUE)e+@"4y@W{	 ('1}:)"4y(*()sub!#81-2q,	-p(D . (aQ$eI
-Q675'"\0AV%5 
4w2!*Q=@$1~3
Ptm?=B{= -!$b:@MRS/T?UOV\v\YSYt~[9
Y`qq	$Sv@Q!w`+A !S vGۅ!~EWD)2WPp+@H@(S#gG{1Pg!pp)Ob,`sH+@v0-ϡq̃L0S+Q -t!Q!.)߀
pka{=Pnq6Rp
"g-ۤ p@8@Hp-:@L0y`0Wqp,- B$	I@H6hp:///f! !pIP Aliasing: a little confusedq,7CNmϩ! n@9n-?	G/c=IT;a= ;p=Regulus;l=SERVERNT-960223202759Z-15@06)@0n-
4?4T)+*%=-

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c=IT%a=_%p=Regulus%l=SERVERNT960223212801AU005B00>