(...)
Network Automation #007 - Netmiko - Tìm Và Cấu Hình Description Cho Interface Khi Biết IP Address
Basic Shell Script In Linux/Ubuntu/CentOS - P1
Trong windows chúng ta có batch file, trong linux có Shell
Script. Nói chung shell là chương trình có thể tương tác người dùng, có
thể input dữ liệu, có thể output ra màn hình, có thể tự động thực thi một nhóm
lệnh do chúng ta tạo ra theo một lịch trình đã thiết lập.
1. Cách tạo và thực thi một chương trình shell
Tạo file hello.sh với nội dung:
#!/bin/bashecho "hello world"
(...)
Juniper - Backup and Restore Configuration on EX Switches
Network Automation #006 - Netmiko How To Find Which Switch Port A Device Is Plugged Into Base on IP Address
Network Configuration In Linux/Ubuntu >= 17.4
1. Các file cấu hình:
Network interface
- Debian-based: /etc/network/interfaces- Red Hat-based:
/etc/sysconfig/network-scripts/- Ubuntu (>= 17.04):
/etc/netplan/
DNS server: /etc/resolv.conf
/etc/nsswitch.conf
Ví dụ:
Kiểm tra thông tin IP hiện tại với lệnh:
ip a
khanhvc@ubutu:~$ ip a
(...)
Subscribe to:
Posts (Atom)