Pemantauan¶
Interface¶
admin@r1> show interfaces
Interface Admin/Link MTU Addresses Description
------------------------------------------------------------------------------
eth1 up/up 1500 link ke R2
eth1.0 up/up 10.0.12.1/30 link ke R2
eth1.100 up/up 1500 10.100.0.1/30
eth2 up/up 1500 WAN (QEMU NAT)
eth2.0 up/up 10.10.0.15/24 WAN (QEMU NAT)
eth3 up/up 1500 switch access: srv
irb.20 up/up 1500 10.20.0.1/24 gw VLAN srv
lo0.0 up/up 9000 1.1.1.1/32
admin@r1> show vlans # VLAN, irb, port access/trunk
admin@r1> show interfaces counters # counter detail dari VPP
Trafik live¶
admin@r2> monitor interface traffic
r2: monitor interface traffic 14:05:11 (Ctrl-C to stop)
Interface Input rate Input pps Output rate Output pps
------------------------------------------------------------------
eth1 142.31 Kbps 260 37.73 Mbps 3115
eth1.100 0 bps 0 0 bps 0
eth2 37.95 Mbps 3125 146.88 Kbps 254
irb.30 37.39 Mbps 3115 138.75 Kbps 254
lo0.0 0 bps 0 0 bps 0
- Layar diperbarui setiap detik; hentikan dengan Ctrl+C.
- Contoh di atas: iperf3 dari c1 masuk lewat trunk
eth2(VLAN 30), diterima gatewayirb.30, lalu dirutekan keluareth1ke R1. - Dari skrip (tanpa terminal), wajib memakai
count N:monitor interface traffic count 5.
Beban CPU (worker VPP)¶
admin@r2> clear dataplane statistics
admin@r2> show dataplane load
Thread Core Forwarded Share Avg pps Vec/call Bar
----------------------------------------------------------------
vpp_main 0 0 0.0% 0 0.00
vpp_wk_0 1 12198 35.5% 424 18.06 #######
vpp_wk_1 2 13570 39.5% 471 5.33 ########
vpp_wk_2 3 8624 25.1% 299 16.50 #####
Vec/call yang mendekati 256 berarti worker itu jenuh. Kalau semua worker jenuh, router butuh core tambahan. Kalau hanya satu yang jenuh, cek pembagian koneksinya (show dataplane queues).
Versi untuk mesin dan pemantauan otomatis (dijalankan sebagai root):
--check keluar dengan kode 1 kalau ada worker yang mendapat kurang dari setengah porsi adilnya.
Routing dan NAT¶
Sistem¶
admin@r1> show version # versi semua komponen
admin@r1> show version detail # + info build VPP dan semua plugin
admin@r1> show system # uptime, memori, hugepages
admin@r1> show system users # siapa yang login
admin@r1> show log # log service router
admin@r1> show version
Hostname: r1
Model: QEMU Standard PC (Q35 + ICH9, 2009)
Uptime: 0 hours, 22 minutes
Dataplane driver: DPDK (eth1, eth2)
CID Router [0.1.0] (build a5fb3ff)
Debian GNU/Linux [12.15 (bookworm)]
Linux kernel [6.1.0-54-cloud-amd64]
VPP dataplane [26.10-release]
VPP core plugins [26.10-release]
VPP DPDK plugin [26.10-release]
DPDK [26.07.0]
FRRouting [8.4.4-1.1~deb12u2]
OpenSSH server [1:9.2p1-2+deb12u10]
iproute2 [6.1.0-3]
systemd [252.39-1~deb12u2]
Python [3.11.2]
Langsung ke VPP¶
admin@r1> show vpp errors # counter error/drop per node
admin@r1> show vpp lcp # pasangan linux-cp
admin@r1> show vpp hardware-interfaces
admin@r1> vppctl show runtime # perintah VPP mentah (super-user)
Filter output¶
Semua perintah show mendukung pipe: