Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Please describe your answer so that all the members of this site having or don't have Technical Knowledge can Understand the Fundamentals.
I WILL PUT MY ANSWER AT LAST.
IP route command is used to configure the static route. Static routes are the most secure way of routing. They will also increase overall network performance. These features are extremely helpful in small network.
IP route command and parameters given below:
We have two commands to configure the static route.
Router(config)# ip route destination_network_# [subnet_mask] IP_address_of_next_hop_neighbor [administrative_distance] [permanent]
Or
Router(config)# ip route destination_network_# [subnet_mask] interface_to_exit [administrative_distance] [permanent]
IP ROUTE
This is the base command which adds new route in routing table.
destination_network_#[subnet_mask]
This is the first parameter. It specifies the destination network address. We need to provide subnet mask if we are using sub-network. Sub-networks are the smaller networks created from one large network in subnetting. If we are not using sub-network then we can omit the subnet mask value. It will parse automatically.
IP_address_of_next_hop_neighbor / interface_to_exit
This parameter provides a way to reach the destination network. Both commands use separate way to assign this value. First command provides the IP address of next hop neighbor. It tells router that if it receives a packet for destination [that we set in previous parameter], forward that packet to this next hop neighbor IP address.
Second command also do the same job but in different way. It specifies exit interface instead of next hop IP address. It tells router that if it receives a packet for the destination specified by previous parameter then exits that packet from this interface. Device attached on other end of this interface will take care of the packet.
administrative_distance
Administrative distance is the trustworthiness of route. Route with the lowest AD value will be chosen while forwarding the packet. By default static route has two AD values depending on the previous parameter. If you have used next hop neighbor IP address, then the default AD value will be 1. If you have used exit interface, then the default AD value will be 0. This parameter allows us to create multiple static routes for the same destination. For example we can create primary and backup path for the destination network. To create backup path, we need to set AD value to higher than default, such as 2 or 3. With this configuration router will use primary path. Due to some reason if primary route fails, the router will start using backup route automatically.
permanent
When a route goes down router will remove that from routing table. Permanent parameter will keep this route in routing table even if it goes down. Its optional parameter we can omit it. If we omit it, router will remove this route from routing table if it goes down. You might use this parameter for security reason if you never want packets to take another path.
Configure Default Route
By default when a packet arrives in interface, router checks destination filed in packet and compare it with routing table. If it finds a match for destination network then it will forward that packet from related interface. If it does not find a match in routing table then it will discard that packet. This is the default behavior of router. Default route allows us to override this behavior. Default route is a way to deal with all unmatched packets. If no match for destination network found in routing table then it would be forwarded to the default route.
Following command will set default route
Router(config)# ip route 0.0.0.00.0.0.0 IP_address_of_next_hop_neighbor
[administrative_distance] [permanent]
Or
Router(config)# ip route 0.0.0.00.0.0.0 interface_to_exit
[administrative_distance] [permanent]
Ip Route command generally used to connect networks with each other , also called static route and it came handy in small networks .
for examples :
You have router A with LANs , you buy new router B , the link between A B is2.2.2.0/ and want B to know LANs , here u can use ip route command features like default route :
Router B (config)# ip route0.0.0..0.0..2.2.2
now with this command B Know all LANs in A .
IP ROUTE COMMAND IS BASICALLY USED IN STATIC ROUTING AND IT IS VERY HELPFULL.IF YOUR NETWORK IS SMALLER THEN IT IS GOOD OTHERWISE MY SUGGESTION IS TO GO WITH DYNAMIC ROUTING.
IP route command is used to configure the static route . Router(config)# ip route destination_network [subnet_mask] IP_address of next hop neighbor [administrative distance] [permanent]
Basically, IP route command is used to configure the static route in cisco router. Static routes are the most secure way of routing. They will also increase overall network performance. These features are extremely helpful in small network.
We have two commands to configure the static route.
These are:
router (config) # ip route destination_network # (subnet mask) IP address of nest hop neighbor
For Example:
router(config)#ip route 192.168.10.0255.255.255.0192.168.20.3
This is the base command which adds new route in routing table.
This is the first parameter. It specifies the destination network address. We need to provide subnet mask if we are using sub-network. Sub-networks are the smaller networks created from one large network in subnetting. If we are not using sub-network then we can omit the subnet mask value. It will parse automatically.
This parameter provides a way to reach the destination network. Both commands use separate way to assign this value. First command provides the IP address of next hop neighbor. It tells router that if it receives a packet for destination [that we set in previous parameter], forward that packet to this next hop neighbor IP address.
Second command also do the same job but in different way. It specifies exit interface instead of next hop IP address. It tells router that if it receives a packet for the destination specified by previous parameter then exits that packet from this interface. Device attached on other end of this interface will take care of the packet.
ip route command is used in static routing protocol. it is define the route path of network ip address and subnet and gateway manually so it is used to provide the route information of router
IP Routing cOMMAND REQUIRED TO REACH Packet to destination .
As we requireired traffic light to manage road traffic and help us to reaach our destination safely same IP Route do with data .