
2023 Συγγραφέας: Peter John Melton | [email protected]. Τελευταία τροποποίηση: 2023-11-26 11:10

Η σημερινή συνάντηση ερωτήσεων και απαντήσεων έρχεται σε επαφή με το SuperUser - μια υποδιαίρεση του Stack Exchange, μια κοινότητα που καθοδηγείται από την ομαδοποίηση ιστοσελίδων Q & A.
Στιγμιότυπο οθόνης από Στιγμιότυπα οθόνης Linux (Flickr).
Το ερώτημα
Ο αναγνώστης SuperUser gholami θέλει να μάθει αν τα δημόσια IP είναι μοναδικά:
Are public IPs unique? I mean since we have two kinds of IPs (private and public) and if the public IP belongs to the router, then does everyone connected to the same router have a single IP address or not?
Τα δημόσια IP είναι μοναδικά;
Η απάντηση
Ο συνδρομητής fedesismo του SuperUser έχει την απάντηση για εμάς:
In general terms the answer is yes, public IPs are globally unique. In the context of IPv4, the IPs (v4) known for not being unique are private IPs. These are found in the following ranges:
- From 10.0.0.0 to 10.255.255.255.
- From 172.16.0.0 to 172.31.255.255.
- From 192.168.0.0 to 192.168.255.255.
See: RFC1918
The IP your home router has on the “Internet side” of the interface is public, given to you by your ISP. The IPs used for your home’s Wi-Fi or Ethernet connection are private, so they are not unique, but that is not a problem because those never leave your home before being NATed or translated by the NAT.
As mentioned in other comments (see thread link below), there is an exception to what I have just said. There are some techniques that allow us to be more flexible about the original one-to-one communication Internet protocol paradigm that allows one-to-nearest. These techniques are used when talking about services that need high availability, redundancy, or low latency like DNS or CDN services. Given a certain IP (IPv4 or IPv6), there might be more that one server in the world configured to answer to that IP, but only one will be answering.
See: RFC4786
IPv6 also introduced a new addressing system that copes with these “new needs” and it defined the Anycast Address.
IP Version 6 (IPv6) defines a new type of address, known as an Anycast Address, that allows a packet to be routed to one of a number of different nodes all responding to the same address. The Anycast Address may be assigned to one or more network interfaces (typically on different nodes) with the network delivering each packet addressed to this address to the “nearest” interface based on the notion of “distance” determined by the routing protocols in use.
See: RFC2526
About IPv6 Anycast Addresses
An Anycast Address is an address that is assigned to a set of interfaces that typically belongs to different nodes. A packet sent to an Anycast Address is delivered to the closest interface (as defined by the routing protocols in use) identified by the Anycast Address. Anycast Addresses are syntactically indistinguishable from Unicast Addresses because Anycast Addresses are allocated from the Unicast Address space. Assigning a Unicast Address to more than one interface makes a Unicast Address an Anycast Address. Nodes to which the Anycast Address is assigned must be explicitly configured to recognize that the address is an Anycast Address.
See: IPv6 Address Type: Anycast [Cisco]
Έχετε κάτι να προσθέσετε στην εξήγηση; Απενεργοποιήστε τα σχόλια. Θέλετε να διαβάσετε περισσότερες απαντήσεις από άλλους χρήστες τεχνολογίας Stack Exchange; Δείτε το πλήρες νήμα συζήτησης εδώ.
Συνιστάται:
Πώς να δείτε δημόσιες διαδρομές διαμετακόμισης ή δορυφορικές εικόνες στους χάρτες της Apple

Οι χάρτες της Apple έχουν φτάσει σίγουρα καλύτερα από το περίφημο αποκαλυπτικό της πριν από λίγα χρόνια. Εδώ είναι ένα χαρακτηριστικό που ίσως δεν έχετε παρατηρήσει: μπορείτε να δείτε έναν χάρτη με διαδρομές δημόσιας διακίνησης ή με δορυφορικές εικόνες.
Πώς να προστατεύσετε τον εαυτό σας από τις δημόσιες θύρες φόρτισης USB

Οι θύρες φόρτισης USB σε δημόσιους χώρους είναι βολικές αλλά ενδεχομένως επικίνδυνες. Τα δεδομένα μπορούν να μεταφερθούν μέσω σύνδεσης USB, οπότε συνδέοντας το τηλέφωνό σας σε μια άγνωστη θύρα φόρτισης, το θέτει σε κίνδυνο.
Γιατί έχω δημόσιες διευθύνσεις IPv4 και IPv6 που έχουν εκχωρηθεί στο οικείο δίκτυο;

Παρόλο που αναμένετε να έχετε μια διεύθυνση IPv4 εκχωρημένη στην τοποθεσία σας, μπορεί να εκπλαγείτε να βρείτε μια διεύθυνση IPv6 που σας έχει εκχωρηθεί επίσης. Γιατί και οι δύο τύποι θα σας εκχωρηθούν ταυτόχρονα; Η σημερινή θέση Q & A της SuperUser έχει την απάντηση σε μια ερώτηση περίεργου αναγνώστη.
Είναι πραγματικά απαραίτητο να προσθέσετε 'www' στις διευθύνσεις URL ιστοτόπων σε σύγχρονα προγράμματα περιήγησης τώρα;

Όταν επισκέπτεστε έναν ιστότοπο χρησιμοποιώντας το αγαπημένο μας πρόγραμμα περιήγησης, συνήθως πληκτρολογούμε το βασικό τμήμα της διεύθυνσης URL και φτάνουμε στην επιθυμητή τοποθεσία χωρίς προβλήματα. Αλλά έχουμε φτάσει σε ένα σημείο όπου μπορούμε να αρχίσουμε να παραλείπουμε το www από τις διευθύνσεις URL για όλους τους ιστοτόπους τώρα, ή είναι ακόμα απαραίτητο να το προσθέσετε;
Giveaway: StNotepad Touch, ένας επεξεργαστής κειμένου με μοναδικές χειρονομίες για το Slate και Tablet PC

Το StNotepad Touch είναι ένα επαγγελματικό πρόγραμμα επεξεργασίας κειμένου που διαθέτει μοναδικές χειρονομίες εκτός από τις προεπιλεγμένες ενσωματωμένες χειρονομίες. Οι χειρονομίες είναι διαθέσιμες για πολλές κοινές λειτουργίες