1 ip routing basics configuration, Ip routing and routing table, Routing – H3C Technologies H3C S5120 Series Switches User Manual

Page 284: Routing table, Contents of a routing table, Ip routing basics configuration

Advertising
background image

1-1

1

IP Routing Basics Configuration

Go to these sections for information you are interested in:

z

IP Routing and Routing Table

z

Displaying and Maintaining a Routing Table

The term “router” in this document refers to a router in a generic sense or a Layer 3 switch.

IP Routing and Routing Table

Routing

Routing in the Internet is achieved through routers. Upon receiving a packet, a router finds an optimal

route based on the destination address and forwards the packet to the next router in the path until the

packet reaches the last router, which forwards the packet to the intended destination host.

Routing Table

Routing table

Routing tables play a key role in routing. Each router maintains a routing table, and each entry in the

table specifies which physical interface a packet destined for a certain destination should go out to

reach the next hop (the next router) or the directly connected destination.

Routes in a routing table can be divided into three categories by origin:

z

Direct routes: Routes discovered by data link protocols, also known as interface routes.

z

Static routes: Routes that are manually configured.

z

Dynamic routes: Routes that are discovered dynamically by routing protocols.

Contents of a routing table

A routing table includes the following key items:

z

Destination address: Destination IP address or destination network.

z

Network mask: Specifies, in company with the destination address, the address of the destination

network. A logical AND operation between the destination address and the network mask yields

the address of the destination network. For example, if the destination address is 129.102.8.10 and

the mask 255.255.0.0, the address of the destination network is 129.102.0.0. A network mask is

Advertising