From owner-freebsd-questions Wed Jan 17 16: 9:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.infowest.com (ns1.infowest.com [204.17.177.10]) by hub.freebsd.org (Postfix) with ESMTP id 77BE637B699 for ; Wed, 17 Jan 2001 16:09:29 -0800 (PST) Received: from Presario (216.190.31.101.yoda.infowest.net [216.190.31.101]) by ns1.infowest.com (Postfix) with SMTP id 7B42E20F44; Wed, 17 Jan 2001 17:09:21 -0700 (MST) Message-ID: <004c01c080e3$0709fb00$0200fea9@infowest.com> From: "Lorin Lund" To: "\"Alexander Derevyanko\"" Cc: Subject: Re: Two subnetworks on one physical segment. Date: Wed, 17 Jan 2001 17:09:26 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0043_01C080A8.3F3B8420" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0043_01C080A8.3F3B8420 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Yes, it is legal to have two different IP subnets on the same ethernet = LAN. Yes, can make your FreeBSD box talk to both subnets with a single NIC. = You just have to assign two different IP addresses to the same card. (man ifconfig -- see 'alias' = parameter) I just tested this. "rc.conf" was ifconfig_ed1=3D"inet 169.254.0.1 netmastk 255.255.255.0" gateway_enable=3D"YES" "rc.conf" now ifconfig_ed1=3D"inet 169.254.0.1 netmastk 255.255.255.0" ifconfig_ed1_alias0=3D"inet 192.168.0.1 netmask 255.255.255.0" gateway_enable=3D"YES" I left my Win98 notebook at it's orignal address (169.254.0.2) and = changed my 2nd FreeBSD box to 192.168.0.4. The Win98 notebook was able to telnet into the FreeBSD box at = 192.168.0.4, and that FreeBSD box could ping the Win98 notebook. ----- Original Message ----- From: Alexander Derevyanko To: Sent: Wednesday, January 17, 2001 1:25 PM Subject: Two subnetworks on one physical segment. > > Hello! > > Few days ago i see strangely conigured network, and > i need some advise. The problem is: > On one physical network segment (one hub + coaxial cable connected to > hub) > where exists two different networks, with different first byte of IP > address. > Netmasks are 0xffffff00. > Some computers belong to one of the network, some to other. > Is such configuration allowed ? If so, how can i make my FreeBSD = server > to exist > in both of the networks, so all packets directed to the both networks > will > go directly, and all other - directed to well-known gateway? > I have two IP addresses, from both networks. > > Best regards, > Alexander. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > ------=_NextPart_000_0043_01C080A8.3F3B8420 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Yes, it is legal to have two different = IP subnets=20 on the same ethernet LAN.

Yes, can make your FreeBSD box talk to = both=20 subnets with a single NIC.  You
just have to assign two = different
IP=20 addresses to the same card.  (man ifconfig   --  see = 'alias'=20 parameter)

I just tested this.  "rc.conf" was
ifconfig_ed1=3D"inet 169.254.0.1 = netmastk=20 255.255.255.0"
gateway_enable=3D"YES"
"rc.conf" now
 
ifconfig_ed1=3D"inet=20 169.254.0.1 netmastk 255.255.255.0"
ifconfig_ed1_alias0=3D"inet = 192.168.0.1=20 netmask 255.255.255.0"
gateway_enable=3D"YES"

I left my = Win98=20 notebook at it's orignal address (169.254.0.2) and = changed
my 2nd=20 FreeBSD box to 192.168.0.4.
The Win98 notebook was able to telnet = into the=20 FreeBSD box at 192.168.0.4,
and that FreeBSD box could ping
the = Win98=20 notebook.
----- Original Message -----
From: Alexander Derevyanko = <der@pc759.cs.msu.su>
To: = <freebsd-questions@freebsd.o= rg>
Sent:=20 Wednesday, January 17, 2001 1:25 PM
Subject: Two subnetworks on one = physical=20 segment.


>
> Hello!
>
> Few days ago i = see=20 strangely conigured network, and
> i need some advise. The problem = is:
> On one physical network segment (one hub + coaxial cable = connected=20 to
> hub)
> where exists two different networks, with = different=20 first byte of IP
> address.
> Netmasks are = 0xffffff00.
> Some=20 computers belong to one of the network, some to other.
> Is such=20 configuration allowed ? If so, how can i make my FreeBSD server
> = to=20 exist
> in both of the networks, so all packets directed to the = both=20 networks
> will
> go directly, and all other - directed to=20 well-known gateway?
> I have two IP addresses, from both=20 networks.
>
> Best regards,
>=20 Alexander.
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> = with=20 "unsubscribe freebsd-questions" in the body of the=20 message
>
------=_NextPart_000_0043_01C080A8.3F3B8420-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message