JUNOS Default Groups
The JUNOS software provides a default, hidden configuration group called
junos-defaultsthat is automatically applied to the configuration of your routing platform. Thejunos-defaultsgroup contains preconfigured statements that contain predefined values for common applications. Some of the statements must be referenced to take effect, such as applications like File Transfer Protocol (FTP) or telnet. Other statements are applied automatically, such as terminal settings. All of the preconfigured statements begin with the reserved namejunos-.
To view the full set of available preset statements from the JUNOS default group, issue the
show groups junos-defaultsconfiguration mode command. The following example displays a partial list of junos default groups.user@host> show groups junos-defaultsgroups {junos-defaults {applications {## File Transfer Protocol#application junos-ftp {application-protocol ftp;protocol tcp;destination-port 21;}## Trivial File Transfer Protocol#application junos-tftp {application-protocol tftp;protocol udp;destination-port 69;}## RPC portmapper on TCP#application junos-rpc-portmap-tcp {application-protocol rpc-portmap;protocol tcp;destination-port 111;}## RPC portmapper on UDP#application junos-rpc-portmap-udp {application-protocol rpc-portmap;protocol udp;destination-port 111;}}}}To reference statements available from the
junos-defaultsgroup, include the selectedjunos-default-namestatement at the applicable hierarchy level.Example: Reference the Preset Statement from the JUNOS Default Group
The following example is a preset statement from the JUNOS default groups that is available for FTP in a stateful firewall:
[edit]groups {junos-defaults {applications {application junos-ftp { # Use FTP default configurationapplication-protocol ftp;protocol tcp;destination-port 21;}}}}To reference a preset JUNOS default statement from the JUNOS default groups, include the
junos-default-namestatement at the applicable hierarchy level. For example, to reference the JUNOS default statement for FTP in a stateful firewall, include thejunos-ftpstatement at the[edit services stateful-firewallrulerule-nametermterm-namefromapplications] hierarchy level.[edit]services {stateful-firewall {rule my-rule {term my-term {from {applications junos-ftp; #Reference predefined statement, junos-ftp,} #for FTP in the stateful firewall configuration}}}}