LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-18-2004, 03:40 PM   #1
pinaker
LQ Newbie
 
Registered: May 2004
Location: Gauteng, South Africa
Distribution: Debian
Posts: 9

Rep: Reputation: 0
Angry Cannot PING LAN


I've been staring at this problem for 3 day and i cannot find the answer!

This is my iptables:

firewall:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

ifconfig:
eth1 Link encap:Ethernet HWaddr 00:50:FC:F6:C6:5D
inet addr:192.168.1.250 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:256 errors:0 dropped:0 overruns:0 frame:0
TX packets:3543 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:20214 (19.7 KiB) TX bytes:212580 (207.5 KiB)
Interrupt:18


firewall:~# mii-diag eth1
Basic registers of MII PHY #32: 1100 782d 0000 0000 01e1 45e1 0001 0000.
The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
Basic mode control register 0x1100: Auto-negotiation enabled.
You have link beat, and everything is working OK.
Your link partner advertised 45e1: Flow-control 100baseTx-FD 100baseTx 10baseT-FD 10baseT, w/ 802.3X flow control.
End of basic transceiver informaion.

firewall:~# arp -an
? (192.168.1.1) at <incomplete> on eth1


NOW - After all this i cannot ping any pc on my local lan. I started off with a strick iptables config and i've trimmed it down to nothing (as you can see) but is still cannot ping the LAN. From this machine i can ping the internet, do all i want (apt-get XXX) everything works - except LAN.

Please any help with this...........
 
Old 06-18-2004, 04:36 PM   #2
linuxmarc
Member
 
Registered: Jun 2004
Posts: 44

Rep: Reputation: 15
Does it work with iptables turned off? What's netstat -nr show?
 
Old 06-18-2004, 04:39 PM   #3
pinaker
LQ Newbie
 
Registered: May 2004
Location: Gauteng, South Africa
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
netstat -nr : xxx.xxx.xxx.xxx = my public ip gateway
xxx.xxx.xxx.xxx 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 xxx.xxx.xxx.xxx 0.0.0.0 UG 0 0 0 ppp0
 
Old 06-18-2004, 04:42 PM   #4
linuxmarc
Member
 
Registered: Jun 2004
Posts: 44

Rep: Reputation: 15
Also: Does it work with iptables turned off?

Not to be presumptuous but, eth1 indicates the second ethernet interface (eth0 is the first). Are you certain you have the cable plugged into the correct port?
 
Old 06-18-2004, 04:43 PM   #5
pinaker
LQ Newbie
 
Registered: May 2004
Location: Gauteng, South Africa
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
Yeah eth0 is another card - i had the lan in there but had the same problem. so i've just de-configured it.
 
Old 06-18-2004, 05:03 PM   #6
pinaker
LQ Newbie
 
Registered: May 2004
Location: Gauteng, South Africa
Distribution: Debian
Posts: 9

Original Poster
Rep: Reputation: 0
I connect to this machine via the internet only- it's 1200 km away from me. So if i turn off iptables will i still ba able to connect to it via ssh?
 
Old 06-19-2004, 08:18 AM   #7
Worstje
Member
 
Registered: Mar 2004
Distribution: Slackware-current
Posts: 93

Rep: Reputation: 15
You should be fine as long as you make sure no rules to drop the ssh connection... If you flush all rules you basically remove anything that might have dropped the ssh so yes it should still work...
 
Old 06-23-2004, 07:01 AM   #8
evelo
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
Hi,
have you checked your
- /proc/sys/net/ipv4/icmp_echo_ignore_all
- /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts ?
evelino
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 02:39 PM
Any idea why this time I can not ping my LAN pc but can PING for ex. www.yahoo.com vakia Debian 5 09-28-2005 06:42 PM
Can't ping in LAN emailssent Linux - Networking 9 10-21-2004 11:07 PM
can't ping to outside LAN emailssent Linux - Networking 7 09-30-2004 06:37 AM
cannot ping LAN ryedunn Linux - Networking 5 04-01-2004 01:59 PM

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

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