LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-26-2003, 02:16 PM   #1
acjt
Member
 
Registered: Dec 2002
Location: Australia
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
Redhat 9.1 network problem


I've just reinstalled redhat 9.1 on my laptop. all went well, or so I thought. I have sshd installed because I network my two machines.
However, I'm not even able to ping to or from that machine. I opened the security logs, and saw that sshd is started, listening on 0.0.0.0 port 22.
I've set /etc/hosts and resolv.conf so that the machine is listed in both,with ip address 102.168.0.3 (which it was before I resintalled).
I must surely be missing a file or something, but I don't know what it is!
Anyone able to point out what I think is the obvious?


ifconfig shows this for eth0.
inet addr: 192.168.0.3 Bcast: 192.168.0.255 Mask:255.255.255.0

Last edited by acjt; 06-26-2003 at 02:27 PM.
 
Old 06-26-2003, 03:06 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
Try ping yourself (192.168.0.3). If it is OK but can't ping to the other address - check firewall setting.
 
Old 06-26-2003, 03:14 PM   #3
acjt
Member
 
Registered: Dec 2002
Location: Australia
Distribution: Gentoo
Posts: 161

Original Poster
Rep: Reputation: 30
I can ping self. I turned off the firewall. /etc/init.d/iptables stop
Still, no change
 
Old 06-26-2003, 03:48 PM   #4
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
You turn it off on both computers?
Once again describe the connection way (hub/switch, direct cross-over connection).
Post results of 'ifconfig' and 'route -n' for both machines.
 
Old 06-26-2003, 04:46 PM   #5
acjt
Member
 
Registered: Dec 2002
Location: Australia
Distribution: Gentoo
Posts: 161

Original Poster
Rep: Reputation: 30
Yes, the firewall is off on both of them.
I have them connected via a crossover cable.

server:
Quote:
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.26.131.157 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 172.26.131.157 0.0.0.0 UG 0 0 0 ppp0


eth0 Link encap:Ethernet HWaddr 00:26:54:0B:1F:C4
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:381 errors:0 dropped:0 overruns:0 carrier:381
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:38990 (38.0 Kb)
Interrupt:5 Base address:0xb000

eth1 Link encap:Ethernet HWaddr 00:0C:6E:1A:E0:BB
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:254 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:23538 (22.9 Kb) TX bytes:630 (630.0 b)
Interrupt:11 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1694 errors:0 dropped:0 overruns:0 frame:0
TX packets:1694 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:133847 (130.7 Kb) TX bytes:133847 (130.7 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:213.78.109.9 P-t-P:172.26.131.157 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:7711 errors:0 dropped:0 overruns:0 frame:0
TX packets:8326 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:5456763 (5.2 Mb) TX bytes:813240 (794.1 Kb)

laptop:
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0



eth0 Link encap:Ethernet HWaddr 00:00:86:5C:56:60
inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:100
RX bytes:60 (60.0 b) TX bytes:240 (240.0 b)
Interrupt:9 Base address:0x300

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:697 errors:0 dropped:0 overruns:0 frame:0
TX packets:697 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:47086 (45.9 Kb) TX bytes:47086 (45.9 Kb)
 
Old 06-27-2003, 11:10 AM   #6
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
I see that the server has two eths.
But I dislike the routing table:
Code:
192.168.0.0    0.0.0.0    255.255.255.0    U 0 0 0 eth0
192.168.0.0    0.0.0.0    255.255.255.0    U 0 0 0 eth1
Same destination for both of eth0 & eth1? Probably the second line is a dummy one.
Looking at the laptop routing table you should have crossover cable between laptop NIC & eth0 in server. Is it done this way?
I dislike also non-zero carrier values which points some transmission problems
 
  


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
RedHat 9 network problem XtremeWarrior Linux - Networking 3 11-16-2003 04:25 AM
Network problem in RedHat SainT1337 Linux - Networking 5 10-17-2003 12:05 PM
problem with redhat 8.0 network broodman Linux - Networking 9 08-19-2003 10:46 PM
Network Connectivity Problem (RedHat 7.2) exitsfunnel Linux - Networking 10 05-26-2003 09:18 PM
RedHat 7.0 Network Problem Saetaes Linux - Networking 3 01-15-2001 11:36 AM

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

All times are GMT -5. The time now is 01:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration