Re: [SLE] network conf
![](https://seccdn.libravatar.org/avatar/7e64484b1fd6889d6f831db2ff9f1510.jpg?s=120&d=mm&r=g)
On 04 May 2001 10:00:11 +0200, stephane parenton wrote:
hi...
I'm using SuSE 7.0 on a p166 box with 2 nics.... eth0 is connected to a router and is the external nic. tr0 is the internal nic but we have an AS/400 that has to be seen from the outside. So this nic has 2 adresses : tr0 is 192.168.0.x and tr0:0 is xxx.xxx.xxx.xxx.
Is it normal, when using yast, to have the same gateway adress for both nics ?.... I mean as far as I understand the thing (but I'm quite a newbie...), eth0 should have the router adress as
gateway, and the internal nic should have the external as gateway
?.... Please tell me if I'm wrong, and if I'm not, then why yast doesn't allow me to have these individual gateways for the nics and what can I do to change this ...
TIA Stephane
Hi Stephane, The gateway you set with Yast is the default gateway. You can only set one default gateway! It 's not quite clear to me what you are trying to achieve. Do you want to use the SuSE-box as a router for the "outside" to the AS/400 (and vice-versa)? Anyway, you need to add a static route in /etc/route.conf pointing to the other gateway and if you want the SuSE-box to be a router to/from your internal network, you have to enable IP_FORWARD in /etc/rc.config. If you need more info, please explain your network setup a bit more specific. mazzel, Marcel Get your Free E-mail at http://thepenguin.zzn.com ____________________________________________________________ Get your own FREE Web and POP E-mail Service in 14 languages at http://www.zzn.com.
![](https://seccdn.libravatar.org/avatar/d42b908138545ad2c25507327dedead4.jpg?s=120&d=mm&r=g)
Marcel Broekman wrote:
The gateway you set with Yast is the default gateway. You can only set one default gateway! It 's not quite clear to me what you are trying to achieve. Do you want to use the SuSE-box as a router for the "outside" to the AS/400 (and vice-versa)?
ok, now this problem is solved, for I can ping the outside world from my box.... still I have another problem ,that I intentionnaly keep vague, for I want to verify thinks by myself before being precise.... and therefor guided by the hand :))) Suse 7.0 box is xxx.xxx.xxx.aaa Another1 box is xxx.xxx.xxx.bbb Another2 box is xxx.xxx.xxx.ccc the Suse box has 2 nics, the eth0 is external and is connected to a router directly to the net, the tr0 is internal and links to the nat'ed lan.
From the box : I ping eth0, tr0, another1 and another2 as well as the outside world, and the computer on the nat'ed lan (192.168.0.x). This is ok.... From the outside world : I see Suse 7.0, another1 and another2 which is fine... From the inside (lan), I can ping the SuSE box, but NOT another1 and another2.... and not the outside world...
I have modified my etc/route.conf, I run a script that run rules for ipchains.... The point is : I want to know what files to check to see what is wrong .... The SuSE box replaces a "RH6.0 another0" box (this box runs fine when connected) that should be no longer connected.... what files must I check in order to solve the problem (any files related to the problem....). I certainly have missed something, but what and where I don't know... i've checked and checked, but maybe i overlooked and didn't see the evidence.... and missed the one file that could be helpfull TIA Stephane Parenton
![](https://seccdn.libravatar.org/avatar/090a3b817d75458054261e24c67d675c.jpg?s=120&d=mm&r=g)
On Fri, 4 May 2001, stephane parenton wrote:
Suse 7.0 box is xxx.xxx.xxx.aaa Another1 box is xxx.xxx.xxx.bbb Another2 box is xxx.xxx.xxx.ccc
the Suse box has 2 nics, the eth0 is external and is connected to a router directly to the net, the tr0 is internal and links to the nat'ed lan.
From the box : I ping eth0, tr0, another1 and another2 as well as the outside world, and the computer on the nat'ed lan (192.168.0.x). This is ok....
From the outside world : I see Suse 7.0, another1 and another2 which is fine...
From the inside (lan), I can ping the SuSE box, but NOT another1 and another2.... and not the outside world...
I have modified my etc/route.conf, I run a script that run rules for ipchains.... How? It may be this simple: Is IP forwarding enabled on the SuSE box?
echo "1" > /proc/sys/net/ipv4/ip_forward What routing have you set up on the SuSE box? From your description, I think it should look something like this: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface xxx.xxx.xxx.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 tr0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 xxx.xxx.xxx.ggg 0.0.0.0 UG 0 0 0 eth0 (Where '.ggg' is your router to the internet) -- Rick Green "I have the heart of a little child, and the brain of a genius. ... and I keep them in a jar under my bed"
participants (3)
-
Marcel Broekman
-
Rick Green
-
stephane parenton