Читать книгу Networking All-in-One For Dummies - Lowe Doug, Doug Lowe - Страница 42
Perusing Ports, Interfaces, and MAC Addresses
ОглавлениеA network interface is the electronic circuitry that allows a device to connect to a network. Each network interface provides a port, which is the plug-in point for the interface. Generally speaking, the terms port and interface are synonymous.
A network interface might be a separate add-on card for a computer, in which case the interface is called a network interface card (NIC). On some devices, such as printers, separate network interface cards are still common. But nearly all desktop and laptop computers have a network interface built into the computer’s motherboard, so separate NICs are rarely used on desktop computers or laptops. NICs are still widely used on servers, however, as servers are often configured with two or more interfaces; using a separate card for the interface allows for more flexibility.
The term adapter is often used as a synonym for interface. Port, interface, adapter — three words that mean the same thing.
Every network interface must have a unique identifier called a MAC address. (MAC stands for media access control, but that won’t be on the test.) Each MAC address is unique throughout the entire world. I have no idea whether MAC addresses are unique throughout the galaxy; it’s entirely possible that the computer system on some invading alien spacecraft would have a MAC address that is the same as your laptop, but if that were to happen, I doubt you’d be too concerned about fixing your network.
MAC addresses are important because they provide the means for a network to keep track of the devices that make up the network. Without MAC addresses, it would be impossible to know what devices are on the network. And it would be impossible to send information to a particular device or to know which particular device sent information.
The term physical address is sometimes used as a synonym for MAC address. The two terms are interchangeable.
MAC addresses are a part of layer 2 of the OSI Reference Model, called the link layer. This layer is responsible for the exchange of basic information on a network. The ability to uniquely identify every device on a network is a key component of enabling that to happen.
MAC addresses are 48 bits in length, which means that more than 280 trillion devices can be assigned unique MAC addresses before we run out. When written, MAC addresses are written in six octets separated by hyphens. An octet is a group of eight binary bits, written as a two-digit number in hexadecimal notation, which uses the letters A through F in addition to the digits 0 through 9 to represent the value of each octet. A typical MAC address looks like this:
48-2C-6A-1E-59-3D
If you want to see the MAC address of your computer’s network adapter, open a command prompt and type ipconfig /all. Scroll through the output from this command to see the MAC address (ipconfig calls a physical address) for each interface on your computer. For example, here’s the ipconfig output for the built-in adapter on my SurfaceBook:
Ethernet adapter Ethernet 2: Media State ……………………………………………….. : Media disconnected Connection-specific DNS Suffix . : bcf-engr.pri Description ……………………………………………….. : Surface Ethernet Adapter Physical Address ……………………………………… : 58-82-A8-9C-A7-28 DHCP Enabled ………………………………………………. : Yes Autoconfiguration Enabled ……………… : Yes
Here, you can see the MAC address is 58-82-A8-9C-A7-28.
A MAC address is technically associated with a network interface, not with the device that uses that interface. For example, if your computer’s motherboard has a network interface built in, the MAC address of the network interface is pretty much married to the motherboard. However, if your computer has a separate NIC, the MAC address is a part of the card, not the computer that the card is plugged into. If you remove the interface card from one computer and install it in another, the MAC address travels with the card.
The key points to remember here are that in order for a computer, printer, or any other device to connect to a network, that device must contain a network interface. That interface has a unique MAC address, which is the primary way that the network can distinguish one device from another.