Date: Thu, 11 Dec 1997 10:39:53 -0700 From: "Chad Leigh, Pengar Enterprises Inc and Shire.Net" <chad@pengar.com> To: freebsd-questions@freebsd.org Subject: Re: Help setting up virtual ClassC network on a single machine Message-ID: <v0310203ab0b5d4994ae7@[204.228.145.10]> In-Reply-To: <v03102037b0b5ce1cc4a8@[204.228.145.10]>
next in thread | previous in thread | raw e-mail | index | archive | help
> >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. ---------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v0310203ab0b5d4994ae7>