Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

클라우드 네이티브 라우터 컨트롤러 및 클라우드 네이티브 라우터 vRouter 관리

요약  이 항목에는 클라우드 네이티브 라우터 CLI에 액세스하는 방법, cRPD 및 vRouter 컨테이너에서 운영 명령을 실행하는 방법, 클라우드 네이티브 라우터를 제거하는 방법에 대한 지침이 포함되어 있습니다.

클라우드 네이티브 라우터 CLI 액세스

클라우드 네이티브 라우터의 CLI에 액세스하여 라우터의 상태를 모니터링하고 구성을 변경할 수 있습니다. 이 섹션에서는 cRPD 및 vRouter CLI에 액세스하고 show 명령의 몇 가지 예를 제공하는 데 사용하는 명령을 제공합니다.

클라우드 네이티브 라우터 컨트롤러 요소가 K8s(Kubernetes) 클러스터에서 Pod로 실행되므로 K8s 명령을 사용하여 CLI에 액세스해야 합니다. 아래에 예제가 있습니다. 주니퍼는 명령을 복사하여 서버에 붙여넣을 수 있도록 예제에 특정 디렉토리 경로를 제공하지 않습니다.

Access the Cloud-Native Router Controller (cRPD) CLI

In this example we list all of the K8s Pods running on the K8s host server. We use that output to identify the cRPD Pod that hosts the cloud-native router controller container. We then connect to the CLI of the cloud-native router controller and run some show commands.

List the K8s Pods Running in the Cluster

The only Pod that has cRPD in its name is the kube-crpd-worker-ds-npbjq. Thus, this is the name of the Pod we will use to access the cRPD CLI.

Connect to the cRPD CLI

The kubectl command that allows access to the controller's CLI has the following form:

kubectl exec -n <namespace> -it <cRPD worker Pod name> -- bash

In practice, you substitute values from your system for the values contained between angle brackets (<>). For example:

The result of the above command should appear similar to:

At this point, you have connected to the shell of the cloud-native router. Just as with other Junos-based shells, you access the operational mode of the cloud-native router the same way as if you were connected to the console of a physical Junos OS device.

root@jcnr-01:/# cli

Example Show Commands

In the following examples, we remove the prompt, root@jcnr-01>, so you can copy and paste the commands into your system without editing them.

Access the Cloud-Native Router vRouter CLI

In this example we list all of the K8s Pods running on the K8s host server. We use that output to identify the vRouter Pod that hosts the cloud-native router vrouter-agent container. We then connect to the CLI of the vRouter-agent and run a show command to list the available interfaces.

List the K8s Pods Running in the Cluster

Connect to the Cloud-Native Router vRouter CLI

The kubectl command that allows access to the controller's CLI has the following form:

kubectl exec -n contrail -it <contrail-vrouter-masters-pod> -- bash

In practice, you substitute values from your system for the values contained between angle brackets (<>). For example:

The output of this command should look similar to:

At this point, you have connected to the vRouter's CLI. You can run commands in the CLI to learn about the state of the vRouter. For example, the command shown below allows you to see which interfaces are present on the vRouter.

주니퍼 클라우드 네이티브 라우터 제거

이 항목에서는 명령에 대한 특정 디렉토리 이름을 제공하지 않습니다. 이를 통해 이 문서의 명령을 복사하여 서버에 붙여넣을 수 있습니다.
주니퍼 클라우드 네이티브 라우터를 제거합니다.