Networking Snippets

less than 1 minute read

Collection of snippets for basic network configuration and IP/CIDR ranges.



Windows host network configuration.

1) Windows + R

2) ncpa.cpl    // run

3) Right click Ethernet -> Properties 

4) Select Internet Protocol Version 4 (TCP/IPv4) -> Properties 

5) Enter IP and DNS server:

	Use the following IP address: <...>

	Use the follwing DNS server addresses: <...>

Kali VM

Then setup bridging instead of NAT in VMware configuration.

ipcalc xx.xx.xx.xx

ifconfig <iface> xx.xx.xx.xx
ifconfig <iface> xx.xx.xx.xx/24   
ifconfig <iface> xx.xx.xx.xx netmask 255.xx.xx.xx

echo nameserver xx.xx.xx.xx > /etc/resolv.conf

USB Passthrough

/etc/init.d/network-manager stop   // not always needed

ip addr add xx.xx.xx.xx/24 dev eth1
ip link set eth1 up

route add default gw xx.xx.xx.xx eth1   // not always needed

ip a   // check config
arp-scan -I eth1 -l   // confirm 

IPv4 Address Ranges

Class Range
Class A Private Address Range -
Class B Private Address Range -
Class C Private Address Range - -