[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to ping gateway



Eric Gaumer wrote:
On Mon, 2004-09-20 at 08:47, Jacob Larsen wrote:
I can ping my server, and the gateway from my home pc, but can not ping the gateway nor another server on the same subnet from the server.
I use bond0 for eth0 and eth1.
When I clear iptables there is no change.


eth0      Link encap:Ethernet  HWaddr 00:0F:20:7A:7A:53
inet addr:81.7.167.226 Bcast:81.255.255.255 Mask:255.255.255.240
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:1037 errors:0 dropped:0 overruns:0 frame:6
          TX packets:403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:11 txqueuelen:1000
          RX bytes:77395 (75.5 KiB)  TX bytes:48278 (47.1 KiB)
          Interrupt:18


11100010 --> .226
11110000 --> mask

This gives you 15 addresses. Why is the broadcast address not one of
these 15? The broadcast should be 81.7.167.239 which is the highest
address you have using that netmask. Not?

I am a novice in this area.
Could this help:
# cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address 81.7.167.226
        netmask 255.255.255.240
        gateway 81.7.167.225

auto eth1
iface eth1 inet static
        address 81.7.167.227
        netmask 255.255.255.240
        gateway 81.7.167.225

auto bond0
iface bond0 inet static
        address 81.7.167.228
        netmask 255.255.255.240
        gateway 81.7.167.225
        up ifenslave bond0 eth0
        up ifenslave bond0 eth1
        post-down ifconfig eth1 down
        post-down ifconfig eth0 down

I really don't know what bond0 is so I may be missing something.

bond0 is Bonding. If eth0 is down eth1 takes over...

Thanks,
Jacob



Reply to: