Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 935 Bytes

File metadata and controls

44 lines (24 loc) · 935 Bytes

Common Network Commands

ip a Command

  • Used to list down the ip address of the device
  • We can also use ifconfig

ifconfig command

ip a command

Here we can note down the following things:

  • IPV4 Address: 192.168.138.140
  • Subnet Mask: /24 => (255.255.255.0)
  • MAC Address: 00:0c:29:60:7d:fb
  • IPV6 Address: fe80::20c:29ff:fe60:7dfb

arp Command

  • Used to map ip addresses to their relevant MAC addresses

    arp -a

  • We can also use ip n

    arp and ip n commands

ip r Command

  • Help us to look at the Routing Table

    ip r command

ping Command

  • Used to send packets to a destination device to check connectivity

    ping <ip address>

    ping command

    Here we have pinged one of the public ip of google (8.8.8.8)