LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-11-2002, 10:52 AM   #1
hnguy
LQ Newbie
 
Registered: Oct 2002
Posts: 7

Rep: Reputation: 0
Question Networks unable to communicate with each other


Hi,

I am new to the linux operating system. The current Linux operation system I am using is Redhat 7.3. I have two nic cards (one eth0 and one tr0) and I trying to use my linx box as a router. Ip forwarding is already enable, but one network is not able to communicate with the other. Here are some of the setting:

[root@linus root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.11.15.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 tr0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 10.11.15.1 0.0.0.0 UG 0 0 0 eth0

[root@linus root]# cat /proc/sys/net/ipv4/ip_forward
1

Not sure what else I need to do to get it to communicate with each other. Need help.
 
Old 10-11-2002, 03:26 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Your routing table looks correctly. What error messages you get? Try:
1) Ping eth0 address form the router.
2) Ping tr0 address from the router.
3) Ping router (using eth0 address) from network connected to eth0
4) As 3, but for tr0
5) Ping a machine in the network connected to tr0 from a machine in the network connected to eth0.
 
Old 10-11-2002, 04:53 PM   #3
hnguy
LQ Newbie
 
Registered: Oct 2002
Posts: 7

Original Poster
Rep: Reputation: 0
The ip address of my tr0 is 192.168.0.1 and eth0 is 10.11.15.225 on the linux box and I can ping the tr0 and eth0. All workstations on 192.168.0.0 subnet can ping tr0 192.168.0.1, but can not ping any workstations on 10.11.15.0 subnet. I try using tr0 to ping eth0 and the response is host unreachable.
[root@linus root]# ping -I tr0 10.11.15.225
PING 10.11.15.225 (10.11.15.225) from 192.168.0.1 tr0: 56(84) bytes of data.
From 192.168.0.1 icmp_seq=1 Destination Host Unreachable
From 192.168.0.1 icmp_seq=2 Destination Host Unreachable
From 192.168.0.1 icmp_seq=3 Destination Host Unreachable
And Vice versa from subnet 10.11.15.0 to subnet 192.168.0.0.
 
Old 10-12-2002, 04:14 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do you have any firewall?
 
Old 10-12-2002, 05:40 PM   #5
hnguy
LQ Newbie
 
Registered: Oct 2002
Posts: 7

Original Poster
Rep: Reputation: 0
I am not sure I have a firewall. How can I check whether there is a firewall or not and verify the setting is correct or not?
 
Old 10-13-2002, 11:41 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
ipchains -L
or
iptables -L
One of them should produce a result.
 
Old 10-14-2002, 09:02 AM   #7
hnguy
LQ Newbie
 
Registered: Oct 2002
Posts: 7

Original Poster
Rep: Reputation: 0
[root@linus root]# ipchains -L
Chain input (policy ACCEPT):
target prot opt source destination ports
ACCEPT tcp -y---- anywhere anywhere any -> smtp
ACCEPT tcp -y---- anywhere anywhere any -> http
ACCEPT tcp -y---- anywhere anywhere any -> ftp
ACCEPT tcp -y---- anywhere anywhere any -> ssh
ACCEPT tcp -y---- anywhere anywhere any -> teln et
ACCEPT udp ------ anywhere anywhere bootps:bootpc -> bootps:bootpc
ACCEPT udp ------ anywhere anywhere bootps:bootpc -> bootps:bootpc
ACCEPT all ------ anywhere anywhere n/a
ACCEPT all ------ anywhere anywhere n/a
ACCEPT all ------ anywhere anywhere n/a
REJECT tcp -y---- anywhere anywhere any -> 0:10 23
REJECT tcp -y---- anywhere anywhere any -> nfs
REJECT udp ------ anywhere anywhere any -> 0:10 23
REJECT udp ------ anywhere anywhere any -> nfs
REJECT tcp -y---- anywhere anywhere any -> x11: 6009
REJECT tcp -y---- anywhere anywhere any -> xfs
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):

[root@linus root]# iptables -L
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.18-3/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
iptables v1.2.5: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
 
  


Reply



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
Get an IP, but still can't communicate with network... bthornton Linux - Networking 21 03-21-2005 07:16 AM
Unable to communicate using serial port (COM1) /dev/ttys0 vinaybms Linux - Networking 1 03-11-2005 08:08 AM
My C Chat Program is unable to communicate. mcp_achindra Programming 1 03-20-2004 10:04 AM
communicate via serial... how-to? adam_boz Linux - Newbie 4 10-22-2002 10:30 AM
Cannot communicate outside my network Milkman00 Linux - Networking 24 09-26-2002 01:21 PM

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

All times are GMT -5. The time now is 10:31 AM.

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