In CLI configuration mode, you use the set command to enable features, and the delete command to disable them. The commands you enter do not update the active configuration on the router until you use the commit command.
To configure basic settings with the CLI:
- root> configure
- root#
- root# set interfaces ge-0/0/0 unit 0 family
inet address 1.1.2.31/24
- root# set interfaces ge-0/0/1 unit 0 family
inet address 1.6.2.1/24
- root# set interfaces ge-0/0/2 unit 0 family
inet address 2.8.3.1/24
- root# set interfaces ge-0/0/3 unit 0 family
inet address 9.1.4.1/24
The unit number is the logical interface number. IP addresses are configured on the logical interface. Setting the protocol family to inet specifies the routing table of IPv4 addresses.
- root# set routing-options static route 1.6.2.1/24
next-hop 10.1.1.50
- root# set routing-options static route destination-prefix next-hop address
- root# set system host-name Chicago
- root# commit
For complete instructions, see the JUNOS Software Interfaces and Routing Configuration Guide.