> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/vi/networking/adjusting-bgp-timers.md).

# Điều chỉnh bộ hẹn giờ BGP

Tìm hiểu cách cấu hình bộ hẹn giờ hold down của BGP cho khoảng keepalive và thời gian giữ trong VergeOS bằng các lệnh định tuyến FRR.

Bộ đếm thời gian giữ BGP (Border Gateway Protocol) rất quan trọng để duy trì các phiên BGP ổn định giữa các bộ định tuyến. Tài liệu này sẽ hướng dẫn bạn cách cấu hình các bộ đếm thời gian giữ BGP xuống 5 giây cho khoảng thời gian keepalive và 15 giây cho thời gian hold.

## Điều kiện tiên quyết

1. **Cấu hình BGP cơ bản**: Bạn nên có một cấu hình BGP cơ bản đã được thiết lập.
2. **Kiến thức cơ bản về cấu hình FRR**: Làm quen với các lệnh và quy trình cấu hình FRR.

## Các bước cấu hình

### Bước 1: Thiết lập BGP

1. Tạo một Mạng ngoài mới.
2. Đặt kiểu địa chỉ IP thành BGP/OSPF.
3. Thiết lập ASN (Số hiệu Hệ tự trị).
4. Xác định địa chỉ IP và địa chỉ mạng.
5. Nếu đây là một VLAN, hãy cấu hình ID lớp 2.
6. Chọn một mạng giao diện.

### Bước 2: Mở mạng BGP

1. Mở mạng bạn đã tạo.
2. Chọn **Bộ định tuyến** từ menu bên trái.
3. Mở ASN bạn đã xác định trong quá trình tạo mạng.
4. Chọn **Mới** từ menu bên trái.
5. Chọn **Bộ đếm thời gian** từ menu lệnh.
6. Trong **Tham số**, nhập `bgp x y` trong đó `x` là khoảng thời gian keepalive và `y` là thời gian hold. Ví dụ, `bgp 5 15`.
7. Chọn **Gửi**. Thao tác này sẽ đưa bạn trở lại trang Router.
8. Điều hướng trở lại mạng BGP. Cần khởi động lại để các thay đổi gần đây có hiệu lực. Nhấp vào **Khởi động lại** để áp dụng các thay đổi.

### Bước 3: Xác minh cài đặt

1. Điều hướng trở lại mạng BGP bạn đã cấu hình.
2. Chọn **Chẩn đoán mạng** từ menu bên trái.
3. Chọn **FRRRouting BGP/OSPF** từ menu thả xuống Query.
4. Chạy lệnh mặc định `show running-config`.
5. Các cài đặt được chỉnh sửa ở Bước 2 giờ đây sẽ xuất hiện trong cấu hình đang chạy.

Để biết thêm thông tin về các giá trị và biến khác, hãy tham khảo [tài liệu FRR](https://docs.frrouting.org/en/latest/basic.html).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.verge.io/knowledge-base/vi/networking/adjusting-bgp-timers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
