ubuntu 9.04 Jaunty fail to ping LAN just after install

Asked by Richard Cheung on 2009-08-03

I just do a network install of ubuntu server 9.04 (Jaunty). The packages are pull from us.archive.ubuntu.com. I follow the installation wizard and installed SSH Server only. Just after I finish installation. I do a ping to my LAN but it fails. Are there any things that I should set up in order to ping my LAN?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu linux Edit question
Assignee:
No assignee Edit question
Last query:
2009-08-04
Last reply:
2009-08-20

Now I have set up my server with some application installed and I have enabled NAT and port forwarding. Here are the rules of the iptables.

----------------------------------------------------------------------------------------------------
iptables -L

Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-ssh tcp -- anywhere anywhere multiport dports ssh

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain fail2ban-ssh (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere

----------------------------------------------------------------------------------------------------
iptables -t nat -L

Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere 059149065231.ctinets.com tcp dpt:3390 to:10.1.1.1:3390

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

----------------------------------------------------------------------------------------------------

Any ideas?

Shang Wu (shangwu) said : #2

Do you have an IP?
Do you have the correct gateway/route?
What's the error for the ping??

I have two interface eth0(WAN) and eth1(LAN). eth1 was set to have static IP 10.1.1.100. I can ping the Internet and localhost but not the LAN, e.g. 10.1.1.1. The ping command just shows "PING 10.1.1.1 (10.1.1.1) 56(84) bytes of data." and stopped. I press Ctrl-C and it shows the following:
^C
--- 10.1.1.1 ping statistics ---
229 packets transmitted, 0 received, 100% packet loss, time 229820ms

I have no idea why I can't ping the LAN.

azwan ali (novatech) said : #4

i think it's related to your lan cable network
try
/usr/sbin/ethtool -s eth1 speed 100 duplex full autoneg on

Can you help with this problem?

Provide an answer of your own, or ask Richard Cheung for more information if necessary.

To post a message you must log in.