Network configuration basic tutorial under LINUX

  
 Routing Table and Static Route The output of the route command indicates the destination destination network segment or the host Gateway gateway address, and the destination is the network to which the host belongs. It does not need to route the Genmask network mask Flags flag. Some possible tags are as follows:

U – The route is active H – the target is a host G – the route points to the gateway R – restores the entries generated by the dynamic route D – Dynamically install M – modified by the routing daemon! – reject route
Metric routing distance, the number of relays required to reach the specified network (not used in the Linux kernel) Ref routing item reference times (not used in the Linux kernel) )Use the number of times this routing entry is looked up by the routing software Iface The output interface corresponding to the routing entry
3 routing types

Host routing host routing is a single IP address or hostname in the routing table Route record. The Flags field of the host route is the H network route. The network route is the network that the host can reach. The Flags field of the network route is the N default route. When the host cannot find the IP address or network route of the target host in the routing table, the packet is sent to the default route (the default gateway). The Flags field of the default route is G
route command. You can use the route command to set and view the routing table. The command format for setting the kernel routing table is: # route [add

Copyright © Windows knowledge All Rights Reserved