Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[SOLVED] Multiple eth interfaces, gateways, SuSE 10
SOLUTION: There is a Java front end for the iSCSI cards in question. They are Q-Logic's, and they have their own networking tools available from their CD. Worked like a charm with the problem below.
SuSE 10 Advanced networking question:
I have 3 interfaces: 1 NIC, 2 iSCSI QLogic.
I want them each to have their own gateway, but I do *not* want a default gateway.
How to statically assign each their respective gateway?
Thanks!
Last edited by b1f30; 08-12-2008 at 11:06 AM.
Reason: It's first thing in the A.M., I'm sick as hell, forgot to make the scheme so that each interface has it's own subnet.
Simply use a netmask of 255.255.0.0 and set up routes for each subnet.
Read your documentation for your distro. I don't use debian, but there is probably a standard
configuration file where the routes are listed and then configured using either the "route" or
"ip" command. There is also the /etc/networks file where you
can give your networks aliases.
The route or ip command can be used to configure the routes directly, but it is usually best
to determine the standard method that your distro uses.
Also look at the www.tldp.org website. There is an O'Reily book there "Network Administrator's Guide" which has a lot of general networking information.
I don't know Suse specific, but I can say about general Unix routing, which works on each *nix.
Generally, system decide which interface should be used according to a single routing table. (Let's avoid discussing the multiple routes etc.)
So, for each destination you should use a certain router. Thus:
Initially, your routing table contains something like this:
Code:
$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.15.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.15.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.15.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
Some Unix systems will show something like this:
Code:
$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.15.50.0 10.15.50.10 255.255.255.0 U 0 0 0 eth0
10.15.40.0 10.15.40.10 255.255.255.0 U 0 0 0 eth1
10.15.30.0 10.15.30.10 255.255.255.0 U 0 0 0 eth2
Anyway, the interface which should be used to reach a certain router is already defined.
Then, just add routes for each destinations via necessary router:
Code:
ip route add 10.50.0.0/16 via 10.15.50.1
ip route add 10.40.1.0/24 via 10.15.40.1
ip route add 10.30.2.1/32 via 10.15.30.1
You can configure routes in YaST2 -> network devices. Also look in /etc/sysconfig/. That is where YaST saves the results, and there should be a commented script where you would enter your routes. The bootup scripts with use these values to set the routes.
There is also a sysconfig editor in YaST2. Enter the search term "route" and you should be able to modify the correct file there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.