Route

From Fritz!Box
Jump to: navigation, search

AVM Wiki >> Shell-Befehle >> route @ whmf   -   IRC-Chat   -   hu nl it English
Community Modelle Zubehör Environment Konfiguration Shell-Befehle Software Freetz Lexikon Tipps+Tricks Bilder

Startup-Scripts AVM-Befehle BusyBox-Befehle Linux-Befehle Shared Libraries Kernel-Module Listings Todo

Namens-Kollision
Dieser Artikel behandelt den BusyBox-Befehl namens route.

Für das gleichnamige UI-Modul siehe route (ui).


Contents

Befehl

Aufgerufen von

Aufruf

$ route --help
BusyBox v1.12.4 (2010-05-31 07:47:35 CEST) multi-call binary

Usage: route [{add|del|delete}]

Edit the kernel's routing tables

Options:
    -n    Don't resolve names
    -e    Display other/more information
    -A inet    Select address family

oder:

route [{add|del|delete}] 

  Options:

          -n              Dont resolve names
          -e              Display other/more information
          -A inet{6}      Select address family

Beispiele

7170 als ADSL-Router mit 2 PVCs:

$ route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
93.128.XX.XX    *               255.255.255.255 UH    3      0        0 dsl     # WAN (VoIP-PVC)
77.13.XX.XX     *               255.255.255.255 UH    2      0        0 dsl     # WAN (Internet-PVC)
192.168.180.1   *               255.255.255.255 UH    2      0        0 dsl     # DNS 1
192.168.180.2   *               255.255.255.255 UH    2      0        0 dsl     # DNS 2
192.168.178.0   *               255.255.255.0   U     0      0        0 lan     # LAN (fritz.box)
169.254.0.0     *               255.255.0.0     U     0      0        0 lan     # LAN (Not-IP)
default         *               0.0.0.0         U     2      0        0 dsl     # WAN (DSL)

7270 als PPPoE-Router:

$ route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.180.1   *               255.255.255.255 UH    2      0        0 dsl     # DNS 1
192.168.180.2   *               255.255.255.255 UH    2      0        0 dsl     # DNS 2
192.168.178.0   *               255.255.255.0   U     0      0        0 lan     # LAN (fritz.box)
192.168.181.0   *               255.255.255.0   U     0      0        0 guest   # WLAN-Gastzugang
91.67.XX.0      *               255.255.248.0   U     2      0        0 dsl     # WAN (PPPoE)
169.254.0.0     *               255.255.0.0     U     0      0        0 lan     # LAN (Not-IP)
default         *               0.0.0.0         U     2      0        0 dsl     # WAN (PPPoE)

3270 als UMTS-Router:

$ route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.180.1   *               255.255.255.255 UH    2      0        0 dsl     # DNS 1
10.207.XX.XX    *               255.255.255.255 UH    2      0        0 dsl     # WAN (UMTS)
192.168.180.2   *               255.255.255.255 UH    2      0        0 dsl     # DNS 2
192.168.179.0   *               255.255.255.0   U     0      0        0 lan     # LAN (fritz.box)
192.168.181.0   *               255.255.255.0   U     0      0        0 guest   # WLAN-Gastzugang
169.254.0.0     *               255.255.0.0     U     0      0        0 lan     # LAN (Not-IP)
default

Zum hinzufügen eines Netzes hinter einem internen Router ist diese Zeile zu verwenden (z.B in der debug.cfg):

route add -net 192.168.xx.0 netmask 255.255.255.0 gw 192.168.yy.zz

Siehe auch

LAN: (62)

Busybox+Linux: (44)