NETKIT MD PDF
NETKIT MD PDF
numero da decimale a
binario con Bash
varD=127;bc <<<"obase=2;$varD"
NETKIT
Enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip forward
VM configuration
Create a virtual machine
Start VM with name pc1 and network interface
eth0 on collision domain A
bash~$ vstart pc1 --eth0=A
Gateways
If we cannot ping interfaces on other
domains [Network unreachable] we have
to modify their routing tables
Directly connected networks are automatically
inserted into the routing table when the
corrisponding interface is brought up
Set default routes on PCs
Specify default gw to route packets
pc1~$ route add default gw [address of the specific inter
Delete an entry
r2~$ route del -net [destination gateway address]
command route
ARP
ARP Cache
Check the ARP cache of the machine
Displays the address resolution results already
present in the machine
pc1~$ arp
In another network
Routing protocols
Routing protocols are used to automatically update routing
In netkit routers that are virtual machines as well, run a specific piece
of software that implements routing protocols such as Zebra / Quagga
TraceRoute command
Packets path to destination
Identifies the route the packets take to reach
destination
pc1~$ traceroute [destination address]
DNS
Sniff packets of DNS service
pc2~$ tcpdump -n -t port domain
where domain is the port (53) associated with the DNS service
RIP
Sniff packets of RIPv2 service on the
machine
pc2~$ tcpdump -i [interface] -v -n -s 1518