setting up routes - box with two nic cards
i am having one hell of a time trying to get three boxes to talk to eachother. I think the problem lies in the box with the two nics. Here is what i am working with:
I have three boxes: [N01] --- [Pep3] --- [Pep4] Pep3 has two nic cards. All the boxes have identical host files so that: 192.168.103.XXX N01 = .17 Pep3 = .33 Pep3a = .34 Pep4 = .35 (so dont worry about the IPs, i'll just use the names) in reality the network really looks like: [N01] --- [Pep3 | Pep3a] --- [Pep4] Now here is the problem. I can add routes so that N01 can talk perfectly to Pep3 and Pep3a (and vice versa). And I can get it so Pep4 talks perfectly with Pep3a and Pep3. But, for the love of god, i cannot make it so Pep4 can ping N01! For whatever reason, i have never been able to ping throughl the pep3 box. The routes are very simple so i dont think they are the problem... but who knows. I am attaching my routing tables to see if someone could help me with that. My real concern though is that I dont think Pep3 and Pep3a are passing packets through eachother. Is there some special configuration i should know about when using two nics? N01 pep3 pep4 pep3a UH 192.168.103.0 pep3 U 192.168.103.0 pep3a U pep4 pep3 pep3a UGH N01 pep3 UGH 192.168.103.0 pep4 U N01 pep3a pep3 UGH pep4 pep3a UGH 192.168.103.0 N01 U |
Hi,
i think you're mistaking routing and bridging... if you want pep3 to be a router, then you have to use 2 different networks, such as: n01: 192.168.1.1/24 default gateway 192.168.1.2 pep3: 192.168.1.2/24 pep3a: 192.168.2.2/24 pep4: 192.168.2.1/24 default gateway 192.168.2.2 so n01 & pep3 are in the 192.168.1 network pep3a & pep4 are in the 192.168.2 network and pep3 is the router between the 2 nets. if you set up a bridge (so that pep3 acts like a switch), then you'll need the brctl tool (it exists as a package on every distro i think). by seting up a bridge every machine will be on the same network, i think it's what you wanted... the set up isn't complicated: 1/ install brctl 2/ unconfigure your interfaces: ifconfig eth0 0.0.0.0 ifconfig eth1 0.0.0.0 3/ create the bridge and add interfaces to it: brctl addbr br0 brctl addif br0 eth0 brctl addif eth1 4/ configure the IP for the bridge: ifconfig br0 192.168.103.33 netmask 255.255.255.0 up that's it.... as you can see, the brctl tool creates a new interface: br0. that's why eth0 and eth1 don't need an IP anymore, the only one IP is applied to the bridge interface. hope that's what you needed |
thank you very much, i 'll give it a shot and see what happens
thanks again! |
All times are GMT -5. The time now is 09:38 AM. |