• List routing tables.

    Parameters

    • options: RoutingTableOptions = {}

      Parameters options to be passed down to ip.

    • globalOptions: GlobalOptions = {}

      Global parameters options that affects the command execution.

    Returns Promise<RoutingTable[]>

    Example

    Import module

    import { utils } from 'iproute';
    

    Show all tables

    const tables = await utils.routingTables.show();
    

    Show table with id 255

    const tables = await utils.routingTables.show({
    id: 255
    });

    Show table with name local

    const tables = await show({
    name: RoutingTables.Local
    });

Generated using TypeDoc