Cannot ping static ip on eth1

Posted by Calvin Froedge on Ask Ubuntu See other posts from Ask Ubuntu or by Calvin Froedge
Published on 2011-11-22T23:03:04Z Indexed on 2011/11/23 18:04 UTC
Read the original article Hit count: 427

Filed under:
|

I am trying to ping the network interface I have set up for eth1. This is my config:

auto eth1
iface eth1 inet static
  address 192.168.1.2
  netmask 255.255.255.0
  gateway 192.168.1.1
  broadcast 192.168.1.255

If I ping 192.168.1.2, I get:

Ping 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
From 192.168.1.3 icmp_seq=3 Destination Host Unreachable

Results of ifconfig tell me that the IPv4 address is 192.168.1.3. I can ping this ip. Bcast and Mask are as expected (same as in definition).

I can ping 192.168.1.3 from my macbook. I cannot ping 192.168.1.2 locally or from my macbook. Any ideas why?

© Ask Ubuntu or respective owner

Related posts about 11.04

Related posts about networking