To test the example in this section, perform the following steps:
system {
scripts {
commit {
allow-transients;
file config-system.xsl;
}
}
}
apply-macro config-system {
host-name test;
mgmt-address 10.0.0.1/32;
backup-router 10.0.0.2;
}
The host-name and mgmt-address statements are mandatory. The backup-router statement is optional. You can substitute a hostname, a management Ethernet (fxp0) IP address, and a backup router IP address that are appropriate to your router.
- [edit]
- user@host# load merge terminal
- [Type ^D at a new line to end input]
- > Paste the contents of the clipboard here<
- [edit]
- user@host# commit
show | display commit-scripts
When you issue the show | display commit-scripts configuration mode command, the router base configuration should be set up:
- user@host# show | display commit-scripts
- ...