On 1/21/06, Nick Holland <[EMAIL PROTECTED]> wrote:
> Greg Thomas wrote:
> > Ok, I'm getting frustrated because I thought I understood aliases well
> > but I'm having trouble setting an alias with a RFC1918 address.
> >
> > [EMAIL PROTECTED]:/home/ethant# cat /etc/hostname.xl0
> > inet 66.245.151.101 255.255.255.0 NONE
> > inet alias 192.168.3.1 255.255.255.255 NONE
> ...
> > I can't ping from this box to 192.168.3.5 on the same hub:
>
> right.  With that subnet (/32), 192.168.3.5 is as much on the same
> network as 1.2.3.4 or any other IP address on the 'net.  Everything
> would have to go through the gateway.
>
> You want a /32 when your alias is on the same network as the primary IP.
>
> On the other hand...not sure what you are trying to do there, and not
> sure how/if it would work.  I'm very possibly missing something, but I
> think you have a general design problem, bigger than a subnet mask.
>

Thanks, that was enough to jog my brain.  I was stuck on the idea that
any alias needed a /32 subnet mask.  It's working now.  When I had the
situation reversed I probably had /24s on both IP addresses.

Basically I've got a new Brother HL-5250DN on my network now but
previously I was all wireless except for my DSL connection.  My
OpenBSD AP/router is the only computer in my office that stays on all
the time so I had to figure a way to route through it to the printer
even though it only has one ethernet port.  I know this is risky
because the printer is outside my firewall now but since it's on a
different subnet than my internet connection and the printer network
firmware does some simple IP filtering I figure I'll accept the risk.

If I'm out of my mind please let me know.  It is working but I can
always use my last resort of buying a USB cable and plugging it into
my OpenBSD box or I can put my wireless/parallel

Thanks,
Greg

Reply via email to