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>
index | next in thread | raw e-mail
[-- Attachment #1 --] 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="inet 169.254.0.1 netmastk 255.255.255.0" gateway_enable="YES" "rc.conf" now ifconfig_ed1="inet 169.254.0.1 netmastk 255.255.255.0" ifconfig_ed1_alias0="inet 192.168.0.1 netmask 255.255.255.0" gateway_enable="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 > [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2614.3500" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Yes, it is legal to have two different IP subnets on the same ethernet LAN.<BR><BR>Yes, can make your FreeBSD box talk to both subnets with a single NIC. You<BR>just have to assign two different<BR>IP addresses to the same card. (man ifconfig -- see 'alias' parameter)<BR><BR>I just tested this. "rc.conf" was</FONT></DIV> <DIV><FONT face=Arial size=2>ifconfig_ed1="inet 169.254.0.1 netmastk 255.255.255.0"<BR>gateway_enable="YES"<BR></FONT></DIV> <DIV><FONT face=Arial size=2>"rc.conf" now</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2><FONT face=Arial size=2>ifconfig_ed1="inet 169.254.0.1 netmastk 255.255.255.0"<BR>ifconfig_ed1_alias0="inet 192.168.0.1 netmask 255.255.255.0"<BR>gateway_enable="YES"<BR></FONT><BR>I left my Win98 notebook at it's orignal address (169.254.0.2) and changed<BR>my 2nd FreeBSD box to 192.168.0.4.<BR>The Win98 notebook was able to telnet into the FreeBSD box at 192.168.0.4,<BR>and that FreeBSD box could ping<BR>the Win98 notebook.<BR>----- Original Message -----<BR>From: Alexander Derevyanko <<A href="mailto:der@pc759.cs.msu.su">der@pc759.cs.msu.su</A>><BR>To: <<A href="mailto:freebsd-questions@freebsd.org">freebsd-questions@freebsd.org</A>><BR>Sent: Wednesday, January 17, 2001 1:25 PM<BR>Subject: Two subnetworks on one physical segment.<BR><BR><BR>><BR>> Hello!<BR>><BR>> Few days ago i see strangely conigured network, and<BR>> i need some advise. The problem is:<BR>> On one physical network segment (one hub + coaxial cable connected to<BR>> hub)<BR>> where exists two different networks, with different first byte of IP<BR>> address.<BR>> Netmasks are 0xffffff00.<BR>> Some computers belong to one of the network, some to other.<BR>> Is such configuration allowed ? If so, how can i make my FreeBSD server<BR>> to exist<BR>> in both of the networks, so all packets directed to the both networks<BR>> will<BR>> go directly, and all other - directed to well-known gateway?<BR>> I have two IP addresses, from both networks.<BR>><BR>> Best regards,<BR>> Alexander.<BR>><BR>><BR>> To Unsubscribe: send mail to <A href="mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</A><BR>> with "unsubscribe freebsd-questions" in the body of the message<BR>><BR></DIV></FONT></BODY></HTML>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004c01c080e3$0709fb00$0200fea9>
