Linux Tutorials - Herong's Tutorial Examples - v5.45, by Herong Yang
"route" - Upate Routing Table
This section provides a tutorial example on how to use 'route' command to update the routing table currently used in the system.
"route" is a command line tool that allows you to update the network routing table currently used in the system. Here are some examples on using the "route" command:
1. Show me the current routing table:
herong$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default _gateway 0.0.0.0 UG 100 0 0 eno1 192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eno1 192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
2. Add a routing entry for a given network:
herong$ sudo route add -net 192.56.76.0 netmask 255.255.255.0 dev eno1
3. Reject all messages for a given network:
herong$ sudo route add -net 224.0.0.0 netmask 240.0.0.0 reject
Table of Contents
Cockpit - Web Portal for Administrator
SELinux - Security-Enhanced Linux
Setup Ethernet Connection on CentOS
Network Firewall Tools on CentOS
"firewalld" and "firewall-cmd" on CentOS
Manage Multiple Firewall Zones
"nftables" and "nft" on CentOS
"nmap" - Network Mapper on CentOS
Monitor Network Services on CentOS
"ifconfig" - Trace Routes to Remote Host
"traceroute" - Trace Routes to Remote Host
►"route" - Upate Routing Table
"netstat" - Display Network Statistics
SSH Protocol and ssh/scp Commands
Software Package Manager on CentOS - DNF and YUM
vsftpd - Very Secure FTP Daemon