Posts Networking Snippets
Post
Cancel

Networking Snippets

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

Connecting

Windows


Windows host network configuration.

1
2
3
4
5
6
7
8
9
10
11
12
13
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.

1
2
3
4
5
6
7
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


1
2
3
4
5
6
7
8
9
/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

ClassRange
Class A Private Address Range10.0.0.0 - 10.255.255.255
Class B Private Address Range172.16.0.0 - 172.31.255.255
Class C Private Address Range192.168.0.0 - 192.168.255.255
 127.0.0.0 - 127.255.255.255


This post is licensed under CC BY 4.0 by the author.