LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-18-2004, 10:29 PM   #1
kangaegoto
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
Arrow 2 nics, 2 networks, 2 problemas


hello. I'm attempting to replace my Linksys POS router with a more reliable linux box (fedora 1). First though, i'd like to setup my linux box as a router between my two subnets and im having problems.

I have two nics in my box.

# ifconfig
eth0 link encap: ethernet HWaddr 00:03:6D:1E:CA:7D
inet addr: 192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0

eth1 link encap: ethernet HWaddr 00:40:05:85:EC:95
inet addr: 192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0


---and----

# route
Destination Gateway ... Iface
default 192.168.2.1 eth0
192.168.2.0 * eth0
192.168.1.0 * eth1
169.254.0.0 * eth1

when i ping anything on the 192.168.1.0 subnet, everything is peachy.
but if i attempt to ping anything on the 192.168.2.0 subnet i get "Destination Host is Unreachable." I'm guessing its some sort of routing problem. I can ping the 192.168.1.100 address from that subnet, but the 192.168.2.1 address times out...
Any ideas?

Last edited by kangaegoto; 12-18-2004 at 10:31 PM.
 
Old 12-19-2004, 06:58 AM   #2
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 34
I think you need to fet that fedora box to route traffic.

echo "1" > /proc/sys/net/ipv4/ip_forward to enable it to route traffic between the two cards. Else it will not be a router.
 
  


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
2 nics, 2 networks help. chrisknight Linux - Networking 5 12-19-2004 01:21 PM
2 nics, 2 networks, 1 SuSE 9.1 Pro box Arachnoman Linux - Networking 2 11-24-2004 10:37 AM
1 servicer, 2 nics, 2 networks, 1 functional mehesque Linux - Networking 1 08-11-2004 02:24 PM
problemas de clases en kdevelop tranfuga Programming 2 06-16-2004 10:55 PM
2 NICs 2 networks 2 gateways birkinshawc Linux - Networking 1 05-29-2004 03:05 PM


All times are GMT -5. The time now is 02:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration