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
(...)
Juniper - Save And Transfer File Configuration With TFTP
Using Commands Cat, Head, Tail, Less & More In Linux/Ubuntu/CentOS
Mục Lục:
1. Lệnh Cat2. Lệnh Head3. Lệnh Tail4. Lệnh Less5. Lệnh
More
Nội Dung:
1. Lệnh Cat: Dùng để đọc, và xem nội dung của file
Command
Giải Thích
cat /etc/passwd
Hiển thị nội dung file passwd
(...)
Juniper - Clearing IDLE TTY Sessions in Junos
AWK Command In Linux/Ubuntu/CentOS
Command
Giải Thích
Kết Quả
echo "Linux commands" | awk '{$2="DONG LENH";print $0}'
Thay đổi nội dung của cột thứ 2 của chuỗi "Linux command" trong lệnh echo thành "DONG LENH"(...)
Subscribe to:
Posts (Atom)