linux can do anything.
basically dump these commands in rc.local file, I am sure there is a much better way,
but this is quick and easy
if you notice eth2 belongs to 2 networks, and have had a linux box connected off of 1
NIC to 4 networks with IPs on each
###############################
/sbin/ifconfig lo 127.0.0.1
/sbin/ifconfig eth0 up
/sbin/ifconfig eth1 up
/sbin/ifconfig eth2 up
### that will activate the NICx as long as the modules are loaded
/sbin/ifconfig eth0 204.239.26.209 netmask 255.255.255.0
/sbin/ifconfig eth1 204.239.27.238 netmask 255.255.255.0
/sbin/ifconfig eth2 204.174.40.229 netmask 255.255.255.0
/sbin/ifconfig eth2:0 10.100.254.254 netmask 255.255.0.0
/sbin/ifconfig eth2:1 10.100.0.1 netmask 255.255.0.0
/sbin/ifconfig eth2:2 10.100.1.1 netmask 255.255.0.0
### and now all the physical interfaces and virtual interfaces are defined
### IP addresses assigned and bound all that is left is the routing
/sbin/route add -net 127.0.0.0
/sbin/route add -net 204.239.26.0 netmask 255.255.255.0 dev eth0
/sbin/route add -net 204.239.27.0 netmask 255.255.255.0 dev eth1
/sbin/route add -net 204.174.40.0 netmask 255.255.255.0 dev eth2
/sbin/route add -net 10.100.0.0 netmask 255.255.0.0 dev eth2:0
/sbin/route add -net 10.100.0.0 netmask 255.255.0.0 dev eth2:1
/sbin/route add -net 10.100.0.0 netmask 255.255.0.0 dev eth2:2
### now the server should know all the networks attached to it
/sbin/route add -host 204.239.26.209 eth0
/sbin/route add -host 204.239.27.238 eth1
/sbin/route add -host 204.174.40.229 eth2
/sbin/route add -host 10.100.254.254 eth2:0
/sbin/route add -host 10.100.0.1 eth2:1
/sbin/route add -host 10.100.1.1 eth2:2
### the routing table should be complete except for default gateway
/sbin/route add default gw 204.239.26.100
----- Original Message -----
From: Harry Brueckner <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 24, 1999 10:58 AM
Subject: Two networks on one card
Hello,
I have two networks, lets say 192.168.1.0 and 192.168.2.0.
The first one is the network where each host gets its single "hardware
address" in which gets assigned to the networkcard of each host, like:
192.168.1.1
192.168.1.2
192.168.1.3
...
Now I also have addresses which I want to use for virtual stuff, like WWW
servers. So I want to use a second network for this and use those IP
numbers for virtual services only so I can easily move them from one host
to another in case I have to loadbalance some machines.
So the assignment is e.g.
192.168.1.1 hosts:
192.168.2.1
192.168.2.2
192.168.2.5
192.168.1.2 hosts:
192.168.2.3
192.168.2.4
192.168.1.3 hosts:
192.168.2.6
The assignment of my "physical" network works fine and the network is up
and running. And now comes the part where I dont know what to do.
Of course each computer only has one ethernet card I can only assign one IP
address to it and for virtual addresses I did not find out how to configure
them properly when they are NOT within the same network as the device they
are assigned to. :-/
Any ideas how to get this to work?
Harry
===================================================================
PGP fingerprint: B9 EE 83 0C 1F 48 54 50 9F A7 7A 00 6C 94 36 02
PGP public key available by fingering [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]