Для просмотра информации об интерфейсе необходимо запустить утилиту «vppctl» и выполнить команду «sh int»:
# vppctl _______ _ _ _____ ___ __/ __/ _ \ (_)__ | | / / _ \/ _ \ _/ _// // / / / _ \ | |/ / ___/ ___/ /_/ /____(_)_/\___/ |___/_/ /_/ vpp# sh int Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count GigabitEthernet10/0/0 3 down 9000/0/0/0 rx packets 212 rx bytes 64012 tx packets 10 tx bytes 600 drops 192 punt 10 ip4 181 ip6 21 TenGigabitEthernet3/0/0 1 up 9000/0/0/0 TenGigabitEthernet3/0/0.10 4 up 0/0/0/0 TenGigabitEthernet3/0/0.20 5 up 0/0/0/0 TenGigabitEthernet3/0/1 2 up 9000/0/0/0 local0 0 down 0/0/0/0 vpn 6 up 9000/0/0/0 vpp#
Для изменения состояния сетевого интерфейса необходимо выполнить команду «set int state <interface> <up|down>»:
vpp# sh int Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count GigabitEthernet10/0/0 3 down 9000/0/0/0 rx packets 212 rx bytes 64012 tx packets 10 tx bytes 600 drops 192 punt 10 ip4 181 ip6 21 TenGigabitEthernet3/0/0 1 up 9000/0/0/0 TenGigabitEthernet3/0/0.10 4 up 0/0/0/0 TenGigabitEthernet3/0/0.20 5 up 0/0/0/0 TenGigabitEthernet3/0/1 2 up 9000/0/0/0 local0 0 down 0/0/0/0 vpn 6 up 9000/0/0/0 vpp# set int state GigabitEthernet10/0/0 up vpp# sh int Name Idx State MTU (L3/IP4/IP6/MPLS) Counter Count GigabitEthernet10/0/0 3 up 9000/0/0/0 rx packets 215 rx bytes 64534 tx packets 10 tx bytes 600 drops 195 punt 10 ip4 182 ip6 23 TenGigabitEthernet3/0/0 1 up 9000/0/0/0 TenGigabitEthernet3/0/0.10 4 up 0/0/0/0 TenGigabitEthernet3/0/0.20 5 up 0/0/0/0 TenGigabitEthernet3/0/1 2 up 9000/0/0/0 local0 0 down 0/0/0/0 vpn 6 up 9000/0/0/0 vpp#