intent
stringlengths
14
68
vendor
stringclasses
17 values
os
stringclasses
21 values
category
stringclasses
34 values
command
stringlengths
6
379
source
stringclasses
2 values
command_original
stringlengths
6
379
add static default route using next-hop 10.0.0.2
Nokia
srlinux
Routing
set / network-instance default next-hop-groups group NH nexthop 1 ip-address 10.0.0.2 set / network-instance default static-routes route 0.0.0.0/0 next-hop-group NH
curated
set / network-instance default next-hop-groups group NH nexthop 1 ip-address 10.0.0.2 set / network-instance default static-routes route 0.0.0.0/0 next-hop-group NH
add default route with nexthop 10.0.0.2
SONiC
sonic
Routing
sudo config route add prefix 0.0.0.0/0 nexthop 10.0.0.2
curated
sudo config route add prefix 0.0.0.0/0 nexthop 10.0.0.2
create VLAN 10 named USERS
Cisco
ios
VLAN
vlan 10 name USERS
curated
vlan 10 name USERS
create VLAN USERS with ID 10
Juniper
junos
VLAN
set vlans USERS vlan-id 10
curated
set vlans USERS vlan-id 10
create VLAN 10 named USERS
Arista
eos
VLAN
vlan 10 name USERS
curated
vlan 10 name USERS
create VLAN 10 on eth0 with IP 10.10.10.1/24
VyOS
vyos
VLAN
set interfaces ethernet eth0 vif 10 description USERS set interfaces ethernet eth0 vif 10 address 10.10.10.1/24
curated
set interfaces ethernet eth0 vif 10 description USERS set interfaces ethernet eth0 vif 10 address 10.10.10.1/24
create VLAN 10 named USERS
Huawei
vrp
VLAN
vlan 10 name USERS
curated
vlan 10 name USERS
create VLAN 10 named USERS on bridge
Mikrotik
routeros
VLAN
/interface vlan add name=USERS vlan-id=10 interface=bridge
curated
/interface vlan add name=USERS vlan-id=10 interface=bridge
add VLAN 10 to bridge with IP 10.10.10.1/24
NVIDIA
nvue
VLAN
nv set bridge domain br_default vlan 10 nv set interface vlan10 ip address 10.10.10.1/24
curated
nv set bridge domain br_default vlan 10 nv set interface vlan10 ip address 10.10.10.1/24
add VLAN 10 subinterface on ethernet-1/1
Nokia
srlinux
VLAN
set / interface ethernet-1/1 vlan-tagging true set / interface ethernet-1/1 subinterface 10 vlan encap single-tagged vlan-id 10
curated
set / interface ethernet-1/1 vlan-tagging true set / interface ethernet-1/1 subinterface 10 vlan encap single-tagged vlan-id 10
create VLAN 10
SONiC
sonic
VLAN
sudo config vlan add 10
curated
sudo config vlan add 10
create LACP port-channel 1 in trunk mode with description LAG-UPLINK
Cisco
ios
EtherChannel
interface range GigabitEthernet1/0/1-2 channel-group 1 mode active interface Port-channel1 description LAG-UPLINK switchport mode trunk
curated
interface range GigabitEthernet1/0/1-2 channel-group 1 mode active interface Port-channel1 description LAG-UPLINK switchport mode trunk
create LACP port-channel 1 with description LAG-UPLINK
Cisco
nxos
EtherChannel
feature lacp interface Ethernet1/1-2 channel-group 1 mode active interface port-channel1 description LAG-UPLINK
curated
feature lacp interface Ethernet1/1-2 channel-group 1 mode active interface port-channel1 description LAG-UPLINK
create LACP aggregated ethernet ae0 using ge-0/0/0 and ge-0/0/1
Juniper
junos
EtherChannel
set interfaces ae0 aggregated-ether-options lacp active set interfaces ge-0/0/0 ether-options 802.3ad ae0 set interfaces ge-0/0/1 ether-options 802.3ad ae0
curated
set interfaces ae0 aggregated-ether-options lacp active set interfaces ge-0/0/0 ether-options 802.3ad ae0 set interfaces ge-0/0/1 ether-options 802.3ad ae0
create LACP port-channel 1 with description LAG-UPLINK
Arista
eos
EtherChannel
interface Ethernet1-2 channel-group 1 mode active interface Port-Channel1 description LAG-UPLINK
curated
interface Ethernet1-2 channel-group 1 mode active interface Port-Channel1 description LAG-UPLINK
create LACP Eth-Trunk1 with description LAG-UPLINK
Huawei
vrp
EtherChannel
interface Eth-Trunk1 mode lacp-static description LAG-UPLINK interface GigabitEthernet0/0/1 eth-trunk 1
curated
interface Eth-Trunk1 mode lacp-static description LAG-UPLINK interface GigabitEthernet0/0/1 eth-trunk 1
create bond1 with members swp1 swp2 and MLAG ID 1
NVIDIA
nvue
EtherChannel
nv set interface bond1 bond member swp1,swp2 nv set interface bond1 bond lacp-bypass on nv set interface bond1 bond mlag id 1
curated
nv set interface bond1 bond member swp1,swp2 nv set interface bond1 bond lacp-bypass on nv set interface bond1 bond mlag id 1
enable LACP on lag1 with ethernet-1/1
Nokia
srlinux
EtherChannel
set / interface lag1 admin-state enable set / interface lag1 lag lacp admin-state enable set / interface ethernet-1/1 ethernet aggregate-id lag1
curated
set / interface lag1 admin-state enable set / interface lag1 lag lacp admin-state enable set / interface ethernet-1/1 ethernet aggregate-id lag1
create PortChannel0001 and add Ethernet0 member
SONiC
sonic
EtherChannel
sudo config portchannel add PortChannel0001 sudo config portchannel member add PortChannel0001 Ethernet0
curated
sudo config portchannel add PortChannel0001 sudo config portchannel member add PortChannel0001 Ethernet0
configure nve1 with bgp host-reachability
Cisco
nxos
VXLAN
feature nv overlay feature vn-segment-vlan-based interface nve1 no shutdown source-interface loopback1 host-reachability protocol bgp
curated
feature nv overlay feature vn-segment-vlan-based interface nve1 no shutdown source-interface loopback1 host-reachability protocol bgp
set vtep-source-interface to lo0.0 and route-distinguisher
Juniper
junos
VXLAN
set switch-options vtep-source-interface lo0.0 set switch-options route-distinguisher 1.1.1.1:1
curated
set switch-options vtep-source-interface lo0.0 set switch-options route-distinguisher 1.1.1.1:1
configure vxlan1 source Loopback1 for vlan 10
Arista
eos
VXLAN
interface Vxlan1 vxlan source-interface Loopback1 vxlan udp-port 4789 vxlan vlan 10 vni 10010
curated
interface Vxlan1 vxlan source-interface Loopback1 vxlan udp-port 4789 vxlan vlan 10 vni 10010
create vxlan10010 with vni 10010 and local-tunnelip
FRR
frr
VXLAN
interface vxlan10010 vxlan vni 10010 vxlan local-tunnelip 1.1.1.1
curated
interface vxlan10010 vxlan vni 10010 vxlan local-tunnelip 1.1.1.1
set vxlan source address and enable evpn
NVIDIA
nvue
VXLAN
nv set nve vxlan source address 1.1.1.1 nv set nve vxlan mac-learning off nv set evpn enable on
curated
nv set nve vxlan source address 1.1.1.1 nv set nve vxlan mac-learning off nv set evpn enable on
add vxlan vtep with source 1.1.1.1
SONiC
sonic
VXLAN
sudo config vxlan add vtep 1.1.1.1
curated
sudo config vxlan add vtep 1.1.1.1
create bridged vxlan1 with ingress vni 10010
Nokia
srlinux
VXLAN
set / tunnel-interface vxlan1 vxlan-interface 1 type bridged set / tunnel-interface vxlan1 vxlan-interface 1 ingress vni 10010
curated
set / tunnel-interface vxlan1 vxlan-interface 1 type bridged set / tunnel-interface vxlan1 vxlan-interface 1 ingress vni 10010
configure evpn vni 10010 with auto rd and rt
Cisco
nxos
EVPN
evpn vni 10010 l2 rd auto route-target import auto route-target export auto
curated
evpn vni 10010 l2 rd auto route-target import auto route-target export auto
enable evpn vxlan with vni 10010 in mac-vrf
Juniper
junos
EVPN
set protocols evpn encapsulation vxlan set protocols evpn extended-vni-list 10010 set routing-instances MACVRF instance-type mac-vrf
curated
set protocols evpn encapsulation vxlan set protocols evpn extended-vni-list 10010 set routing-instances MACVRF instance-type mac-vrf
configure bgp evpn for vlan 10 with route-target
Arista
eos
EVPN
router bgp 65001 address-family evpn neighbor SPINE activate vlan 10 rd 1.1.1.1:10 route-target both 10:10010 redistribute learned
curated
router bgp 65001 address-family evpn neighbor SPINE activate vlan 10 rd 1.1.1.1:10 route-target both 10:10010 redistribute learned
activate evpn neighbor and advertise-all-vni
FRR
frr
EVPN
router bgp 65001 address-family l2vpn evpn neighbor 10.0.0.2 activate advertise-all-vni
curated
router bgp 65001 address-family l2vpn evpn neighbor 10.0.0.2 activate advertise-all-vni
enable evpn and vxlan flooding
NVIDIA
nvue
EVPN
nv set evpn enable on nv set vrf default router bgp address-family l2vpn-evpn enable on nv set nve vxlan flooding evpn
curated
nv set evpn enable on nv set vrf default router bgp address-family l2vpn-evpn enable on nv set nve vxlan flooding evpn
attach vxlan1.1 to bgp-evpn in MACVRF
Nokia
srlinux
EVPN
set / network-instance MACVRF protocols bgp-evpn bgp-instance 1 vxlan-interface vxlan1.1 set / network-instance MACVRF protocols bgp-evpn bgp-instance 1 evi 10
curated
set / network-instance MACVRF protocols bgp-evpn bgp-instance 1 vxlan-interface vxlan1.1 set / network-instance MACVRF protocols bgp-evpn bgp-instance 1 evi 10
activate evpn neighbor and advertise-all-vni
SONiC
sonic
EVPN
router bgp 65001 address-family l2vpn evpn neighbor 10.0.0.2 activate advertise-all-vni
curated
router bgp 65001 address-family l2vpn evpn neighbor 10.0.0.2 activate advertise-all-vni
configure bfd template and bgp fall-over bfd
Cisco
ios
BFD
bfd-template single-hop FAST interval min-tx 300 min-rx 300 multiplier 3 router bgp 65001 neighbor 10.0.0.2 fall-over bfd
curated
bfd-template single-hop FAST interval min-tx 300 min-rx 300 multiplier 3 router bgp 65001 neighbor 10.0.0.2 fall-over bfd
enable bfd on bgp neighbor 10.0.0.2
Arista
eos
BFD
router bgp 65001 neighbor 10.0.0.2 bfd
curated
router bgp 65001 neighbor 10.0.0.2 bfd
configure bfd peer with 300ms intervals multiplier 3
FRR
frr
BFD
router bgp 65001 neighbor 10.0.0.2 bfd bfd peer 10.0.0.2 detect-multiplier 3 receive-interval 300 transmit-interval 300
curated
router bgp 65001 neighbor 10.0.0.2 bfd bfd peer 10.0.0.2 detect-multiplier 3 receive-interval 300 transmit-interval 300
set rapid-pvst with vlan 10 root primary
Cisco
nxos
Spanning-Tree
spanning-tree mode rapid-pvst spanning-tree vlan 10 root primary
curated
spanning-tree mode rapid-pvst spanning-tree vlan 10 root primary
set rpvst with vlan 10 priority 4096
Aruba
aoscx
Spanning-Tree
spanning-tree spanning-tree mode rpvst spanning-tree vlan 10 priority 4096
curated
spanning-tree spanning-tree mode rpvst spanning-tree vlan 10 priority 4096
create acl DENY-RFC1918 and apply inbound on GigabitEthernet0/0
Cisco
ios
Security
ip access-list extended DENY-RFC1918 deny ip 10.0.0.0 0.255.255.255 any permit ip any any interface GigabitEthernet0/0 ip access-group DENY-RFC1918 in
curated
ip access-list extended DENY-RFC1918 deny ip 10.0.0.0 0.255.255.255 any permit ip any any interface GigabitEthernet0/0 ip access-group DENY-RFC1918 in
create filter DENY-RFC1918 and apply input on ge-0/0/0
Juniper
junos
Security
set firewall family inet filter DENY-RFC1918 term T1 from source-address 10.0.0.0/8 set firewall family inet filter DENY-RFC1918 term T1 then discard set firewall family inet filter DENY-RFC1918 term T2 then accept set interfaces ge-0/0/0 unit 0 family inet filter input DENY-RFC1918
curated
set firewall family inet filter DENY-RFC1918 term T1 from source-address 10.0.0.0/8 set firewall family inet filter DENY-RFC1918 term T1 then discard set firewall family inet filter DENY-RFC1918 term T2 then accept set interfaces ge-0/0/0 unit 0 family inet filter input DENY-RFC1918
create acl DENY-RFC1918 and apply inbound on Ethernet1
Arista
eos
Security
ip access-list DENY-RFC1918 deny ip 10.0.0.0/8 any permit ip any any interface Ethernet1 ip access-group DENY-RFC1918 in
curated
ip access-list DENY-RFC1918 deny ip 10.0.0.0/8 any permit ip any any interface Ethernet1 ip access-group DENY-RFC1918 in
create firewall policy DENY-RFC1918 from RFC1918 to any
FortiOS
fortios
Security
config firewall policy edit 10 set name DENY-RFC1918 set srcintf port1 set dstintf port2 set srcaddr RFC1918 set dstaddr all set schedule always set service ALL set action deny next end
curated
config firewall policy edit 10 set name DENY-RFC1918 set srcintf port1 set dstintf port2 set srcaddr RFC1918 set dstaddr all set schedule always set service ALL set action deny next end
create security rule DENY-RFC1918 from trust to untrust
PAN-OS
panos
Security
set rulebase security rules DENY-RFC1918 from trust set rulebase security rules DENY-RFC1918 to untrust set rulebase security rules DENY-RFC1918 source RFC1918 set rulebase security rules DENY-RFC1918 destination any set rulebase security rules DENY-RFC1918 application any set rulebase security rules DENY-RFC1918 servi...
curated
set rulebase security rules DENY-RFC1918 from trust set rulebase security rules DENY-RFC1918 to untrust set rulebase security rules DENY-RFC1918 source RFC1918 set rulebase security rules DENY-RFC1918 destination any set rulebase security rules DENY-RFC1918 application any set rulebase security rules DENY-RFC1918 servi...
drop forward traffic from 10.0.0.0/8
Mikrotik
routeros
Security
/ip firewall filter add chain=forward src-address=10.0.0.0/8 action=drop comment=DENY-RFC1918
curated
/ip firewall filter add chain=forward src-address=10.0.0.0/8 action=drop comment=DENY-RFC1918
configure ntp server 10.0.0.10 with prefer and Loopback0 source
Cisco
ios
System
ntp server 10.0.0.10 prefer ntp source Loopback0
curated
ntp server 10.0.0.10 prefer ntp source Loopback0
add NTP server 10.0.0.10 with iburst
FRR
frr
System
# FRR container uses host chrony # /etc/chrony/chrony.conf server 10.0.0.10 iburst
curated
# FRR container uses host chrony # /etc/chrony/chrony.conf server 10.0.0.10 iburst
add NTP server 10.0.0.10
VyOS
vyos
System
set system ntp server 10.0.0.10
curated
set system ntp server 10.0.0.10
add NTP unicast server 10.0.0.10
Huawei
vrp
System
ntp-service unicast-server 10.0.0.10
curated
ntp-service unicast-server 10.0.0.10
add NTP server 10.0.0.10 with iburst
NVIDIA
nvue
System
nv set system ntp server 10.0.0.10 iburst on
curated
nv set system ntp server 10.0.0.10 iburst on
add NTP server 10.0.0.10
SONiC
sonic
System
sudo config ntp add 10.0.0.10
curated
sudo config ntp add 10.0.0.10
show IP routing table
Cisco
ios
Troubleshooting
show ip route
curated
show ip route
show routing table
Juniper
junos
Troubleshooting
show route
curated
show route
show IP routing table
Arista
eos
Troubleshooting
show ip route
curated
show ip route
show BGP neighbors
NVIDIA
nvue
Troubleshooting
nv show vrf default router bgp neighbor
curated
nv show vrf default router bgp neighbor
add static IP 10.0.0.1/24 with gateway
Microsoft
powershell
Interfaces
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress 10.0.0.1 -PrefixLength 24 -DefaultGateway 10.0.0.2
curated
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress 10.0.0.1 -PrefixLength 24 -DefaultGateway 10.0.0.2
show full IP configuration
Microsoft
powershell
Troubleshooting
Get-NetIPConfiguration | Format-List
curated
Get-NetIPConfiguration | Format-List
add IP 10.0.0.1/24 to eth0
Linux
linux
Interfaces
ip addr add 10.0.0.1/24 dev eth0 ip link set eth0 up
curated
ip addr add 10.0.0.1/24 dev eth0 ip link set eth0 up
create LACP bond with eth0 and eth1
Linux
linux
EtherChannel
ip link add bond0 type bond mode 802.3ad ip link set eth0 master bond0 ip link set eth1 master bond0
curated
ip link add bond0 type bond mode 802.3ad ip link set eth0 master bond0 ip link set eth1 master bond0
capture BGP packets on eth0
Wireshark
tshark
Troubleshooting
tshark -i eth0 -f "tcp port 179" -Y bgp -V
curated
tshark -i eth0 -f \"tcp port 179\" -Y bgp -V
capture VXLAN packets on eth0
Wireshark
tshark
VXLAN
tshark -i eth0 -f "udp port 4789" -Y vxlan
curated
tshark -i eth0 -f \"udp port 4789\" -Y vxlan
apply outside ACL denying 10/8
Cisco
asa
Security
access-list OUTSIDE-IN extended deny ip 10.0.0.0 255.0.0.0 any access-list OUTSIDE-IN extended permit ip any any access-group OUTSIDE-IN in interface outside
curated
access-list OUTSIDE-IN extended deny ip 10.0.0.0 255.0.0.0 any access-list OUTSIDE-IN extended permit ip any any access-group OUTSIDE-IN in interface outside
create periodic YANG push subscription
Cisco
iosxe
Telemetry
telemetry ietf subscription 1 encoding encode-kvgpb source-address 1.1.1.1 stream yang-push update-policy periodic 3000
curated
telemetry ietf subscription 1 encoding encode-kvgpb source-address 1.1.1.1 stream yang-push update-policy periodic 3000
enable gNMI with SSL profile
Arista
eos
Telemetry
management api gnmi transport grpc default ssl profile DEMO provider eos-native
curated
management api gnmi transport grpc default ssl profile DEMO provider eos-native
enable gNMI server on port 57400
Nokia
srlinux
Telemetry
set / system grpc-server mgmt admin-state enable set / system grpc-server mgmt port 57400 set / system grpc-server mgmt services [ gnmi ]
curated
set / system grpc-server mgmt admin-state enable set / system grpc-server mgmt port 57400 set / system grpc-server mgmt services [ gnmi ]
configure gNMI server on localhost port 9339
NVIDIA
nvue
Telemetry
nv set system gnmi-server listening-address localhost nv set system gnmi-server port 9339
curated
nv set system gnmi-server listening-address localhost nv set system gnmi-server port 9339