Re: internet connection sharing?

From: Alan Hicks (alan_at_lizella.netWORK)
Date: 06/14/04


Date: 13 Jun 2004 19:39:51 -0500


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In alt.os.linux.slackware, C++ Shark dared to utter,
> Hi, i have facing a little problem with my connection sharing. I have
> a slackware 9.1 (updated to current) with two ethernet interfaces ath0
> and eth0. ath0 is connected to my router and has an ip address of
> 192.168.1.101. eth0 (ip: 192.168.0.1) is connected to my freebsd (5.2)
> (ip: 192.168.0.2) box through crossover.

Among other things I'd say you've got a sub-netting issue. While it's
perfectly possible that you're using a subnet like 255.255.255.248 or
something, I suspect that you've using the default 255.255.255.0, and
doing NAT twice. This is just a bad idea for so many reasons. Among
them, you have no way of knowing which interface to send the packets
out through. Why don't you post your routing tables here for us to see?

I'd reccomend of course that you either ditch the router, putting your
linux box in its place, or put a switch directly after the router and
put both the linux box and the bsd box on that switch. Everything will
work much smoother.

If that isn't an option, at least put your two interfaces on different
sub-nets so the routing table will function properly.

- --
It is better to hear the rebuke of the wise,
Than for a man to hear the song of fools.
Ecclesiastes 7:5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAzPPGlKR45I6cfKARAuL4AKCnKS1atqRUSNrG7yLW+gbVrHXsMgCbBEff
95IhaEw4xLBc9UTA/C4VeeQ=
=6B04
-----END PGP SIGNATURE-----



Relevant Pages

  • Re: Multiple subinterfaces per port on a 3745
    ... I am trying to replace a linux router with a cisco 3745 router (IOS ... interface FastEthernet0/1 ... Enter configuration commands, one per line. ...
    (comp.dcom.sys.cisco)
  • RE: [opensuse] Good fast PC and printer in the UK?
    ... Another dull query about hardware recommendations. ... colour laser that is known to perform well with Linux. ... why not just get a dedicated wired-and-wireless router ... If the routing function absolutely must be accomplished via ...
    (SuSE)
  • Multiple subinterfaces per port on a 3745
    ... I am trying to replace a linux router with a cisco 3745 router (IOS ... interface FastEthernet0/1 ... Enter configuration commands, one per line. ...
    (comp.dcom.sys.cisco)
  • Re: Q: multi-homed server with multiple default routers
    ... Instead only the destination address and routing table are used ... >> to determine the interface and hardware destination. ... to add a permanent route other than adding a default router. ... It is also a method to add one or more permanent routes that are not ...
    (comp.unix.solaris)
  • FreeBSD/zebraOSPF not updating routingtables
    ... I am trying to get OSPF working but it won't work. ... but no routing tables are updated. ... description dummy/loopback interface ... OSPF Routing Process, Router ID: ...
    (comp.unix.bsd.freebsd.misc)