# 教室环境

### 教室网络环境

<figure><img src="https://908246044-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0EziAJhIr1WW7oVxFuVu%2Fuploads%2FqcbrAWWnuOcEv8uZmXhS%2Fimage.png?alt=media&#x26;token=2615f972-b3dc-4408-a6f1-f3e52c82ff66" alt=""><figcaption></figcaption></figure>

* 本课程中，你主要操作的计算机系统是 workstation
* 另外的2台分别是 servera 和 serverb
* 所有的主机都位于 lab.example.com 这个 dns 域中
* 所有系统都有一个标准的帐号：student，密码也是student
* 所有学生系统上的 root 密码都是 redhat

<table><thead><tr><th width="272">主机名</th><th width="148">IP</th><th>角色</th></tr></thead><tbody><tr><td>bastion.lab.example.com</td><td>172.25.250.254</td><td>将学生私有网络连接到 classroom 服务器的网关系统</td></tr><tr><td>workstation.lab.example.com</td><td>172.25.250.9</td><td>系统管理员使用的图形工作站</td></tr><tr><td>servera.lab.example.com</td><td>172.25.250.10</td><td>调优目标服务器</td></tr><tr><td>serverb.lab.example.com</td><td>172.25.250.11</td><td>调优目标服务器</td></tr><tr><td><p>content.example.com</p><p>materials.example.com</p><p>classroom.example.com</p></td><td></td><td>classroom 工具服务器</td></tr></tbody></table>

### 常用命令

```bash
# 查看classroom的状态, 它必须是RUNNING
[kiosk@foundation0 ~]$ rht-vmctl status classroom
classroom RUNNING

# 启动classroom虚拟机
[kiosk@foundation0 ~]$ rht-vmctl start classroom

# 查看所有其他虚机的状态
[kiosk@foundation0 ~]$ rht-vmctl status all

# 启动所有的虛拟机
[kiosk@foundation0 ~]$ rht-vmctl start all

# 查看“物理控制台”以登录并使用服务器
[kiosk@foundation0 ~]$ rht-vmctl view servera

# 重置servera
[kiosk@foundation0 ~]$ rht-vmctl reset servera

# 完全重置servera
[kiosk@foundation0 ~]$ rht-vmctl fullreset servera

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rh442.yunwei361.com/00-jie-shao/jiao-shi-huan-jing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
