Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2001 17:09:26 -0700
From:      "Lorin Lund" <wbs@infowest.com>
To:        "\"Alexander Derevyanko\"" <der@pc759.cs.msu.su>
Cc:        <freebsd-questions@freebsd.org>
Subject:    Re: Two subnetworks on one physical segment.
Message-ID:  <004c01c080e3$0709fb00$0200fea9@infowest.com>

next in thread | raw e-mail | index | archive | help
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 <der@pc759.cs.msu.su>
To: <freebsd-questions@freebsd.org>
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Yes, it is legal to have two different =
IP subnets=20
on the same ethernet LAN.<BR><BR>Yes, can make your FreeBSD box talk to =
both=20
subnets with a single NIC.&nbsp; You<BR>just have to assign two =
different<BR>IP=20
addresses to the same card.&nbsp; (man ifconfig&nbsp;&nbsp; --&nbsp; see =
'alias'=20
parameter)<BR><BR>I just tested this.&nbsp; "rc.conf" was</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ifconfig_ed1=3D"inet 169.254.0.1 =
netmastk=20
255.255.255.0"<BR>gateway_enable=3D"YES"<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"rc.conf" now</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3DArial =
size=3D2>ifconfig_ed1=3D"inet=20
169.254.0.1 netmastk 255.255.255.0"<BR>ifconfig_ed1_alias0=3D"inet =
192.168.0.1=20
netmask 255.255.255.0"<BR>gateway_enable=3D"YES"<BR></FONT><BR>I left my =
Win98=20
notebook at it's orignal address (169.254.0.2) and =
changed<BR>my&nbsp;2nd=20
FreeBSD box to 192.168.0.4.<BR>The Win98 notebook was able to telnet =
into the=20
FreeBSD box at 192.168.0.4,<BR>and that FreeBSD box could ping<BR>the =
Win98=20
notebook.<BR>----- Original Message -----<BR>From: Alexander Derevyanko =
&lt;<A=20
href=3D"mailto:der@pc759.cs.msu.su">der@pc759.cs.msu.su</A>&gt;<BR>To: =
&lt;<A=20
href=3D"mailto:freebsd-questions@freebsd.org">freebsd-questions@freebsd.o=
rg</A>&gt;<BR>Sent:=20
Wednesday, January 17, 2001 1:25 PM<BR>Subject: Two subnetworks on one =
physical=20
segment.<BR><BR><BR>&gt;<BR>&gt; Hello!<BR>&gt;<BR>&gt; Few days ago i =
see=20
strangely conigured network, and<BR>&gt; i need some advise. The problem =

is:<BR>&gt; On one physical network segment (one hub + coaxial cable =
connected=20
to<BR>&gt; hub)<BR>&gt; where exists two different networks, with =
different=20
first byte of IP<BR>&gt; address.<BR>&gt; Netmasks are =
0xffffff00.<BR>&gt; Some=20
computers belong to one of the network, some to other.<BR>&gt; Is such=20
configuration allowed ? If so, how can i make my FreeBSD server<BR>&gt; =
to=20
exist<BR>&gt; in both of the networks, so all packets directed to the =
both=20
networks<BR>&gt; will<BR>&gt; go directly, and all other - directed to=20
well-known gateway?<BR>&gt; I have two IP addresses, from both=20
networks.<BR>&gt;<BR>&gt; Best regards,<BR>&gt;=20
Alexander.<BR>&gt;<BR>&gt;<BR>&gt; To Unsubscribe: send mail to <A=20
href=3D"mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</A><BR>&gt; =
with=20
"unsubscribe freebsd-questions" in the body of the=20
message<BR>&gt;<BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_0043_01C080A8.3F3B8420--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004c01c080e3$0709fb00$0200fea9>