All of lore.kernel.org
 help / color / mirror / Atom feed
* PtP not working
@ 2006-05-20 15:30 Antonio Di Bacco
  2006-05-21 11:20 ` Martijn Lievaart
  0 siblings, 1 reply; 4+ messages in thread
From: Antonio Di Bacco @ 2006-05-20 15:30 UTC (permalink / raw)
  To: netfilter

Anyone could explain this?

Two linux systems connected:

System A     <=========> System B
                   eth0                    eth0

Each system ha the following config:

# routing enabled
net.ipv4.ip_forward=1

#ethernet with no address associated and NOARP set
eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:24:65
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:1306 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1325 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:732864 (715.6 KiB)  TX bytes:61643 (60.1 KiB)
          Base address:0x3c00

# Routing table
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.10.10.10     *               255.255.255.255 UH    0      0        0 eth0


I'm on System A and try to ping 10.10.10.10 but no answer. Where is the 
problem?

Bye,
Antonio.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PtP not working
  2006-05-20 15:30 PtP not working Antonio Di Bacco
@ 2006-05-21 11:20 ` Martijn Lievaart
  2006-05-21 12:36   ` Antonio Di Bacco
  2006-05-21 12:38   ` Antonio Di Bacco
  0 siblings, 2 replies; 4+ messages in thread
From: Martijn Lievaart @ 2006-05-21 11:20 UTC (permalink / raw)
  To: Antonio Di Bacco; +Cc: netfilter

Antonio Di Bacco wrote:

>Anyone could explain this?
>
>Two linux systems connected:
>
>System A     <=========> System B
>                   eth0                    eth0
>
>Each system ha the following config:
>
># routing enabled
>net.ipv4.ip_forward=1
>
>#ethernet with no address associated and NOARP set
>eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:24:65
>          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
>          RX packets:1306 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:1325 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:732864 (715.6 KiB)  TX bytes:61643 (60.1 KiB)
>          Base address:0x3c00
>
># Routing table
>Kernel IP routing table
>Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
>10.10.10.10     *               255.255.255.255 UH    0      0        0 eth0
>
>
>I'm on System A and try to ping 10.10.10.10 but no answer. Where is the 
>problem?
>  
>

Which system has 10.10.10.10? None. So how can any system answer? Even 
if there was a 10.10.10.10, you disabled the arp mechanism, so you can 
never find out where it is. Finaly, for the return packets exactly the 
same problem occurs.

If you want to make a point to point connection over ethernet:
- Either just configure a subnet there.
- Or:
  - Assign addresses to the interfaces (can be the same address as 
another interface on the same box)
  - Create static arp addresses for the other box
  - Create routes as above for the address of the other box

I think you will still have to enable arp for this to work, in which 
case you can skip the static arp entries.

HTH,
M4




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PtP not working
  2006-05-21 11:20 ` Martijn Lievaart
@ 2006-05-21 12:36   ` Antonio Di Bacco
  2006-05-21 12:38   ` Antonio Di Bacco
  1 sibling, 0 replies; 4+ messages in thread
From: Antonio Di Bacco @ 2006-05-21 12:36 UTC (permalink / raw)
  To: Martijn Lievaart; +Cc: netfilter

My problem is that both boxes should have the same ip address on eth0. They 
cannot be different.

Thank you,
Antonio

On Sunday 21 May 2006 13:20, Martijn Lievaart wrote:
> Antonio Di Bacco wrote:
> >Anyone could explain this?
> >
> >Two linux systems connected:
> >
> >System A     <=========> System B
> >                   eth0                    eth0
> >
> >Each system ha the following config:
> >
> ># routing enabled
> >net.ipv4.ip_forward=1
> >
> >#ethernet with no address associated and NOARP set
> >eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:24:65
> >          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
> >          RX packets:1306 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:1325 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:1000
> >          RX bytes:732864 (715.6 KiB)  TX bytes:61643 (60.1 KiB)
> >          Base address:0x3c00
> >
> ># Routing table
> >Kernel IP routing table
> >Destination     Gateway         Genmask         Flags Metric Ref    Use
> > Iface 10.10.10.10     *               255.255.255.255 UH    0      0     
> >   0 eth0
> >
> >
> >I'm on System A and try to ping 10.10.10.10 but no answer. Where is the
> >problem?
>
> Which system has 10.10.10.10? None. So how can any system answer? Even
> if there was a 10.10.10.10, you disabled the arp mechanism, so you can
> never find out where it is. Finaly, for the return packets exactly the
> same problem occurs.
>
> If you want to make a point to point connection over ethernet:
> - Either just configure a subnet there.
> - Or:
>   - Assign addresses to the interfaces (can be the same address as
> another interface on the same box)
>   - Create static arp addresses for the other box
>   - Create routes as above for the address of the other box
>
> I think you will still have to enable arp for this to work, in which
> case you can skip the static arp entries.
>
> HTH,
> M4


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PtP not working
  2006-05-21 11:20 ` Martijn Lievaart
  2006-05-21 12:36   ` Antonio Di Bacco
@ 2006-05-21 12:38   ` Antonio Di Bacco
  1 sibling, 0 replies; 4+ messages in thread
From: Antonio Di Bacco @ 2006-05-21 12:38 UTC (permalink / raw)
  To: Martijn Lievaart; +Cc: netfilter

Anyway I can have the same MAC address for both boxes on eth0.

On Sunday 21 May 2006 13:20, Martijn Lievaart wrote:
> Antonio Di Bacco wrote:
> >Anyone could explain this?
> >
> >Two linux systems connected:
> >
> >System A     <=========> System B
> >                   eth0                    eth0
> >
> >Each system ha the following config:
> >
> ># routing enabled
> >net.ipv4.ip_forward=1
> >
> >#ethernet with no address associated and NOARP set
> >eth0      Link encap:Ethernet  HWaddr 08:00:3E:26:24:65
> >          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
> >          RX packets:1306 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:1325 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:1000
> >          RX bytes:732864 (715.6 KiB)  TX bytes:61643 (60.1 KiB)
> >          Base address:0x3c00
> >
> ># Routing table
> >Kernel IP routing table
> >Destination     Gateway         Genmask         Flags Metric Ref    Use
> > Iface 10.10.10.10     *               255.255.255.255 UH    0      0     
> >   0 eth0
> >
> >
> >I'm on System A and try to ping 10.10.10.10 but no answer. Where is the
> >problem?
>
> Which system has 10.10.10.10? None. So how can any system answer? Even
> if there was a 10.10.10.10, you disabled the arp mechanism, so you can
> never find out where it is. Finaly, for the return packets exactly the
> same problem occurs.
>
> If you want to make a point to point connection over ethernet:
> - Either just configure a subnet there.
> - Or:
>   - Assign addresses to the interfaces (can be the same address as
> another interface on the same box)
>   - Create static arp addresses for the other box
>   - Create routes as above for the address of the other box
>
> I think you will still have to enable arp for this to work, in which
> case you can skip the static arp entries.
>
> HTH,
> M4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-21 12:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-20 15:30 PtP not working Antonio Di Bacco
2006-05-21 11:20 ` Martijn Lievaart
2006-05-21 12:36   ` Antonio Di Bacco
2006-05-21 12:38   ` Antonio Di Bacco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.