steve wrote:
On Friday 10 May 2002 19:07, Rafael E. Herrera wrote:
steve wrote:
A proper routing table. What is the output of "route -n"?
Do you know from your ISP what is the IP number of their gateway?
Hi and many thanks. Of course I will get the information from the route -n and the IP. It's just that we've never had to do this before. We just put in 192.168.0.254 as a dummy gateway in Yast and all our previous servers have worked fine. But that was under 7.3. has this changed for 8.0? Our ISP confirms this and says that we don't need it as our ADSL router does it for us. Back tomorrow with the route -n. Meanwhile, are my alias and modprobes above correct?
If you see both eth interfaces when you type ifconfig, then I would assume they are OK. Remember that the first network card you load becomes eth0, and the second becomes eth1.
For the machines on the 192.168.0.x network, you don't need a gateway.
For the machine that has the connection to the ISP, the default gateway should be the one provided by them. I would suggest you use an IP number different than your local lan network. For example set eth0 to 192.168.100.22 and netmask 255.255.255.0. Set eth1 to 192.168.0.1 and netmask 255.255.255.0
Here is the routing table of our present server: the one that works with 7.3: Destination Gateway Genmask Flags MetricRef Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
On our new machine under 8.0 we have tried the same but only eth0 works. the other card does nothing. So we tried your suggestion:
Destination Gateway Genmask Flags MetricRef Use Iface 192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 0.0.0.0 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
Now I can get Samba out through to the local network from eth1 and internet *only* on the server but not on the clients. Progress!
Revise the network configuration on your samba clients. Set their IP number to one of 192.168.0.x, netmask 255.255.255.0 and gateway the same IP as your server or empty, try both. Do not use 192.168.0.0 or 192.168.0.255 as IP numbers. Don't forget to write down the old values, just in case.
Our ISP has given me the IP address of the router as 80.24.171.55/192 but has told me not to include it in the setup as our ADSL modem takes care of it for us. What is the /192 bit? Where would I enter this in Yast2 if I were to try it? Thanks for your patience.
The /192 sounds wrong. One sometimes can use this format 192.168.0.0/16 to be equivalent to 192.168.0.0/255.255.0.0, that is, the first 16 bits (the number of 1's in 255.255 written in binary form) of the IP number specify the network part of an IP address, so the possible values are 1 through 32. -- Rafael