LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2005, 08:30 AM   #1
josh_mcqueen
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
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
 
Old 07-21-2005, 08:45 AM   #2
fr_laz
Member
 
Registered: Jan 2005
Location: Cork Ireland
Distribution: Debian
Posts: 384

Rep: Reputation: 32
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
 
Old 07-21-2005, 09:53 AM   #3
josh_mcqueen
LQ Newbie
 
Registered: Jul 2005
Posts: 2

Original Poster
Rep: Reputation: 0
thank you very much, i 'll give it a shot and see what happens

thanks again!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wi-Fi Cards that Work Out-Of-The-Box halo14 Linux - Laptop and Netbook 10 02-17-2005 10:20 AM
Gateway setting for dual NIC cards? Moonman Red Hat 4 02-02-2005 02:28 AM
Setting static routes on LAN cranium2004 Linux - Networking 3 01-07-2005 12:57 AM
Having trouble setting up Linux box with two ethernet cards. GreenerLinux Linux - Networking 8 01-05-2005 04:20 PM
Networking with 2 Nic Cards FXRS Fedora 2 12-06-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration