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

妮妮云36元,美国VPS洛杉矶 8核 8G 36元/月,香港葵湾 8核 8G

妮妮云的来历妮妮云是 789 陈总 张总 三方共同投资建立的网站 本着“良心 便宜 稳定”的初衷 为小白用户避免被坑妮妮云的市场定位妮妮云主要代理市场稳定速度的云服务器产品,避免新手购买云服务器的时候众多商家不知道如何选择,妮妮云就帮你选择好了产品,无需承担购买风险,不用担心出现被跑路 被诈骗的情况。妮妮云的售后保证妮妮云退款 通过于合作商的友好协商,云服务器提供2天内全额退款,超过2天不退款 物...

Ceraus24元/月,国庆促销 香港云上新首月五折

Ceraus数据成立于2020年底,基于KVM虚拟架构技术;主营提供香港CN2、美国洛杉矶CN2、日本CN2的相关VPS云主机业务。喜迎国庆香港上新首月五折不限新老用户,cera机房,线路好,机器稳,适合做站五折优惠码:gqceraus 续费七五折官方网站:https://www.ceraus.com香港云内存​CPU硬盘流量宽带优惠价格购买地址香港云2G2核40G不限5Mbps24元/月点击购买...

Hosteons:新上1Gbps带宽KVM主机$21/年起,AMD Ryzen CPU+NVMe高性能主机$24/年起_韩国便宜服务器

我们在去年12月分享过Hosteons新上AMD Ryzen9 3900X CPU及DDR4内存、NVMe硬盘的高性能VPS产品的消息,目前商家再次发布了产品更新信息,暂停新开100M带宽KVM套餐,新订单转而升级为新的Budget KVM VPS(SSD)系列,带宽为1Gbps端口,且配置大幅升级,目前100M带宽仅保留OpenVZ架构产品可新订购,所有原有主机不变,用户一直续费一直可用。Bud...

route add为你推荐
桌面背景图片淡雅电脑自带的桌面背景图片原来合适现在不合适了怎么办月付百万的女人们我们家的女人们92集在线观看 韩剧我们家的女人们92中字 我们家的女人们93集快播下载百度空间首页百度空间在哪里登入?麒麟820和980哪个好骁龙710和麒麟980谁更厉害小说软件哪个好用免费什么软件看小说全免费小说软件哪个好用免费现在看小说用什么软件好?小说软件哪个好用免费有什么好用的免费小说软件苹果手机助手哪个好最新版iphone助手 PP助手好用吗?核芯显卡与独立显卡哪个好核芯显卡与独立显卡哪个好51空间登录怎样登51个人空间
传奇服务器租用 google电话 新秒杀 腾讯云盘 z.com 10t等于多少g 轻博客 12u机柜尺寸 java虚拟主机 优酷黄金会员账号共享 服务器是干什么用的 web服务器是什么 空间登陆首页 工信部网站备案查询 申请免费空间 重庆服务器 闪讯网 小夜博客 移动王卡 腾讯云平台 更多