ifconfig pointopoint

Post new topic   Reply to topic    DD-WRT Forum Index -> Allgemeine Fragen
Author Message
ramaza
DD-WRT Novice


Joined: 14 Oct 2007
Posts: 28

PostPosted: Thu Nov 19, 2009 1:38    Post subject: ifconfig pointopoint Reply with quote
Wie konfiguriert man eine Point-to-Point Richtfunkstrecke auch auf IP-Ebene auf Point-to-Point?

Das sollte eigentlich mit "ifconfig ... pointopoint ..." gehen. Aber die Broadcastadresse bleibt weiterhin konfiguriert und der Point-to-Point Modus wird auch nicht aktiviert. Es tut sich einfach nichts. Habs schon mit hundert verschiedenen ifconfig Parametern probiert und ewig gegoogelt. Laut Google müsst funktionieren.

Damit könnte man unnötige IP-Adressen bzw. Subnetze einsparen weil man bei Punkt zu Punkt Verbindungen auf jeder Seite nur die IP-Adresse der Gegenstelle konfigurieren muss. Außerdem müsste als Ziel auch eine IP-Adresse genügen die irgendeine andere Schnittstelle der Gegenstelle hat.
Sponsor
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sat Nov 21, 2009 13:14    Post subject: Reply with quote
wozu?
wenn du richtige berechnete subnetze vergibst geht das doch auch automatisch mit den ranges

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
ramaza
DD-WRT Novice


Joined: 14 Oct 2007
Posts: 28

PostPosted: Sat Nov 21, 2009 13:31    Post subject: Reply with quote
Was meinst du mit "ranges"?

Aktuell verwende ich für Point to Point Verbindungen /30 Subnetze. Also 4 IPs abzüglich Broadcast und Netzadresse bleiben 2 IPs für beide Seiten der Verbindung. Soweit auch kein Problem nur nicht besonders elegant.

Ist aber rein technisch eigentlich total unnötig weil wenn ich 2 Router direkt miteinander verbinde, dann hängen diese Router natürlich auch noch in einem anderen Netz. Ist eh logisch, ein Router braucht ja mindestens zwei Netzwerkschnittstellen sonst kann er ja nichts routen.

Also hat der Router sowieso eine IP und damit können sich beide Router auch über die Direktverbindung adressieren.

Vielleicht wirds mit diesem Beitrag aus einer Mailing Liste verständlicher:

Code:
Oliver Joa writes:
> I have tried to figure out what the pointopoint flag
> of ifconfig is used for, but I have not found any
> sense?
> What can be done with that?

Look at the definition of ifaddr in <net/if.h>.  ifa_ifu contains a
union for either the broadcast address associated with an interface on
a network that supports broadcasts (e.g. an Ethernet), or the
destination address associated with an interface that reaches only one
other place (e.g. a PPP or SLIP link).

Broadcast networks have certain topological restrictions, such as you
can't have two Ethernet interfaces with addresses on the same network
or subnet.  Routing decisions on broadcast networks examine the
interface's address and subnet mask to know whether a packet's
destination is reachable via ARPing or routing.

There's no reason to ARP on a point-to-point link, and no need for a
broadcast address, since there's only one other system on the link.
Instead, ifa_ifu contains the address through which packets may be
routed.  There's no topological restriction against duplicated local
addresses.  This means you can have many point-to-point links, each
with the same local address, distinguished in the routing table by
their differing destination addresses (ifa_dstaddr).  This simplifies
the configuration you might tell remote users who dial into you for
PPP service.


Möglicherweise hab ich einfach einen Denkfehler aber alle Infos die ich bis jetzt diesbezüglich finden konnte sagen nichts Gegenteiliges.

Oder es gibt auch einen anderen Weg meine vielen /30 Subnetze loszuwerden. Ich möchte meine ganze Netzkonfiguration besser organisieren und automatisieren.
ramaza
DD-WRT Novice


Joined: 14 Oct 2007
Posts: 28

PostPosted: Sat Nov 21, 2009 13:38    Post subject: Reply with quote
Ach ja, hier ist sogar ein Konfigurationsbeispiel mit Pointopoint von Hetzner. Also müssts grundsätzlich funktionieren. Ob und wo es sinnvoll ist, ist eine andere Frage.

http://wiki.hetzner.de/index.php/9_IP_Adressen_mit_Ubuntu

Ich habs aber trotzdem bis jetzt noch bei keinem einzigen Rechner geschafft den Pointopoint anstatt des Broadcastmodus zu aktivieren. Auch nicht mit dem Hetzner Beispiel.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Allgemeine Fragen All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum