Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Seiteneigenschaften


Description:

Mit der The DHCP -Option option 121 (Classless Static Route) können Netzwerk-Clients neben Informationen, wie DHCP-Client Adresse, Gateway und DNS-Server zusätzlich eine oder mehrere statische Routen übermittelt werden, welche die Clients in ihre lokale Routing-Tabelle eintragen und verwenden können.Dieses Dokument beschreibt, wie Sie die DHCP-Option 121 im LANCOM Router konfigurieren könnenclassless static route) allows network clients to transmit not only information such as the DHCP client address, gateway and DNS server, but additionally one or more static routes that the clients can enter into their local routing table and use.

This document describes how you configure the DHCP option 121 on LANCOM routers.


Requirements:


1. ) Procedure:

1.1. Die Konfiguration der DHCP-Option 121 muss im Menü IPv4 →  ) The DHCP option 121 is configured in the menu IPv4 → DHCPv4 → DHCP Optionen vorgenommen werden.Klicken Sie dazu auf die Schaltfläche Hinzufügenoptions.

Start by clicking on Add.

1.2. Vergeben Sie folgende Werte:) Set the following values:

  • Option number: The value 121 must be entered here.
  • Network name: Select here the name of the network to which the settings are to apply. If you leave this field empty, the DHCP option applies to all networks.
  • Type: Choose the data type 8-bit integer.
  • Value: Enter, for example, the hexadecimal value of
  • Options-Nummer: Hier muss der Wert 121 eingetragen werden.
  • Netzwerkname: Wählen Sie hier den Netzwerknamen des Netzes aus, für das die Einstellungen gelten sollen. Lassen Sie das Feld leer, so gilt die DHCP-Option für alle Netzwerke.
  • Typ: Wählen Sie den Datentyp 8-Bit-Integer aus.
  • Wert: Tragen Sie hier z.B. den hexadezimalen Wert 0x10,0x0A,0x00,0xC0,0xA8,0x02,0x01 ein.
    Hiermit würde eine 16-Bit Netzmaske verwendet, das Zielnetz hätte den Adressbereich here. This would use of a 16-bit netmask, the destination network would have the address range 10.0.0.0 und das Gateway die IP-Adresse and the gateway would have the IP address 192.168.2.1.

TIPP: Zur Erzeugung des Hexwertes stehen im Internet entsprechende Online-Berechnungswerkzeuge zur Verfügung

Tipp
Look on the Internet for online tools for calculating hex values.

1.3. Speichern Sie mit OK und schreiben Sie die Konfiguration in den LANCOM Router zurück.) Save your entries with OK and write the configuration back to the LANCOM router.


2) Function check2. Funktionsüberprüfung:

2.1. Wenn die DHCP-Option 121 korrekt konfiguriert ist, sehen Sie in einem auf dem LANCOM Router durchgeführten DHCP-Trace ein korrektes DHCP-Acknowledged (DHCPACK) vom DHCP-Client (grün markiert) If DHCP option 121 was configured correctly, a DHCP trace carried out on the LANCOM router will display a correct DHCP acknowledged (DHCPACK) from the DHCP client (marked in green):

[DHCP] 2020/02/13 17:26:24,929 [info] : DHCP Client Rx (LAN, INTRANET)
DHCP Server Message (reply): DHCPACK
  Op    = 02       | HType = 01   | HLen  = 06   | Hops  = 00
  XId   = 4bf7f83a | Secs  = 1e39 | Flags = 0000
  CIAdr = 0.0.0.0          | YIAdr = 172.16.30.224
  SIAdr = 0.0.0.0          | GIAdr = 0.0.0.0
  CHAdr = f4 8e 38 c4 19 9c 00 00 00 00 00 00 00 00 00 00
Message-Type (53):     ack (5)
Server-ID (54):        172.16.30.1
Client-ID (61):        ETH:f4:8e:38:c4:19:9c
Netmask (1):           255.255.255.0
Gateway (3):           172.16.30.1
DNS-Server (6):        172.16.30.1
DNS-Domain (15):       work
Broadcast (28):        172.16.30.255
LeaseTime (51):        30000
Classless Static Route (121):
                       Length: 7
                         10.0.0.0/16-192.168.2.1


2.2. Rufen Sie die aktuelle Routing Tabelle im LANCOM Router per Konsole auf (Befehl) Use the CLI to access the current routing table in the LANCOM router (command: ls /Status/IP-Router/Act.-IP-Routing-Tab.) , so ist dort ebenfalls ein korrekter Eintrag enthaltenand you will also find a correct entry there:

ls /Status/IP-Router/Act.-IP-Routing-Tab.

...