Configuring Junos OS: Basic Flashcards
How do you configure an interface as the default gateway in Junos OS?
You configure the default gateway using the command: set routing-options static route 0.0.0.0/0 next-hop <gateway-ip>.</gateway-ip>
What is the first step in configuring a Junos OS device?
The first step is to access the device, either via console, SSH, or another remote method, and enter configuration mode by typing configure or edit.
How do you configure an IP address on an interface in Junos OS?
To configure an IP address, use the command: set interfaces <interface-name> unit <unit-number> family inet address <IP-address>.</IP-address></unit-number></interface-name>
What is the purpose of the “commit” command in Junos OS?
The “commit” command saves the changes made in the configuration and applies them to the device.
How do you view the current configuration in Junos OS?
You can view the current configuration by using the command show configuration.
How do you add a static route to a Junos device?
To add a static route, use the command: set routing-options static route <destination> next-hop <next-hop>.</next-hop></destination>
What command is used to delete a configuration in Junos OS?
Use the delete command to remove a specific configuration, e.g., “delete interfaces <interface-name>".</interface-name>
How do you configure a hostname in Junos OS?
To configure a hostname, use the command: set system host-name <hostname>.</hostname>
What is the purpose of the rollback command in Junos OS?
The rollback command reverts the configuration to a previous state, allowing recovery from unwanted changes.
How do you save a configuration in Junos OS?
The configuration is saved and applied using the command commit.