-----BEGIN PGP SIGNED MESSAGE----- > -----Original Message----- > From: liuxg [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 10, 2000 2:36 PM ... > A: eth0:192.168.10.10(netmask 255.255.255.0) > eth1:192.168.11.10(netmask 255.255.255.0) > default gateway is 192.168.10.1 > B: eth0:192.168.10.12(netmask 255.255.255.0)gateway > 192.168.10.1 > C: eth0:192.168.11.12(netmask 255.255.255.0)gateway 192.168.11.1 > A,B,C connetted to a switch , I want to A communicate > with B by eth0,and > A communicate with C by eth1 directly. But A always use eth0 > ,it consider C > in different broadcast domain. how can I configure my linux box? First of all, I'd like to point out that in your data mentioned above, there probably is a little typo: A is defined as machine *.10 on both subnets while B and C will search for their respectively own subnets machines *.1 If this machine is not defined, it of course will not be seen. That's a typical task for route you should set: on machine A: /sbin/ifconfig eth0 192.168.10.10 netmask 255.255.255.0 up /sbin/ifconfig eth1 192.168.11.10 netmask 255.255.255.0 up /sbin/route -add net 192.168.10.0 -netmask 255.255.255.0 eth0 /sbin/route -add net 192.168.11.0 -netmask 255.255.255.0 eth1 Since you are using redhat, (a line I removed in your text here above), on machine A you should go to /etc/sysconfig/network-scripts There you should have both files ifcfg-eth0 and ifcfg-eth1 containing: <<< ifcfg-eth0 >>> DEVICE="eth0" IPADDR="192.168.10.10" NETMASK="255.255.255.0" BROADCAST="192.168.10.255" ONBOOT="yes" <<< ----------->>> <<< ifcfg-eth1 >>> DEVICE="eth1" IPADDR="192.168.11.10" NETMASK="255.255.255.0" BROADCAST="192.168.11.255" ONBOOT="yes" <<< ----------->>> And further, when you do /sbin/ifdown eth0 /sbin/ifdown eth1 /sbin/ifup eth0 /sbin/ifup eth1 Good luck !!! ******* Groetjes vanwege ***** Greetings From ******* Dieter Demerre - http://www.angelfire.com/de/ddemerre [EMAIL PROTECTED] - [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com> iQEVAwUBOPLdC+H7QfvhLrpDAQFkZQf/WbmYVc0kh+NNrm9wCeGaASyw/DGUFvYc DbjSKJz2HBUX+bJpf0WGWs6SfaP8oT6wDJ3NEOCHgrsQBw3nc0sY6qEn6SKA9vzo g77Jccno775jxgMS4t8jyMFwIadXC+0trBROsz4Iu8z/0x90xlAlUcO8C+f7+RPB eLgcCHbYMsL+2UK8HZ7WGuGLCa5V9X4iLIBQAmYLI+48YsLbnKAT1hBQcQP3XQf2 eYHWVAK4jMw0qPu2EfTBswinFIWNC0hh9uWgJ7r8+cNZYRqPCwrE+YUUIGLlAii7 p4+NBzJinF/9ctH5JOiYkCb5eZDbeE6+VGISZgNESq186SvcRx6KZg== =Fp0/ -----END PGP SIGNATURE----- - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED]
