Subnetting contd
- When a device is connected to the network, ip is assigned to the network interface, which is used to access the device.
- If a system has multiple network interfaces we can have multiple ip addresses to the system
How can a private network get internet access?
- Rule: Any server which is accessed on open internet expects to send direct response
- NAT Server (Network Address Translation):
- NAT Server will be present in public network with a route from private network. when the packet travels through NAT, it does address translations.
Router
- Router forwards packets from one network to another
- Each Router will have Route table which are rules to forward the packets
- Rules are written in terms of CIDR Ranges
- Rules generally work only on network ids
# is for my network
192.168.0.0/16
# is for any device from any network (all ip addresses)
0.0.0.0/0
# is for a specific device with ip 5.5.5.5
5.5.5.5/32
