Hot answers tagged

33 votes
Accepted

Why are IP addresses given to each interface and not device? What would the implications of that be?

Connecting an interface to a network makes it a part of that network. Therefore, the IP address is a property of the connection, not the host. Likewise, a host can have many network connections and ...
Zac67's user avatar
  • 83.9k
30 votes
Accepted

Is multicast on the public internet possible? And if yes: How?

You cannot multicast on the public Internet, but you can multicast across the public Internet to another site by using a tunnel that supports multicast. Multicast routing is very different from ...
Ron Maupin's user avatar
  • 99.4k
22 votes
Accepted

Is it possible to specify a route for a packet to take?

It's theoretically possible, but not really in a practical sense. The IP protocol includes two options: Loose Source and Record Route (LSRR) Strict Source and Record Route (SSRS) They're both ...
Barmar's user avatar
  • 436
20 votes
Accepted

Does anycast addressing add additional latency in any way?

Does anycast addressing, in itself, add any additional latency to network connections? No. one using unicast and the other using anycast Anycast is unicast. It is just that the same network is ...
Ron Maupin's user avatar
  • 99.4k
19 votes
Accepted

Why can't devices in different subnets talk with each other?

Devices in different subnets can communicate. That is the purpose of a router. Routers route packets between different networks. Even if devices in different networks are on the same layer-2 ...
Ron Maupin's user avatar
  • 99.4k
19 votes

Is multicast on the public internet possible? And if yes: How?

As an end-user, you cannot multicast across the Internet, unless using a tunnel. As a larger organization, like a video provider or an ISP, it is certainly possible to forward multicast packets ...
pHeoz's user avatar
  • 590
18 votes
Accepted

How does a router find the next hop when the receiver is in a distant IP network?

Say I want to send a frame to a web server, and let's say this web server is in a very distant IP outside my local network e.g. a Google server. You're sending packets to remote destinations. Frames ...
Zac67's user avatar
  • 83.9k
17 votes

Why are IP addresses given to each interface and not device? What would the implications of that be?

It would not be enough. Suppose I have a computer with three interfaces: eth0 (wired Ethernet), wlan0 (wifi), and vboxnet0 (virtualbox). One of the interfaces is connected to an internal network, one ...
Piskvor left the building's user avatar
16 votes
Accepted

Does reply use the same path from which the ping(echo request) has been sent?

There is absolutely no rule to the effect that pings follow the same path on return, quite the opposite in fact. ICMP packets are routed based on their destination, so if you have asymetrical routing ...
Jeremy Gibbons's user avatar
15 votes
Accepted

netstat -nr returning "0/1" -- what does that mean?

Some VPNs push the default gateway (a /0 netmask) as two /1 networks: 0/1 and 128/1. Since a more specific route always wins, this forces traffic to be routed via the VPN instead of over the default ...
Teun Vink's user avatar
  • 17.1k
14 votes
Accepted

What is the difference between routing table and forwarding table?

In routers you normally have two separate planes, often called "control plane" and "forwarding plane". The control plane is the "brain" of the router and handles things as management of the device ...
Sebastian Wiesinger's user avatar
13 votes
Accepted

What use are MAC addresses?

Well, but how does it find out it's [www.example.com's] MAC address needed for 802.11 data link layer? Your computer doesn't, nor does it need to do so. Since the MAC address is only used within the ...
YLearn's user avatar
  • 27.3k
13 votes
Accepted

IPv6 and online privacy and security

Let's look at a live example. This being from my Linux workstation. (And for simplicity I actually omitted a couple of addresses.) I'll explain each of the addresses in turn: $ ip a s dev br0 3: br0: &...
Michael Hampton's user avatar
13 votes
Accepted

RIB vs FIB differences?

The forwarding information base (FIB) is the actual information that a routing/switching device uses to choose the interface that a given packet will use for egress. For example, the FIB might be ...
rnxrx's user avatar
  • 6,114
13 votes

Do routers change MAC address of packets when forwarding

When a frame comes into a router, the router strips off and discards the frame, losing any layer-2 addressing, including MAC addresses. The router will build a new frame for the next interface. Not ...
Ron Maupin's user avatar
  • 99.4k
13 votes
Accepted

Is policy routing bad?

Normally, a router forwards packets based on destination address alone. This is obviously very simple and efficient. Policy-based routing means the router is now looking at other factors to ...
Ted Quanstrom's user avatar
13 votes

How to setup self hosting with redundant Internet connections?

In your question, you're broadly describing the concepts implemented by Border Gateway Protocol (BGP), a signaling protocol "big" Internet routers use to coordinate the Internet routing ...
Jeff Wheeler's user avatar
  • 5,449
12 votes
Accepted

Why do I get "% Warning: use /31 mask on non point-to-point interface cautiously" when I use a /31 subnet mask?

Your problem is that you are addressing in two separate networks: 216.21.5.0/31 and 216.21.5.2/31. The addresses you are using are in the same /30 network, but two separate /31 networks. You need to ...
Ron Maupin's user avatar
  • 99.4k
12 votes
Accepted

What is the difference between broadcasting and flooding?

Broadcasting is a term that is used on a broadcast domain, which is bounded by layer-3 (routers). Broadcasts are sent to a special broadcast address, both for layer-2 and layer-3. A broadcast cannot ...
Ron Maupin's user avatar
  • 99.4k
12 votes
Accepted

Dealing with IP Spoofing

It means that a packet received from outside the local network could have a source address of the inside network. That would be for a malicious purpose. The router could be configured to check the ...
Ron Maupin's user avatar
  • 99.4k
11 votes
Accepted

Must the checksum field of the IPv4 header always be updated?

Since the router changes the IPv4 header (it decrements the TTL), it needs to calculate a new value for the checksum, otherwise subsequent devices receiving the packet will think it is damaged. This ...
Ron Maupin's user avatar
  • 99.4k
11 votes

routing between vlans not working

You don't have NAT enabled (you don't have ip nat outside on Vl 20). Without NAT, the ISP doesn't know how to route back to your 192.9.200.0 network. If you NAT to the VLan 20 address, the ISP ...
Ron Trunk's user avatar
  • 67.3k
10 votes
Accepted

Are there specific, concrete use cases for RIPv2 in modern network engineering?

I have often deployed RIP on the edge of MPLS VPNs on PE-CE links to give customers dynamic routing into their own VRF to good effect (though admittedly less and less these days). In this case it is ...
Benjamin Dale's user avatar
10 votes
Accepted

How can hosts on two different VLANs communicate?

Two separate VLANs must communicate through a layer-3 device, like a router. Devices on a VLAN communicate with each other using layer-2. Layer-3 must be used to communicate between separate layer-2 ...
Ron Maupin's user avatar
  • 99.4k
10 votes
Accepted

How are IPv4 Addresses provided uniquely to domains?

Who mainly provides IP addresses to domains? As in, who commands, "www.google.com, 103.233.38.93 is yours; www.stackexchange.com I will assign 104.16.115.182 to you; etc." Normally IP addresses are ...
Peter Green's user avatar
  • 13.3k
10 votes
Accepted

Difference between routing, forwarding, and switching

In general, forwarding refers to a device sending a datagram to the next device in the path to the destination, switching refers to moving a datagram from one interface to another within a device, and ...
Ron Maupin's user avatar
  • 99.4k
10 votes
Accepted

What does a switch do when the destination MAC address is unknown?

I think you are confused. The destination MAC address for any destination not on your LAN is the MAC address of the gateway configured in your source host. MAC addresses are layer-2 addresses, and ...
Ron Maupin's user avatar
  • 99.4k
10 votes
Accepted

OSPF without Area 0

There is only one way to use OSPF without an Area 0, and that is to use OSPF with a single area. If you only have one OSPF area, you can number it any way you like, but if you have even two areas, you ...
Ron Maupin's user avatar
  • 99.4k
10 votes
Accepted

Is rerouting possible in UDP?

This is not the hosts that decide which route a packet will follow, each router in the path make it's own decision. (Actually, the originating host could use the IP strict source option to force the ...
JFL's user avatar
  • 19.6k
10 votes

BGP vs OSPF path selection with /24 vs /23`

The route with the longest mask (/24) is always preferred regardless of how it’s learned. The protocol doesn’t matter.
Ron Trunk's user avatar
  • 67.3k

Only top scored, non community-wiki answers of a minimum length are eligible