Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-23-2010, 10:08 AM
|
#1
|
|
Member
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319
Rep:
|
Cannot ping to my machine from another subnet
I installed apache2 on my Ubuntu machine and I am trying to access the server from another subnet. The server is connected using ethernet and has a static ip address. I can ping from the server to any machine in the other subnet but non of the machine on that subnet can ping the server.
iptables does not seem to be running
Code:
# service iptables status
iptables: unrecognized service
and its rules are
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
also ufw seems to be inactive
Code:
# ufw status verbose
Status: inactive
The output of netstat shows that apache is listening on port 80
Code:
# netstat -plantu | grep apache
tcp6 0 0 :::80 :::* LISTEN 1113/apache2
What is preventing my machine from being accessed from the other subnet?
|
|
|
|
04-23-2010, 10:14 AM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
You don't have the right network information set up. Either your default gateway is wrong/missing, or some other piece (subnet mask, etc.).
If you can't get off your one subnet, chances are it's the default gateway.
|
|
|
|
04-23-2010, 02:14 PM
|
#3
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
Right, if you still can't figure it out we'd need to see some IP info:
Given that you can actually ping from the borked host to external hosts means it would also be worthwhile to check:
Code:
# sysctl net.ipv4.icmp_echo_ignore_all
|
|
|
|
04-24-2010, 01:46 PM
|
#4
|
|
Member
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319
Original Poster
Rep:
|
I am sorry guys for taking this long to get back to you, I got busy yesterday.
Here is the output:
Code:
~$ ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:128.10.160.xxx Bcast:128.10.160.255 Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3732 (3.7 KB) TX bytes:6846 (6.8 KB)
Interrupt:29 Base address:0xc000
Code:
~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
128.10.160.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
0.0.0.0 128.10.160.251 0.0.0.0 UG 0 0 0 eth0
Code:
~$ sysctl net.ipv4.icmp_echo_ignore_all
net.ipv4.icmp_echo_ignore_all = 0
|
|
|
|
04-24-2010, 04:01 PM
|
#5
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,778
|
Quote:
Originally Posted by Basel
I am sorry guys for taking this long to get back to you, I got busy yesterday.
Here is the output:
Code:
~$ ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:128.10.160.xxx Bcast:128.10.160.255 Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/xx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31 errors:0 dropped:0 overruns:0 frame:0
TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3732 (3.7 KB) TX bytes:6846 (6.8 KB)
Interrupt:29 Base address:0xc000
Code:
~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
128.10.160.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
0.0.0.0 128.10.160.251 0.0.0.0 UG 0 0 0 eth0
Code:
~$ sysctl net.ipv4.icmp_echo_ignore_all
net.ipv4.icmp_echo_ignore_all = 0
|
Ok. Is all that right?? We don't know the particulars of your network, or the information you got from your network guys. The .251 for the default gateway looks suspicious to me, but I (as a rule), always set default gateways to .1, but again, that's all up to your network guys.
Best thing to do would be to confirm with them the default gateway, and subnet mask.
|
|
|
|
04-26-2010, 02:26 PM
|
#6
|
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Debian, FreeBSD, Ubuntu (desktop)
Posts: 3,859
Rep: 
|
128.10.160.251 is definitely an unusual default router address. (i.e. Better double check, as mentioned.)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:30 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|