The command _____ displays the status of the network
netstat
The command netstat _____
displays the status of the network
Predefined ports used by the OS for short-lived client sockets are called _____ ports.
Ephemeral
The command ip link set veth1 netns ns1 _____
adds a virtual ethernet interface to a network namespace
The command _____ creates a network namespace
ip netns add ns1
The command _____ traces the route to a given host
traceroute
The command ip link _____
lists network interfaces on the localhost
The command ethtool _____
shows Ethernet card settings
The command ip addr _____
shows network interfaces on the host system
The command ip -n ns1 addr add 192.168.15.1 dev veth1 _____ ip -n ns1 link set veth1 up ip -n ns2 link set veth2 up assigns an IP to a network namespace
ip -n ns2 addr add 192.168.15.2 dev veth2
The command ip netns exec _____
can be used to run commands inside a network namespace
The command _____ displays remote hosts connected to yours on port 3333
netstat -a | grep 3333
The _____ file is a list of hostname-to-IP address mappings for resolving hostnames (DNS)
/etc/hosts
The command nslookup _____
queries a website's name server
The command _____ shows network interfaces on the host system
ip addr
To connect several network namespaces you need a virtual _____, ex. Linux Bridge or Open vSwitch
switch / bridge network
Can network namespaces (netns) implement network isolation? _____
Yes
The command ip -n ns1 link _____
lists network interfaces inside a namespace
The command _____ can be used to run commands inside a network namespace
ip netns exec
The command ip -n ns1 link del veth1 _____
deletes a veth pair between namespaces
The command ip route add blackhole $BANNED_IP _____
blocks an IP from connecting to your host
The tracert command uses the _____ network protocol
ICMP
The command ip link add veth1 type veth peer name veth2 _____
links two virtual ethernet interfaces
The command _____ queries a website's name server
nslookup
The command traceroute _____
traces the route to a given host
The command _____ links two virtual ethernet interfaces
ip link add veth1 type veth peer name veth2
The command _____ ip -n ns2 addr add 192.168.15.2 dev veth2 ip -n ns1 link set veth1 up ip -n ns2 link set veth2 up assigns an IP to a network namespace
ip -n ns1 addr add 192.168.15.1 dev veth1
The command ip -n ns1 addr add 192.168.15.1 dev veth1 ip -n ns2 addr add 192.168.15.2 dev veth2 ip -n ns1 link set veth1 up _____ assigns an IP to a network namespace
ip -n ns2 link set veth2 up
The command ip -n ns1 addr add 192.168.15.1 dev veth1 ip -n ns2 addr add 192.168.15.2 dev veth2 ip -n ns1 link set veth1 up ip -n ns2 link set veth2 up _____
assigns an IP to a network namespace
The command ip netns add ns1 _____
creates a network namespace
"The command ip link add veth1 type veth peer name veth1-bridge ip link set veth1-bridge master v-net-0 _____"
links a veth interface ""veth1"" to a bridge network ""v-net-0""
The command _____ lists network interfaces on the localhost
ip link
The command _____ finds the hostname of an IP address.
dig
The _____ file specifies the DNS server and domain suffix of the system.
/etc/resolv.conf
The command ip -n ns1 addr add 192.168.15.1 dev veth1 ip -n ns2 addr add 192.168.15.2 dev veth2 _____ ip -n ns2 link set veth2 up assigns an IP to a network namespace
ip -n ns1 link set veth1 up
The command _____ blocks an IP from connecting to your host
ip route add blackhole $BANNED_IP
The command netstat -a | grep 3333 _____
displays remote hosts connected to yours on port 3333
The command _____ lists network interfaces inside a namespace
ip -n ns1 link
"The command _____ links a veth interface ""veth1"" to a bridge network ""v-net-0"""
ip link add veth1 type veth peer name veth1-bridge ip link set veth1-bridge master v-net-0
The command dig _____
finds the hostname of an IP address.
The command _____ creates a new bridge network
ip link add v-net-0 type bridge ip link set dev v-net-0 up
The command _____ adds a virtual ethernet interface to a network namespace
ip link set veth1 netns ns1
The ping command uses the _____ network protocol
ICMP
The command ip link add v-net-0 type bridge ip link set dev v-net-0 up _____
creates a new bridge network
The command _____ deletes a veth pair between namespaces
ip -n ns1 link del veth1
The command _____ shows Ethernet card settings
ethtool