Nicholas Tomlin wrote:

> I have on this machine [195.168.0.1] Mandrake 10.1 on an AMD 64 bit Athlon 3k 
> cpu with .5g ram and 2 80g HDD's and typically run kde 3.2.3 as my desk top.

I don't run Mandrake, but I might be able to help get you started on a
solution to your problem. I won't be able to supply screenshots. Perhaps
someone else can assist by translating what I offer here into Mandrake.

> I have an 8 port 10/100 ethernet network switch which permits me to connect 
> computers with each other, I have this machine, a Tosh A10 Satellite 
> [195.168.0.2] and a dual boot mandrake / windoesn't box [195.168.0.3] which 
> MYOB's my accounts [please tell me there is a linux replacement to MYOB].
> 
> network picture:
> 
> domain tac.com.au
> [nameserver 223.225.0.3]
> [nameserver 223.225.0.6]
>      |
>      |
> dialup  ------ Modem [ppp0] ---- 195.168.0.1  --blue cable--[switch] 
>                                                                               
>                                   |
>                                                                               
>                                   |
> Laptop  --------ethernet port------ 195.168.0.2  --blue cable--[switch] 
>                                                                               
>                                   |
>                                                                               
>                                   |
> accounts -----ethernet port------ 195.168.0.3  --blue cable--[switch] 

Mind if I redraw this?


         ^ Dial to Internet, domain:tac.com.au, DNS=223.225.0.[36]
         |
         | ppp0 - dynamic address?
       -----
      |     |  "this"
       -----
         | 0.1
         |
        [ ]  Ethernet Switch supporting 195.168.0.*
        / \
       /   \
  0.2 /     \ 0.3
 -----      -----
|     |    |     |
 -----      -----
laptop      accounts


Is that right?


> All machines have an ethernet connection available and I am using the blue 
> cables, can ping each computer from 195.165.0.1, but cannot necessarily ping 
> from, eg, 195.168.0.2 back to 195.168.0.1, it tells me the host is 
> unreachable despite 'ifconfig 195.168.0.1 and 2 up' on both computers - any 
> ideas what I have done wrong here?

Hmm, nope, that's an odd one, if I've understood your network correctly.

> When I have the lan - ethernet - network running I seem to be precluded from 
> using the internet on this machine 195.168.0.1, and I can't see this machine 

Without knowing any detail I can tell you that this sort of problem
usually relates to you configuring a 'default route' on your ethernet
interface that overrides the default route that is normally pointing to
the Internet via your PPP interface. You don't need, or want, a default
route on your ethernet interface, so if you've got one, remove it. The
default route might appear as a configuration item for a 'gateway'. The
only default route you want is the one that pppd will provide with its
'defaultroute' option.

If you look at the routing table on the "this" machine, you should see
something like:

guglielmo# route -n
Kernel IP routing table
Destination   Gateway      Genmask         Flags Metric Ref    Use Iface
220.233.1.45  0.0.0.0      255.255.255.255 UH    0      0        0 ppp0
10.200.253.0  0.0.0.0      255.255.255.0   U     0      0        0 eth0
0.0.0.0       0.0.0.0      0.0.0.0         U     0      0        0 ppp0

The last line, the route to '0.0.0.0' is the default route I'm talking
about. You only want one of those. If you see another one configured
when your ethernet interface is up, that'll be part of your problem.


Your laptop machine should be configured something like this:

iface eth0 inet static
    address 195.168.0.2
    network 195.168.0.0
    netmask 255.255.255.0
    broadcast 195.168.0.255
    gateway 195.168.0.1

and your 'accounts' machine should look similar, albeit with it's own IP
address instead.


If you want your laptop and windows machines to be able to share your
Internet connection, then you'll need to configure what is sometimes
called Network Address Translation, or IP-Masquerade on your 'this' machine.

On my own machine here I use these commands:

/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
/sbin/iptables -I FORWARD 1 -p tcp --tcp-flags SYN,RST SYN -m tcpmss
--mss 1400:1536 -j TCPMSS --clamp-mss-to-pmtu

But it is possible that Mandrake includes some way of automating this,
or even of configuring this transparently for you.

regards
Terry

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to