FYI peeps. This is called multihoming a card by setting up ip aliasing.
example output of "route":
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0
eth0:1
192.168.0.0 * 255.255.255.0 U 0 0 0
eth0:2
127.0.0.0 * 255.0.0.0 U 0 0 0
lo
default 192.168.0.254 0.0.0.0 UG 0 0 0 eth0
My default route goes through card 1 (eth0). You can also set up entries so
each card uses a specific gateway. If they all use the same one, then
specify that also. Also, if you are doing clustering that requires
multicasting, you will need to setup your multicast address in the router
tables also, such as:
route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0
route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0:1
route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0:2
ken k
> [ Followup-To: comp.os.linux.networking ]
> >>I want the only Ethernet Card have more IP addresses. (130.136.0.101,
> >>130.136.0.102... and so forth).
> >ifcfg eth0:0 130.136.0.102 up
> >ifcfg eth0:1 130.136.0.103 up
> >and so forth...
> I have a follow-up - question:
> How can I use those adresses for *out*-going traffic?
> I want to start a handfull instances of one program [*] to
> connect to one external system with different source-IP's.
> asking a simple question, Holger
> [*] The program is "pr3287" from the X3270-suite. C-Source ist
> available. The externel system is behind a Cisco-Router ma-
> king NAT; if that place would be simpler?