12 Networking Basics
12 Networking Basics
Networking
Multiple physical or virtual computing devices interconnected together to form network
Medium
wired wireless
LAN
WAN
Network interface controller
Media access control (MAC)
It is a physical address or hardware address
It is a unique identifier for IEEE 802 Network technologies (Ethernet, Wifi, Bluetooth)
eg: 00-1E-67-B0-08-D8
Internet protocol (IP)
It is logical address or location based identification
eg:
192.168.1.100
Ranges of IP
Range
0.0.0.0
255.255.255.255
Classes of IP
A 0 - 127
B 128 - 191
C 192 - 223
0 - (Any network)
127 - (Loopback)
Network / Host
Network Host
Virtual NIC
Wireless NIC
wlanX
Verify NIC and IP property
ip link && ip addr
IP command (delete IP address)
ip addr del 10.0.0.10/8 dev ens160
IP command (adding IP address)
ip addr add 172.16.0.10/16 dev ens160
Note:
1. nmtui
2. nmcli
Listing the connection
nmcli con show
#manual
nmcli con add con-name <con-name> ifname ens160 type ethernet ip4 172.17.0.10/16 gw4 172.17.0.1
ip6 2000::10/64 gw6 2000::1
Activating/Deactivating a connection
nmcli con up <con-name>