*BSD News Article 62762


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.mid.net!newsfeeder.gi.net!newsfeed.internetmci.com!inet-nntp-gw-1.us.oracle.com!nntp-hub.barrnet.net!parc!fenner
From: fenner@parc.xerox.com (Bill Fenner)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD: Multiple Class C's on 1 interface?
Date: 22 Feb 1996 19:08:34 GMT
Organization: Xerox Palo Alto Research Center
Lines: 11
Message-ID: <4gievi$q75@news.parc.xerox.com>
References: <DMFA97.86@boss.cs.ohiou.edu>
NNTP-Posting-Host: crevenia.parc.xerox.com

In article <DMFA97.86@boss.cs.ohiou.edu>,
Pete Simpson <psimpson@oucsace.cs.ohiou.edu> wrote:
>Can I assign multiple tcp/ip addresses to the same network interface
>which are in separate subnets?  If so, how? And how do I prevent the
>machine from routing between the two if this is possible?

sysctl -w net.inet.ip.forwarding=0	# disable forwarding
ifconfig de0 inet 199.181.87.15 netmask 0xffffff00	# configure one address
ifconfig de0 alias 207.16.212.15 netmask 0xffffff00	# configure other addr

  Bill