Description:

This document describes how to filter the IPv4 routing table for relevant content (for example, when troubleshooting).

Note:
The CLI command show ipv4-route has no option to filter the routing table; instead, it is output in full.


Requirements:

· SSH client, e.g. PuTTY (download)


Procedure:

1) Use a terminal program to open an SSH session on the LANCOM router.

2) The command show ipv4-fib allows the routing table to be filtered.

In the following example, the routing table was filtered for VPN and shows the host route for a VPN client.

root@1781VA:/
> show ipv4-fib @ VPN
IPv4 Unicast FIB

Rtg-Tag 0

Prefix Next-Hop Interface ID Type
----------------------------------------------------------------------------
192.168.45.25/32 0.0.0.0 IKEV2C_0001 12 VPN

Rtg-Tag 1

Prefix Next-Hop Interface ID Type
----------------------------------------------------------------------------
192.168.45.25/32 0.0.0.0 IKEV2C_0001 12 VPN

Rtg-Tag 2

Prefix Next-Hop Interface ID Type
----------------------------------------------------------------------------
192.168.45.25/32 0.0.0.0 IKEV2C_0001 12 VPN



3) Another way to filter the routing table is to use the command ls Status/IP-Router/Act.-IP-Routing-Tab.

The following example was also filtered for VPN and shows the host route for a VPN client.

root@1781VA:/
> ls Status/IP-Router/Act.-IP-Routing-Tab./ @ vpn

IP-Address IP-Netmask Rtg-tag Gateway Peer Distance Masquerade Type
===========================================------------------------------------------------------------------
192.168.45.25 255.255.255.255 2 255.255.255.255 IKEV2C_0001 1 No VPN
192.168.45.25 255.255.255.255 1 255.255.255.255 IKEV2C_0001 1 No VPN
192.168.45.25 255.255.255.255 0 255.255.255.255 IKEV2C_0001 1 No VPN