Kategorie: XAdmin
XAdmin: Erstellen einer Masterkonfigurationsdatei
Anhand eines Beispiels wird die Erstellung einer Masterkonfigurationsdatei mittels XAdmin beschrieben. Dabei werden auch Platzhalter verwendet.
Folgende Schritte sind durchzuführen, um eine Masterkonfigurationsdatei in den XAdmin zu importieren und sie zu bearbeiten:
- Auf einem Test-Router ('Offline Router' - gleicher Typ und gleiche Software Version wie die Zielrouter) wird eine Musterkonfiguration durchgeführt.
- Die Konfiguration wird im Flash des Test-Routers gespeichert. Anschließend wird die Konfiguration mit der Operation "put (Flash->TFTP)" auf einem Rechner gespeichert.
- Die Konfigurationsdatei wird dann in den XAdmin, in das Verzeichnis /xadmin/var/template/master/[Routertyp]/ kopiert.
- Diese Datei wird Masterkonfigurationsdatei genannt. In dieser Datei werden nun alle Werte, die zielrouterspezifische Informationen betreffen, durch Platzhalter ersetzt. Diese Bearbeitung kann auf zwei Wegen erfolgen:
- Vor dem Kopieren in das Verzeichnis /xadmin/var/template/master/[Routertyp]/ mit einem Texteditor.
- Nach dem Kopieren über den XAdmin Menüpunkt Tools -> Konfig-Editor.
- Vor dem Kopieren in das Verzeichnis /xadmin/var/template/master/[Routertyp]/ mit einem Texteditor.
Beispiel für die Nutzung der Platzhalter in einer Masterkonfigurationsdatei (je nach Anwendungsfall sind auch weitere Tabellen zu editieren):
# BinTec Communications AG
# X1000 configuration file
# Created by V.6.2 Rev. 5 (Patch 1) IPSec V. 2.1.1 from 2002/10/17 00:00:00 at Sat Feb 1 0:48:11 2003
system
{
sysDescr (RW,DisplayStr): "X1000"
sysContact (RW,DisplayStr): "BINTEC"
sysName (RW,DisplayStr): "[router.name]"
sysLocation (RW,DisplayStr): "European Union"
}
...
bintecsec
{
biboAdmAdminCommunity (RW,DisplayStr): "[router.biboadmadmincommunity]"
biboAdmReadCommunity (RW,DisplayStr): "public"
biboAdmWriteCommunity (RW,DisplayStr): "public"
biboAdmRadiusSecret (RW,DisplayStr):
biboAdmHttpPassword (RW,DisplayStr): "bintec"
biboAdmPublicKey (RO,OctetStrin):
biboAdmActMonPassword (RW,DisplayStr):
}
...
ipRouteTable
{
ipRouteDest (RW,IpAdress ): [router.ipnet]
ipRouteIfIndex (RW,Integer ): 1000
ipRouteMetric1 (RW,Integer ): 0
ipRouteMetric2 (RW,Integer ): 0
ipRouteMetric3 (RW,Integer ): 0
ipRouteMetric4 (RW,Integer ): 0
ipRouteNextHop (RW,IpAdress ): [router.ipnumber]
ipRouteType (RW,Integer ): direct
ipRouteProto (RO,Integer ): local
ipRouteMask (RW,IpAdress ): [router.ipnetmask]
ipRouteMetric5 (RW,Integer ): 872415232
}
...
isdnDispatchTable
{
isdnDspStkNumber (RW,Integer ): 0
isdnDspItem (RW,Integer ): ppp
isdnDspLocalNumber (RW,DisplayStr): "[router.isdnnumber]"
isdnDspLocalSubaddress (RW,OctetStrin):
isdnDspBearer (RW,Integer ): data
isdnDspSlot (RW,Integer ): 0
isdnDspUnit (RW,Integer ): 0
isdnDspDirection (RW,Integer ): both
isdnDspMode (RW,Integer ): right_to_left
isdnDspUserName (RW,DisplayStr):
}
...
biboPPPTable
{
biboPPPIfIndex (RO,Integer ): 10001
biboPPPType (RW,Integer ): isdn_dialup
biboPPPEncapsulation (RW,Integer ): ppp
biboPPPKeepalive (RW,Integer ): off
biboPPPTimeout (RW,Integer ): 3000
biboPPPCompression (RW,Integer ): none
biboPPPAuthentication (RW,Integer ): both
biboPPPAuthIdent (RW,DisplayStr): IdZentrale
biboPPPAuthSecret (RW,DisplayStr): "[router.pass]"
biboPPPIpAddress (RW,Integer ): static
biboPPPRetryTime (RW,Integer ): 4
biboPPPBlockTime (RW,Integer ): 300
biboPPPMaxRetries (RW,Integer ): 5
biboPPPShortHold (RW,Integer ): 120
biboPPPInitConn (RW,Integer ): 1
biboPPPMaxConn (RW,Integer ): 1
biboPPPMinConn (RW,Integer ): 1
biboPPPCallback (RW,Integer ): disabled
biboPPPLayer1Protocol (RW,Integer ): dat_64k
biboPPPLoginString (RW,DisplayStr):
biboPPPVJHeaderComp (RW,Integer ): disabled
biboPPPLayer2Mode (RW,Integer ): auto
biboPPPDynShortHold (RW,Integer ): 0
biboPPPLocalIdent (RW,DisplayStr): "[router.user]"
biboPPPDNSNegotiation (RW,Integer ): enabled
biboPPPEncryption (RW,Integer ): none
biboPPPLQMonitoring (RW,Integer ): off
biboPPPIpPoolId (RW,Integer ): 0
biboPPPSessionTimeout (RW,Integer ): 0
biboPPPLayer1DiscDelay (RW,Integer ): enabled
}
...
# X1000 configuration file
# Created by V.6.2 Rev. 5 (Patch 1) IPSec V. 2.1.1 from 2002/10/17 00:00:00 at Sat Feb 1 0:48:11 2003
system
{
sysDescr (RW,DisplayStr): "X1000"
sysContact (RW,DisplayStr): "BINTEC"
sysName (RW,DisplayStr): "[router.name]"
sysLocation (RW,DisplayStr): "European Union"
}
...
bintecsec
{
biboAdmAdminCommunity (RW,DisplayStr): "[router.biboadmadmincommunity]"
biboAdmReadCommunity (RW,DisplayStr): "public"
biboAdmWriteCommunity (RW,DisplayStr): "public"
biboAdmRadiusSecret (RW,DisplayStr):
biboAdmHttpPassword (RW,DisplayStr): "bintec"
biboAdmPublicKey (RO,OctetStrin):
biboAdmActMonPassword (RW,DisplayStr):
}
...
ipRouteTable
{
ipRouteDest (RW,IpAdress ): [router.ipnet]
ipRouteIfIndex (RW,Integer ): 1000
ipRouteMetric1 (RW,Integer ): 0
ipRouteMetric2 (RW,Integer ): 0
ipRouteMetric3 (RW,Integer ): 0
ipRouteMetric4 (RW,Integer ): 0
ipRouteNextHop (RW,IpAdress ): [router.ipnumber]
ipRouteType (RW,Integer ): direct
ipRouteProto (RO,Integer ): local
ipRouteMask (RW,IpAdress ): [router.ipnetmask]
ipRouteMetric5 (RW,Integer ): 872415232
}
...
isdnDispatchTable
{
isdnDspStkNumber (RW,Integer ): 0
isdnDspItem (RW,Integer ): ppp
isdnDspLocalNumber (RW,DisplayStr): "[router.isdnnumber]"
isdnDspLocalSubaddress (RW,OctetStrin):
isdnDspBearer (RW,Integer ): data
isdnDspSlot (RW,Integer ): 0
isdnDspUnit (RW,Integer ): 0
isdnDspDirection (RW,Integer ): both
isdnDspMode (RW,Integer ): right_to_left
isdnDspUserName (RW,DisplayStr):
}
...
biboPPPTable
{
biboPPPIfIndex (RO,Integer ): 10001
biboPPPType (RW,Integer ): isdn_dialup
biboPPPEncapsulation (RW,Integer ): ppp
biboPPPKeepalive (RW,Integer ): off
biboPPPTimeout (RW,Integer ): 3000
biboPPPCompression (RW,Integer ): none
biboPPPAuthentication (RW,Integer ): both
biboPPPAuthIdent (RW,DisplayStr): IdZentrale
biboPPPAuthSecret (RW,DisplayStr): "[router.pass]"
biboPPPIpAddress (RW,Integer ): static
biboPPPRetryTime (RW,Integer ): 4
biboPPPBlockTime (RW,Integer ): 300
biboPPPMaxRetries (RW,Integer ): 5
biboPPPShortHold (RW,Integer ): 120
biboPPPInitConn (RW,Integer ): 1
biboPPPMaxConn (RW,Integer ): 1
biboPPPMinConn (RW,Integer ): 1
biboPPPCallback (RW,Integer ): disabled
biboPPPLayer1Protocol (RW,Integer ): dat_64k
biboPPPLoginString (RW,DisplayStr):
biboPPPVJHeaderComp (RW,Integer ): disabled
biboPPPLayer2Mode (RW,Integer ): auto
biboPPPDynShortHold (RW,Integer ): 0
biboPPPLocalIdent (RW,DisplayStr): "[router.user]"
biboPPPDNSNegotiation (RW,Integer ): enabled
biboPPPEncryption (RW,Integer ): none
biboPPPLQMonitoring (RW,Integer ): off
biboPPPIpPoolId (RW,Integer ): 0
biboPPPSessionTimeout (RW,Integer ): 0
biboPPPLayer1DiscDelay (RW,Integer ): enabled
}
...
Bemerkungen:
- Wenn in der Masterkonfiguration eine Variable des Types "string" ("DisplayStr") ersetzt werden soll, ist die Syntax "[Platzhalterbezeichnung]", andernfalls ist die Syntax [Platzhalterbezeichnung].
- Eine ausführliche Liste der Platzhalterbezeichnungen, die in der Masterkonfigurationsdatei eingesetzt werden können, finden Sie im XAdmin Handbuch, im Kapitel "Variablen zum Erstellen einer Masterdatei".









