From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Stephan von Krawczynski <skraw@ithnet.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: How to configure an ethernet dev as PtP ?
Date: Tue, 15 Apr 2003 08:10:59 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.53.0304150759560.457@chaos> (raw)
In-Reply-To: <20030415102109.4802ddd0.skraw@ithnet.com>
On Tue, 15 Apr 2003, Stephan von Krawczynski wrote:
> Hello all,
>
> I tried to configure an ethernet device as a pointopoint link recently, just to
> find out that this does not work as one would expect via:
>
> ifconfig eth0 192.168.1.1 pointopoint 192.168.5.1 up
>
> I tried on kernel 2.4.21-pre6 and 2.2.19 (just to name two), both the same. It
> comes up as:
>
> eth0 Link encap:Ethernet HWaddr 00:04:76:F7:E9:17
> inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
> UP BROADCAST MULTICAST MTU:1500 Metric:1
>
> I do not understand why this does not work out just like another ptp-interface
> like isdn:
>
> isdn0 Link encap:Ethernet HWaddr FC:FC:00:00:00:00
> inet addr:192.168.1.1 P-t-P:192.168.5.1 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
>
> Is there anything I mis-understood or a good reason for not being able to make
> eth pointopoint?
>
> I have the feeling this question is pretty brain-dead, but anyway, maybe some
> kind soul can drop a few words ...
> --
> Regards,
> Stephan
Because ethernet is not a point-to-point interface. At the hardware
level, ethernet talks from one hardware address to another hardware
address, i.e., the IEEE station address. You need ARP to find out
what that address is so you can't "get there from here." But, you
can do essentially the same thing, you set up a host route on
that interface.
Use a 'private' network address...
On one host:
ifconfig eth1 10.0.0.1 netmask 255.255.255.0 broadcast 10.0.0.255
route add -host my-router-ip-address dev eth1
On the other host:
ifconfig eth1 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255
route add -host my-client-ip-address dev eth1
Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.
next prev parent reply other threads:[~2003-04-15 12:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-15 8:21 Stephan von Krawczynski
2003-04-15 12:10 ` Richard B. Johnson [this message]
2003-04-15 13:12 ` Stephan von Krawczynski
2003-04-15 14:50 ` Chris Friesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.53.0304150759560.457@chaos \
--to=root@chaos.analogic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=skraw@ithnet.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®