Re: Ping and LAN Problem



On Mon, Aug 13, 2007 at 08:59:42PM +0530, das দাশ wrote:
I have two Ethernet cards, named by OS as eth0 and eth2. My DSL router
modem is connected on eth2. It is working fine (that is how I am sending
this mail :)). But, my laptop (on Ubuntu 7.04 too) connected to this
machine on eth0 of the desktop. The eth0 is fixed IP: 192.168.0.1 and
the laptop is 192.168.0.2. Earlier, I have always connected like this,
with ipmasq on in the Desktop. But, for quite some time, I did not use
the laptop. Now, when I am going to connect, the Desktop is giving a
queer message:

<<<
dd@mahammad:~$ ping 192.168.0.2
PING 192.168.0.2 (192.168.0.2) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

You get this message when your firewall blocks an outgoing packet.

From the laptop too, the ping is not working. It is getting stuck
without any output till I press 'Ctrl-c', though the self-ping with
'ping 192.168.0.2' from the laptop is working fine.

Why this is happening? Earlier I have done all my works through this
LAN. And I know so little of this networking things.

The symptoms are consistent with the theory that you have a firewall on
your desktop that doesn't allow it to talk to your laptop (and talking
includes replying to the laptop's pings).

ipmasq sets up the iptables firewall for you automatically. You could
try rerunning it to see whether that fixes things.

I am quoting the output of the 'ifconfig -a' on the desktop:

<<<
dd@mahammad:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:A1:B0:09:0C:8F
inet addr:192.168.0.1 Bcast:192.168.1.255 Mask:255.255.255.0

The broadcast address is wrong, it should be 192.168.0.255. Strange,
usually it is determined automatically and correctly. Have you
overriden it by hand? How does your /etc/network/interfaces look like?

An incorrect broadcast address doesn't affect regular connections; you''
need to fix your firewall in any case.

inet6 addr: fe80::2a1:b0ff:fe09:c8f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
...

eth2 Link encap:Ethernet HWaddr 00:E0:7D:89:F6:2F
inet addr:192.168.1.40 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:7dff:fe89:f62f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
...

Marius Gedminas
--
A Law of Computer Programming:
Make it possible for programmers to write in English
and you will find that programmers cannot write in English.

Attachment: signature.asc
Description: Digital signature

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: Trouble Networking XP Pro & 98SE
    ... If you can ping other computers and other computers can't ping your ... Networking, Internet, Routing, VPN, Anti-Virus, Tips & Troubleshooting on ... Also have a XP Pro laptop connected> wirelessly. ... I can not see anywhere to set these for the LAN> or High-Speed Internet connections. ...
    (microsoft.public.windowsxp.network_web)
  • Re: networking issue
    ... desktop but still can from the laptop. ... Full Targets gateway 192.168.1.101 LAPTOP 192.168.1.104 Basement ... Ping statistics for::1: ... My Documents Disk ...
    (microsoft.public.windowsxp.network_web)
  • Re: Networking help please
    ... Start diagnosis for MAINLOUNGE ... Full Targets mainlounge 192.168.2.3 LAPTOP 192.168.2.2 gurpreet-singh ... Ping statistics for 192.168.2.3: ...
    (microsoft.public.windowsxp.network_web)
  • Re: cant access desktop from laptop
    ... Start diagnosis for GATEWAY ... "GATEWAY ping GATEWAY" ... Desktop Pictures Disk ... Laptop Backup Disk ...
    (microsoft.public.windowsxp.network_web)
  • Re: XP has stopped serving outside localhost
    ... My laptop is my working machine. ... I have cisco vpn installed. ... connections between removing 4.8 and installing 5. ... I have tried static though on this particular router, ...
    (microsoft.public.windowsxp.network_web)