Tranvantrivn
Intern
Backup và Restore cấu hình trên Router & Switch của Juniper bằng FTP server
Hôm nay mình sẽ hướng dẫn các bạn chức năng Backup và Restore cấu hình trên Router & Switch của Juniper, rất hữu dụng cho nhân viên quản trị khi chúng ta cần thay đổi cấu hình trên thiết bị Juniper
1. Backup Configuration file on FTP server
Mã:
[INDENT][SIZE=3][B]SwitchJuniper#[/B][COLOR=#ff0000]edit system archival configuration[/COLOR]
{master:0}[edit system archival configuration]
[B]SwitchJuniper#[/B] [COLOR=#ff0000]set archive-sites [/COLOR][URL="ftp://username;password@192.168.1.4"][COLOR=#ff0000]ftp://username;password@192.168.1.4[/COLOR][/URL]
{master:0}[edit system archival configuration]
[B]SwitchJuniper#[/B][COLOR=#ff0000]set transfer-on-commit[/COLOR][/SIZE][/INDENT]
Mã:
{master:0}[edit system archival configuration]
[B]SwitchJuniper#[/B][COLOR=#ff0000]show[/COLOR][INDENT]transfer-on-commit;
archive-sites {
"ftp://username;password@192.168.1.4";
}
{master:0}[edit system archival configuration]
[B]SwitchJuniper#[/B][COLOR=#ff0000]top[/COLOR]
[B]SwitchJuniper#[/B][COLOR=#ff0000]commit[/COLOR][/INDENT]
//Kiểm tra trên máy chủ FTP
File backup có dạng:
SwitchJuniper_juniper.conf.gz_20141105_132621
2. Restore Configuration file From FTP server
Mã:
[INDENT][B]SwitchJuniper#[/B][COLOR=#ff0000]edit system archival configuration[/COLOR]
{master:0}[edit system archival configuration]
[B]SwitchJuniper#[/B] [COLOR=#ff0000]load merge [/COLOR][URL="ftp://username;password@192.168.1.4/"][COLOR=#ff0000]ftp://username;password@192.168.1.4/[/COLOR][/URL][COLOR=#ff0000]switchJuniper_juniper.conf.gz_20141105_132621[/COLOR]
Load complete
{master:0}[edit system archival configuration]
[B]SwitchJuniper#[/B][COLOR=#ff0000]top[/COLOR]
[B]SwitchJuniper#[/B][COLOR=#ff0000]commit[/COLOR][/INDENT]
- username;password ( ":"; là tài khoản đăng nhập vào FTP server)
Chúc các bạn thành công
Bài viết liên quan
Bài viết mới