On Mon, 18 Aug 2008 10:06:03 GMT
cabernet <cabernet@no-mx.forums.opensuse.org> wrote:
>
> Thanks for pointing this out. Do you have an example of a Broadcast and
> Netmask for this ip address range ?
>
> My router is connected by a long network cable to the pc. I have the
> router > Suse Box > bsd box. The two pcs are in the same office. I want
> to have internet on both. Now that it is working on Suse I hope to
> access it from bsd. I have set up basic Masquerading this far, but
> still have a way to go as I cannot ping the router from bsd. I can
> however ping suse from bsd.
>
>
Welcome.
Thinking in binary… broadcasts are all '0’s, netmasks are all '1’s.
So:
192.168.1.x address gives:
Broadcast: 192.168.1.0
Netmask: 192.168.1.255
192.168.1.x is usually talked about as a Class C network, most often having a
netmask of “24”… seems confusing, until you think about it binary again:
192.168.1.17 = (in binary…)
11000000.10101000.00000001.00010001, and “24” “1” bits gives you…
11111111.11111111.11111111.00000000 <= Netmask of 24 1’s, which in decimal is:
255.255.255.0
Sound familiar?
Ok, back to the problem…
Router <-> Suse works
Hmmm, I’m getting to deep end of pool here… you need to set up ICS using
suse. Easier for you since you have two nic’s, one going to router (would be
considered EXTERNAL), and one going to bsd (INTERNAL).
eth0 = external nic, external IP addresses (192.168.1.x)
eth1 = internal nic, internal IP addresses (192.168.2.x)
So maybe eth1 (suse) might be 192.168.2.254
and bsd would have 192.168.2.1 or something. This mimics the typical router
setup found.
To me, this isn’t that difficult, but it takes waaaaay longer to type out
than to explain or show. There is a page discussing Internet Connection
Sharing (ICS) at
http://en.opensuse.org/ICS
And I imagine if we ask nicely, someone will provide some other links which
might be more informative too.
Please guys? Any relevant links? Thank you.
Essentially, the router is the “internet” to suse-box, and suse-box is router
to bsd-box, and suse-box firewall sets up proper routing between bsd-box and
router. Make sense? (hope so)
I’ve pointed you in the right direction… Read through the privided links,
read some documentation and man pages, search the web some, and think a
lot… you’ll figure it out.
{Smile} Such is the way of the true path to enlightenment.
Loni
(Please feel free to ask more questions, I’m not abandoning you, just pushing
you out of the nest a little)
–
L R Nix
lornix@lornix.com