From owner-freebsd-questions Thu Dec 11 09:37:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA29101 for questions-outgoing; Thu, 11 Dec 1997 09:37:56 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from hobbiton.shire.net (hobbiton.shire.net [204.228.145.250]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id JAA29093 for ; Thu, 11 Dec 1997 09:37:53 -0800 (PST) (envelope-from chad@pengar.com) Received: from sverige.pengar.com [204.228.145.10] by hobbiton.shire.net with esmtp (Exim 1.73 #1) id 0xgCXl-0000VA-00; Thu, 11 Dec 1997 10:37:01 -0700 X-Sender: chad-pc@hobbiton.shire.net Message-Id: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 11 Dec 1997 10:39:53 -0700 To: freebsd-questions@freebsd.org From: "Chad Leigh, Pengar Enterprises Inc and Shire.Net" Subject: Re: Help setting up virtual ClassC network on a single machine Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >Hi All > >I am stupid when it comes to routing sometimes and I am in a jam now. > >I need to have a machine that has a bunch of aliased IP addresses in my >ClassC (the only place where this class C is used) on it connected to my >ISP on his ethernet. > >In other words, my machine is colocated and lives in 204.228.135.128/25 >and I am .142 and the router for that subnet is .129 > >My subnet is 204.228.145.0/24 . This machine needs to have about 15 IP >addresses on it in my subnet 204.228.145.0/24 . Because of my SSL server >(Stronghold) the main IP address has to be 204.228.145.132 in my subnet. > --SNIP-- > >Old situation: > .145.252 .145.132 >-ISPNET---------------------------------------------[router]-+---[machine] > 204.228.135.128/25 204.228.135.142 | > | .145.134 > +---[machine] > | > etc > > >New situation wanted > > . >-ISPNET---------------------------------------------[machine] .145.252 > 204.228.135.128/25 204.228.135.142 .145.132 > .145.134 > etc What I have so far is no routed and GATEWAY="NO" and no default router (rc.conf) I have the rc.conf ifconfig pointing to 204.228.145.132 I have in my rc.local /sbin/ifconfig de0 inet 204.228.135.142 netmask 255.255.255.128 alias /sbin/route add 204.228.135.142 -interface de0 /sbin/route add default 204.228.135.142 #should this be .129 ? which is the router for that subnet and should I route the net out de0? /sbin/ifconfig de0 inet 204.228.145.134 netmask 255.255.255.0 alias /sbin/route add 204.228.145.134 localhost /sbin/ifconfig de0 inet 204.228.145.136 netmask 255.255.255.0 alias /sbin/route add 204.228.145.136 localhost /sbin/ifconfig de0 inet 204.228.145.252 netmask 255.255.255.0 alias /sbin/route add 204.228.145.252 localhost etc Thanks Chad etc --------------------------------------------------------------- Chad Leigh Pengar Enterprises, Inc and Shire.Net chad@pengar.com info@pengar.com info@shire.net Full service WWW services from just space to complete sites. Low cost virtual servers. DB integration. Tango. Email forwarding -- Permanent Email Addresses. POP3 and IMAP Email Accounts. mailto:info@shire.net for any of these. ---------------------------------------------------------------