7
A CLI DO JUNOS (COMMAND LINE INTERFACE) Fazendo login O primeiro passo para acessar a interface CLI é fazer o processo de login. O Junos requer um “username” e “password” para prover acesso ao sistema. O administrador do sistema cria contas de usuário root configurada de fábrica, sem senha. É recomendado que essa senha seja configurada logo no primeiro acesso. Ao se conectar no equipamento, o usuário recebe um prompt que mostra o nome do usuário e “hostname” do roteador (caso haja um configurado). Processo de login: host (ttyu0) login: user Password: --- JUNOS 9.5R1.8 BUILT 2009-04-13 20:03:09 UTC user@host> O usuário root tem acesso complete a todas as funções do roteador. Quando se faz o login utilizando o usuário root, tem- se acesso a um shell de Unix. Para iniciar a CLI do Junos utiliza-se o comando “cli”. Para terminar a sessão usa-se o comando “exit”. Todos os demais usuários (não root) ao se conectarem no sistema já recebem a CLI do Junos, sem necessidade do comando “cli”. CHAPTER 2

A CLI DO JUNOS

Embed Size (px)

Citation preview

Page 1: A CLI DO JUNOS

A CLI DO JUNOS (COMMAND LINE INTERFACE)

Fazendo login

O primeiro passo para acessar a interface CLI é fazer o processo de login.

O Junos requer um “username” e “password” para prover acesso ao sistema. O administrador do sistema cria contas de usuário root configurada de fábrica, sem senha. É recomendado que essa senha seja configurada logo no primeiro acesso.

Ao se conectar no equipamento, o usuário recebe um prompt que mostra o nome do usuário e “hostname” do roteador (caso haja um configurado).

Processo de login:

host (ttyu0)

login: user

Password:

--- JUNOS 9.5R1.8 BUILT 2009-04-13 20:03:09 UTC

user@host>

O usuário root tem acesso complete a todas as funções do roteador. Quando se faz o login utilizando o usuário root, tem-se acesso a um shell de Unix. Para iniciar a CLI do Junos utiliza-se o comando “cli”. Para terminar a sessão usa-se o comando “exit”.

Todos os demais usuários (não root) ao se conectarem no sistema já recebem a CLI do Junos, sem necessidade do comando “cli”.

CHAPTER 2

Interface Diagnostics Operational ModeCommands

Table 4 on page 33 summarizes the command-line interface (CLI) commands you canuse to run diagnostics on router interfaces. Commands are listed in alphabetical order.

Page 2: A CLI DO JUNOS

Table 4: Interface Diagnostics Operational Mode CommandsTask CommandStart a bit error rate test (BERT) on a DS0 interface. test interface ds0-bert-startStop a BERT on a DS0 interface. test interface ds0-bert-stopStart a BERT on an E1 interface. test interface e1-bert-startStop a BERT on an E1 interface. test interface e1-bert-stopStart a BERT on an E3 interface. test interface e3-bert-startStop a BERT on an E3 interface. test interface e3-bert-stopTransmit over a facilities data link (FDL) to initiate or test interface fdl-line-loopterminate a far-end line loopback.Transmit over an FDL to initiate or terminate a far-end test interface fdl-payload-looppayload loopback.Transmit the line loopback activate code word test interface feac-loop-initiatesequence on the interface's far-end alarm and control(FEAC) channel.Transmit the line loopback deactivate code word test interface feac-loop-terminatesequence on the interface's FEAC channel.Initiate or terminate a far-end line loopback. test interface inband-line-loopInitiate or terminate a far-end payload loopback. test interface inband-payload-loop

Table 4: Interface Diagnostics Operational Mode Commands (continued)Task CommandRestart auto-negotiation on a Fast Ethernet or Gigabit test interface restart-auto-negotiationEthernet interface.Start a BERT on a T1 interface. test interface t1-bert-startStop a BERT on a T1 interface. test interface t1-bert-stopStart a BERT on a T3 interface. test interface t3-bert-startStop a BERT on a T3 interface. test interface t3-bert-stopNOTE: For information about how to configure interface test parameters,see the Junos OS Network Interfaces Configuration Guide. For information aboutrelated tasks performed by network operations center (NOC) personnel, seethe Junos Interfaces Network Operations Guide.34

test interface ds0-bert-startSyntax test interface ds0-bert-start ds-fpc/pic/portRelease Information Command introduced before Junos OS Release 7.4.Description Start a bit error rate test (BERT) on a DS0 interface.Options ds-fpc/pic/port—DS0 interface name.

Page 3: A CLI DO JUNOS

Additional Information Before starting a BERT, you must disable the interface. To do so, include the disablestatement at the [edit interfaces interface-name] hierarchy level. You can run a BERT ononly one interface per PIC at a time.Required PrivilegeLevelviewList of Sample Output test interface ds0-bert-start on page 35Output Fields To display the results of the BERT, use the show interfaces extensive command.Sample Outputtest interfaceds0-bert-startuser@host> test interface ds0-bert-start ds-1/0/0Copyright

test interface ds0-bert-stopSyntax test interface ds0-bert-stop ds-fpc/pic/portRelease Information Command introduced before Junos OS Release 7.4.Description Stop a bit error rate test (BERT) on a DS0 interface.Options ds-fpc/pic/port—DS0 interface name.Required PrivilegeLevelviewList of Sample Output test interface ds0-bert-stop on page 36Output Fields To display the results of the BERT, use the show interfaces extensive command.Sample Outputtest interfaceds0-bert-stopuser@host> test interface ds0-bert-stop ds-1/0/036

test interface e1-bert-startSyntax test interface e1-bert-start interface-nameRelease Information Command introduced before Junos OS Release 7.4.Description Start a bit error rate test (BERT) on an E1 interface.Options interface-name—Interface name: e1-fpc/pic/port or ce1-fpc/pic/port <:channel>Additional Information Before starting a BERT, you must disable the interface. To do this, include the disable

Page 4: A CLI DO JUNOS

statement at the [edit interfaces interface-name] hierarchy level. You can run a BERT ononly one interface per PIC at a time.Required PrivilegeLevelviewList of Sample Output test interface e1-bert-start on page 37Output Fields To display the results of the BERT, use the show interfaces extensive command.Sample Outputtest interfacee1-bert-startuser@host> test interface e1-bert-start e1-1/0/0Copyright

test interface e1-bert-stopSyntax test interface e1-bert-stop interface-nameRelease Information Command introduced before Junos OS Release 7.4.Description Stop a bit error rate test (BERT) on an E1 interface.Options interface-name—Interface name: e1-fpc/pic/port or ce1-fpc/pic/port <:channel>.Required PrivilegeLevelviewList of Sample Output test interface e1-bert-stop on page 38Output Fields To display the results of the BERT, use the show interfaces extensive command.Sample Outputtest interfacee1-bert-stopuser@host> test interface e1-bert-stop e1-1/0/038

test interface e3-bert-startSyntax test interface e3-bert-start e3-fpc/pic/portRelease Information Command introduced before Junos OS Release 7.4.Description Start a bit error rate test (BERT) on an E3 interface.Options e3-fpc/pic/port—E3 interface name.Additional Information Before starting a BERT, you must disable the interface. To do so, include the disablestatement at the [edit interfaces interface-name] hierarchy level. You can run a BERT ononly one interface per PIC at a time.

Page 5: A CLI DO JUNOS

Required PrivilegeLevelviewList of Sample Output test interface e3-bert-start on page 39Output Fields To display the results of the BERT, use the show interfaces extensive command.Sample Outputtest interfacee3-bert-startuser@host> test interface e3-bert-start e3-1/0/0Copyright

test interface e3-bert-stopSyntax test interface e3-bert-stop e3-fpc/pic/portRelease Information Command introduced before Junos OS Release 7.4.Description Stop a bit error rate test (BERT) on an E3 interface.Options e3-fpc/pic/port—E3 interface name.Required PrivilegeLevelviewList of Sample Output test interface e3-bert-stop on page 40Output Fields To display the results of the BERT, use the show interfaces extensive command.Sample Outputtest interfacee3-bert-stopuser@host> test interface e3-bert-stop e3-1/0/040