By definition, you only have one "default gateway"; That's what the phrase 
means. If you had two default gateways, how could the system ever decide which 
one to use? :-)

The default gateway is the interface and IP address to which you ship any 
traffic that you don't specifically know where to send. You'll need a route 
statement for any traffic you want to send to the other interface.

For example, I have an hsi0 with an IP address of 192.168.37.23, which faces 
the outside world, and connects to 192.168.37.100, which is my default gateway 
to that outside world. I have an hsi1, with an IP address of 192.168.28.5, 
which connects to a hipersocket over to my zOS systems.

The routing is such that anything in the 192.168.28.* network is routed to hsi1 
and directly to the IP address. Anything going to the 192.168.37.* network is 
routed to hsi0, and directly to the IP address. Anything else, say 
129.176.199.5 for example, which doesn't fall into either local VLAN, gets 
routed to 192.168.37.100, my default gateway.

Now, another fun routing anomaly: Most of my zLinux images talk to the VLAN, 
but I have two old images, one still using vCTCA, and one using IUCV. They're 
both also in the 192.168.37.* VLAN, but I can't talk directly to them, as my 
routing above would suggest. For these two, I need specific routing entries, 
such that they are routed first to the 192.168.37.100 address, who knows how to 
reach them, and handles the routing to these two specific machines.

I hope this helps. Networking is a hard subject to get your arms around.

--
Robert P. Nix           Mayo Foundation
RO-CE-8-857             200 First Street SW
507-284-0844            Rochester, MN 55905
-----
"In theory, theory and practice are the same, but
 in practice, theory and practice are different."

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Max
Sent: Wednesday, April 06, 2005 5:56 AM
To: [email protected]
Subject: Double Gateway on zLinux

Hi Guys...
I've 2 interface eth0 and eth1 running on zLinux. Each
one is over 2 different VLAN. Is it possibile to have
2 different default gw, each per interface?
How is possibile to configure that at boot time?
Tahnk's
Max



                
___________________________________
Nuovo Yahoo! Messenger: E' molto piy divertente: Audibles, Avatar, Webcam, 
Giochi, Rubrica Scaricalo ora!
http://it.messenger.yahoo.it

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to