Route
From Fritz!Box
| 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 |
| Dieser Artikel behandelt den BusyBox-Befehl namens route. |
Contents |
Befehl
| Befehl: | route | Man | Code | Wiki | Freetz | IPPF | whmf | AVM | Web |
| Pfad: | /sbin | ||||||||
| Typ: | Link auf busybox - Handbuch - Source: .06 .29 .49 .76 7170.80 .87 7270.86 .05 7390.91 .05 .20 | ||||||||
| Status: | Open Source (GPL) | ||||||||
| Pakete: | TODO | ||||||||
| Modelle: | 7170 4.80 (Listing) | ||||||||
| Remove: | TODO | ||||||||
| Funktion: | Listet oder ändert die Routing-Tabelle des Kernels | ||||||||
Aufgerufen von
- TODO
- cli_net.sh (6360)
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)
$ 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)
$ 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)
- Lexikon: LAN, Ethernet, RJ-45, MAC, MAC-Adresse, WOL
- Lexikon: Router, Bridge, Switch, ethmode, PHY, CPMAC, MDIO, EMAC
- Geräte: 100MBit-Modelle, GBit-Modelle
- Bauteile: KS8721, ADM7001, ADM6996, PSB6970, AR8216, AR8316
- Urlader: maca, macb
- ShellEnv: CONFIG_ETH_COUNT, CONFIG_ETH_GBIT
- Webinterface: Energie-Einstellungen, Portfreigaben
- UI-Module: eth0 (ui), eth1 (ui), eth2 (ui), eth3 (ui)
- UI-Module: landevice, wakeup, route (ui), forwardrules, igdforwardrules
- Befehle: ifconfig, ifup, ifdown, route, vconfig, brctl
- Befehle: ip, ipaddr, iplink, iproute, iprule, iptunnel
- Befehle: ethnator, linkdown.sh, linkup.sh, getrmon
- Kernel: avalanche_cpmac.ko, avm_cpmac.ko, avm_pa.ko
- ProcFS: cpmac_stats, cpmac_link, cpmac_ver, eth0_rfc2665_stats, eth1_rfc2665_stats
- ProcFS: cpmac0_rfc2665_stats
- Interfaces: eth0, eth1, cpmac0, lan
Busybox+Linux: (44)
- Arch: bzip2, bzcat, bunzip2, gzip, gunzip, zcat, tar, ar, unzip
- Mod: insmod, rmmod, modprobe, lsmod, modinfo
- Net: ifconfig, ifup, ifdown, route, vconfig, brctl
- Net: ip, ipaddr, iplink, iproute, iprule, iptunnel
- Proc: pidof, ps, top, kill, killall, killall5, start-stop-daemon, term.sh
- Proc: nice, renice, renice (ul)
- Diff: diff, patch, bsdiff, bspatch, rdiff