In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to use Route in vxworks", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "how to use Route in vxworks" this article.
The command routec is used to maintain the routing table
The common parameters are as follows
Show-print routes (similar to netstat-r)
Add-add rout
Delete-Delete a rout
Change-change routing properties, such as gateways
Get-View routes for a destination
Monitor-monitors and reports changes in routing information, route misses, suspicious network partitions
The syntax is as follows
Route [- n] [- net |-host] [-] []
-n-disable DNS lookup address
-nollinfo-does not display routes that set the IPNET_RTM_LLINFO option
-T-specify routing table ID
-inet-IPv4 routing (default)
-inet6-IPv6 routing
-netmask-specifies the IPv4 destination mask of the-net route, using dotted decimal format ()
-prefixlen-- prefix length of net rout
-dev-device name. Not specified, or multiple links are reachable, you must use this command to specify which link to use
-iface-specify the address of the current host on the public network as the gateway when the intermediate system is not required to act as a gateway to reach the destination
-netmask-used to specify subnet routes whose mask is different from the default network interface. Use this option after the destination parameter to override the mask generated by IP_AF_INET. In IPv6, a similar option is-prefixlen
Routing has some options that affect the operation of the protocol when sent to a destination that matches the route. The following options provide settings / clearances
-down ~ IPNET_RTF_DOWN-mark the route as administratively down
-blackhole IPNET_RTF_BLACKHOLE-silently discard pkts (during updates)
-cloning IPNET_RTF_CLONING-generate a new route
-host IPNET_RTF_HOST-single node routin
-iface ~ IPNET_RTF_GATEWAY-the destination can be accessed directly
-llinfo IPNET_RTF_LLINFO-validly translates proto addr to link addr
-mbinding IPNET_RTF_MBINDING-packet sent along this route must be sent to multiple egress interfaces and/or multiple gateways
-net ~ IPNET_RTF_HOST-routing to a (sub) network
-nostatic ~ IPNET_RTF_STATIC-pretend route added by kernel or daemon
-notdone ~ IPNET_RTF_DONE-unresolved ARP/NDP entry
-pref IPNET_RTF_PREF-this route takes precedence
-proto1 IPNET_RTF_PROTO1-set protocol specific routing flag # 1
-proto2 IPNET_RTF_PROTO2-set protocol specific routing flag # 2
-reject IPNET_RTF_REJECT-emit an ICMP unreachable when matched
-skip IPNET_RTF_SKIP-stop searching this FIB and move to next one
-static IPNET_RTF_STATIC-manually added rout
-tunnelend IPNET_RTF_TUNNELEND-gateway specifies tunnel endpoint
-xresolve IPNET_RTF_XRESOLVE-emit a message on use (for external lookup)
'- rtt','-rttvar','- mtu','- hopcount','- expire' provides initialization for values maintained by transport layer protocols such as TCP.
When using the 'change' or' add' command, if the destination address or gateway is incomplete, use'- ifp' or'- ifa' to specify the interface or interface address.
Examples are as follows
Add 10.1.1.1 as the default IPv4 gateway
-> route add default 10.1.1.1
Add an IPv4 route 14.1 to 16 on the specified interface
-> route add-dev eth0-net-netmask 255.255.0.0 14.1.0.0
Add gateway 10.1.1.22 for host 15.1.6.7
-> route add-host 15.1.6.7 10.1.1.22
Add FEC0::1:0:0:0:6 as the default IPv6 gateway
-> route add-inet6 default FEC0::1:0:0:0:6
The above is all the contents of the article "how to use Route in vxworks". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
@ WebServlet (name = "httpServletDemo", urlPatterns = "/ httpServletDemo", initParams = {
© 2024 shulou.com SLNews company. All rights reserved.