"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

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

Network Connection on CentOS

 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

 "iptables" Command 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

 "lsof" - List of Open Files

 Software Package Manager on CentOS - DNF and YUM

 vsftpd - Very Secure FTP Daemon

 Postfix - Mail Transport Agent (MTA)

 Dovecot - IMAP and POP3 Server

 Email Client Tools - Mail User Agents (MUA)

 LDAP (Lightweight Directory Access Protocol)

 Administrative Tasks

 References

 Full Version in PDF/EPUB