gatewayThe route to the add command explanation

route add  时间:2021-01-31  阅读:()

The route to the add command explanation

The route to the add command explanation

1. The specific function

This command is used to display and modify entries in the localIP routing table. Using a no-take ROUTE can show help.

2. G r ammar,

Route [-p] [ [] ] [ [ [] [] [] [] [ [ [] [] [] [] [] [ [ [] [] [] [][] [ [ [] [] [] [] [ [ [] [] [] [ [ [] ] [ [] ] [ [] ] [ [] ] [ [] ]

3. The parameters that

The -f

Clear all is not the main road by (subnet mask 255. 255.255.255routing) , loopback network routing (target for 127.0.0.0,subnet mask 255.255.255.0 routing) or multicast routing(target as ", subnet mask for 240.0.0.0 routing) in the routingtable entry. If it is combined with one of the commands (suchas Add, Change, or Delete) , the table will be cleared prior torunning the command.

-p

When used with the Add command, the specified route is addedto the registry and initializes the IP routing table when theTCP/IP protocol is started. By default, the added route is notsaved when the TCP/IP protocol is started, and when used with

the Print command, the list of permanent routes is displayed.All other commands ignore this parameter. The location of thepermanent route in the registry is

HKEY_LOCAL_MACHSYSTEMCurrentContro lSetServ ice sTcpipParametersPersistentRoutes.

Command specifies the command to run. The following table listsvalid commands.destination

Specify the network target address of the route. Target addresscan be an IP network address (including the network address ofthe host address is set to 0) , for host routing is the IP address,for the default route is 0.0.0.0.masksubnetmask

Specifies the netmask that is associated with the networktarget address (also called the subnet mask) . The subnet maskcan be an appropriate subnet mask for the IP network address,which is 255.255.255.255 for the host route and 0.0.0.0 for thedefault route. If ignored, use the subnet mask 255.255. 255.255.The target address cannot be more detailed than itscorresponding subnet mask because of the relationship betweenthe target address and the subnet mask. In other words, if oneof the subnet masks is 0, the corresponding digit in the targetaddress cannot be set to 1.

The gateway

Specifies the previous or next hop IP address of the availableaddress set defined by the network target and the subnet mask.For the subnet routing of the local connection, the gatewayaddress is the IP address assigned to the subnet interface. Forremote routes that can be used by one or more routers, thegateway address is an addressable IP address assigned to anadjacent router.metric

Specify required for routing jump points integer value (therange is 1 ~ 9999) , it is used to choose in the routing tablemultiple routing and forwarding packets in the target addressmatch most of routing. The selected route has the minimumnumberof jumps. The jump points can reflect the number of hops, thespeed of the path, path reliability, path throughput, andmanagement properties.

If inte*ce specifies the interface index of the interface thatthe target can reach. Using the Route print command, you candisplay a list of interfaces and their corresponding interfaceindexes.

For an interface index, you can use a decimal or hexadecimalvalue. For hexadecimal values, add 0x to the hexadecimal number.When the if parameter is ignored, the interface is determinedby the gateway address.

Note: the larger the value of the jump points to a column in

the routing table is due to allow TCP/IP interface accordingto each of the LAN IP address, subnet mask and default gatewayconfigured automatically determine the routing table middleroad caused by the jump points. The default boot automaticallydetermine interface jump points to determine the speed of eachinterface, adjusted the routing jump points of each interface,thus created the fastest interface routing has the lowest jumppoints. To remove the large jump points, disable the automaticdetermination interface jump points in the high-levelproperties of the TCP/IP protocol for each LAN connection. Ifthere is an appropriate entry in the local network file in thesystemrootSystem32DriversEtc folder, the name can be used forDestination. As long as the name can be through the domain namesystem (DNS) queries such standard analytical technology intothe IP address, host name can be used for the Gateway, DNSqueries using stored in systemrootSystem32DriversEtc folderlocal host file and NetBIOS name resolution. If it is a Printor Delete command, you can ignore the Gateway parameter and usewildcards to represent the target and the Gateway. The valueof a Destination can be a wildcard specified by the asterisk(*) . If you specify an asterisk (*) or question mark (?) It isseen as awildcard, printing or deleting amatching destinationroute. The asterisk represents any sequence of characters, andthe question mark represents any character. For example, 10.

* 1, 192. 168. *, 127. * and * 224 * are all valid USES ofasterisks. Using a combination of invalid targets and subnetmasks (netmask) values, the "Route bad gateway address netmask"error message is displayed. This error occurs when one or moreof the targets are set to 1 and the corresponding bits in thesubnet mask are set to 0. The target and subnet mask can be usedto check this situation through the binary representation. The

subnet mask, represented in binary, consists of a series of 1anda series of 0 parts that represent part of the target networkaddress section. Check the target to determine if the hostaddress portion of the target (defined by the subnet mask) isset to 1.

The Route command for Windows 98 does not support the -pparameter.

This command is only available when the TCP/IP protocol isinstalled as a component of the network adapter property in anetwork connection.

4. The examples illustrate

Example 1: to display the full contents of the IP routing table,execute the following command:

The route print

Example 2: to display the routing of the IP routing table withthe start of 10, execute the following command:

The route print 10. *

Example 3: to add the default route to the default gatewayaddress of 192. 168. 12. 1, execute the following command:Route add 0.0.0.0 mask 0.0.0.0.0.0, 192. 168. 12. 1

Example 4: to add a target of 10.41.0.0, the subnet mask is

255.255.0.0, the next step address is the 10. 27.0. 1 route,execute the following command:

Route add 10.41.0.0 mask 255.255.0.0 10.27.0. 1

Example 5: to add a target of 10.41.0.0, the subnet mask is

255.255.0.0, and the next hop address is a permanent route of

10.27.0. 1, and execute the following command:

Route - p add 10.41.0.0 mask 255.255.0. 10.27.0. 1

Example 6: to add a target of 10.41.0.0, the subnet mask is

255.255.0.0, the next hop address is 10. 27.0. 1, and the jumppoint is the route of 7, and execute the following command:Route add 10.41.0.0 mask 255.255.0. 10.27.0. 1 metric 7Example 7: to add a target for 10.41.0.0, subnet mask is

255.255.0.0, the next hop address for 10.27.0. 1, interfaceindex of 0 x3 routing, execute the following command:Route add 10.41.0.0 mask 255.255.0.0 10.27.0. 1 if 0x3Example 8: to delete a route with a target of 10.41.0.0, andthe subnet mask of 255.255.0.0, execute the following command:Route delete 10.41.0.0 mask 255.255.0.0

Example 9: to delete all routes starting inthe IP routing tablewith 10.

The route the delete 10. *

Example 10: to set the target to 10.41.0.0, the next stepaddress of the route with a subnet mask of 255.255.0.0 ischanged from 10. 27.0. 1 to 10.27.0. 25, with the followingcommand:

Route change 10.41.0.0 mask 255.255.0.010.27.0.25

Example 11 : to add a static route to the target of 172.0.0.0.0,the network is forwarded to the network as a route of

172.25. 25. 1

Route add 172.0.0.0 mask 255.0.0.0 172.25.25. 1 metric 2-pUse cases:

Route-p add 192. 168.0.0 mask 255.255.0.0 192. 168. 5.254metric

1

小白云 (80元/月),四川德阳 4核2G,山东枣庄 4核2G,美国VPS20元/月起三网CN2

小白云是一家国人自营的企业IDC,主营国内外VPS,致力于让每一个用户都能轻松、快速、经济地享受高端的服务,成立于2019年,拥有国内大带宽高防御的特点,专注于DDoS/CC等攻击的防护;海外线路精选纯CN2线路,以确保用户体验的首选线路,商家线上多名客服一对一解决处理用户的问题,提供7*24无人全自动化服务。商家承诺绝不超开,以用户体验为中心为用提供服务,一直坚持主打以产品质量用户体验性以及高效...

萤光云(16元/月)高防云服务器自带50G防御

螢光云官網萤光云成立于2002年,是一家自有IDC的云厂商,主打高防云服务器产品。在国内有福州、北京、上海、台湾、香港CN2节点,还有华盛顿、河内、曼谷等海外节点。萤光云的高防云服务器自带50G防御,适合高防建站、游戏高防等业务。本次萤光云中秋云活动简单无套路,直接在原有价格上砍了一大刀,最低价格16元/月,而且有没有账户限制,新老客户都可以买,就是直接满满的诚意给大家送优惠了!官网首页:www....

云步云72.5元/月起云服务器,香港安畅/葵湾/将军澳/沙田/大浦CN2机房,2核2G5M

云步云怎么样?云步云是创建于2021年的品牌,主要从事出售香港vps、美国VPS、日本VPS、香港独立服务器、香港站群服务器等,机房有香港、美国、日本东京等机房,目前在售VPS线路有CN2+BGP、CN2 GIA,香港的线路也是CN2直连大陆,该公司旗下产品均采用KVM虚拟化架构。目前,云步云提供香港安畅、沙田、大浦、葵湾、将军澳、新世界等CN2机房云服务器,2核2G5M仅72.5元/月起。点击进...

route add为你推荐
金士顿4g内存条4g金士顿内存怎么样桌面背景图片桌面背景和桌面壁纸的区别是什么?麒麟820和980哪个好4415y处理器和麒麟980哪个好?网页传奇哪个好玩近有什么好玩的网页传奇介绍么dnf魔枪士转职哪个好DNF魔枪士转职转哪个好 决战者征战者转职清理手机垃圾软件哪个好清理手机垃圾的软件哪个好美国国际东西方大学出国留学,美国“野鸡大学”有哪些?考生个人空间登录如何找回 自考考生个人空间的密码?辽宁联通网上营业厅辽宁联通怎样用发短信方式查询话费和流量dns服务器故障DNS服务器老是出错 如何从根本上解决??
域名服务器的作用 hostmaster host1plus bbr 网通代理服务器 数字域名 天翼云盘 如何注册阿里云邮箱 上海联通宽带测速 常州联通宽带 架设邮件服务器 河南移动梦网 万网服务器 googlevoice 上海联通 cloudflare asp简介 性能测试工具 ssd 免费免备案cdn 更多