(E-Mail Removed) wrote:
> Hi,
>
> We have a collection of machines on our corporate network (100mbit) and
> I want to add a second card to selected machines (1Gbit) and connect
> them together via a switch , assign a 2nd IP address (10.0.0.x)and
> hostname, forming a private network, so that they can interact at high
> speed independed of our corporate network. The coporate network would
> provide general access to the machines, private comunication would be
> via the private network.
>
>
> Corp NET (100Mbit) Private NET
> (1000mbit)
> |----(Box_A) eth0(192.162.2.1) machine eth1(A)
> (10.0.0.1/255.255.255.0)--|
> |
> |
> | ---(Box_B) eth0(192.162.2.2) machine eth1(B)
> (10.0.0.2/255.255.255.0)--|
> |
> | -- (Box_C) eth0 machine
> |
>
> Box_X is corporate name, X is private name..Addresses are dummy
>
>
> My hope would be that if I went (example) telnet Box_B from Box_A it
> would go via the coporate network, but if I went telent B from Box_A it
> would go via the private network. The coporate nameservice would be via
> the corp. DNS server. for the private network it would be via the hosts
> tables of A and B.
> The gateway is set to the coporate one (192.162.2.254)
>
>
> Problem is it doesn't work..... where have I gone wrong. :-( How would
> it know which card to go out....??? What am I missing???
It knows which card to use by means of route table.
What give you:
$ netstat -rn ?
$ ifconfig eth0 up 192.168.2.1 netmask 255.255.255.0 gw 192.168.2.254
$ ifconfig eth1 up 10.1.0.1 netmask 255.255.255.255.0
Hope this help,
--
- Christophe ((E-Mail Removed)) [At home]