Default route and zero route

朱雀 2021-12-17 14:39 304阅读 0赞

A default route of a computer that is participating in computer networking is the packet forwarding rule (route) taking effect when no other route can be determined for a given Internet Protocol (IP) destination address. All packets for destinations not established in the routing table are sent via the default route. This route generally points to another router, which treats the packet the same way: If a route matches, the packet is forwarded accordingly, otherwise the packet is forwarded to the default route of that router. The process repeats until a packet is delivered to the destination. Each router traversal counts as one hop in the distance calculation for the transmission path.

The route evaluation process in each router uses the longest prefix match method to obtain the most specific route. The network with the longest subnet mask that matches the destination IP address is the next-hop network gateway.

The default route in Internet Protocol Version 4 (IPv4) is designated as the zero-address 0.0.0.0/0 in CIDR notation,[1] often called the quad-zero route. The subnet mask is given as /0, which effectively specifies all networks, and is the shortest match possible. A route lookup that does not match any other route, falls back to this route. Similarly, in IPv6, the default route is specified by ::/0.

In the highest-level segment of a network, administrators generally point the default route for a given host towards the router that has a connection to a network service provider. Therefore, packets with destinations outside the organization’s local area network, typically destinations on the Internet or a wide area network, are forwarded to the router with the connection to that provider.

The device to which the default route points is often called the default gateway, and it often carries out other functions such as packet filtering, firewalling, or proxy server operations.

-————————————

If set up a vpn tunel ,

Appliance 1 > : local gateway : 172.26.0.100 ; local tunnel : 2.2.2.2/24

Appliance 2> : local gateway : 172.26.0.101 ; local tunnel :0.0.0.0/0   

Then all traffic which is sent from tunnel : 2.2.2.2/24 will go into VPN tunnel.

转载于:https://www.cnblogs.com/kungfupanda/p/3191754.html

发表评论

表情:
评论列表 (有 0 条评论,304人围观)

还没有评论,来说两句吧...

相关阅读

    相关 vue----Route

    > router是vue一个插件,用来提供路由功能。通过路由的改变可以动态加载组件,达到开发单页面程序的目的。 路由的创建和使用: 1.创建路由对象数组 2

    相关 routes,route,router的理解

    路由,其实就是指向的意思,当我点击页面上的home按钮时,页面中就要显示home的内容,如果点击页面上的about 按钮,页面中就要显示about 的内容。Home按钮  =>

    相关 Virtual Routing and Forwarding

    一 简介 VRF策略和路由规则配合在Linux网络协议栈中提供了一种创建虚拟路由与转发域地能力。一个典型的例子就是多租户问题,租户有自己地路由表,并且是不同的网