1. Linux Command Line (terminal)

IP

Show / manipulate routing, devices, policy routing and tunnels

  • Display all current TCP/IP configuration:
  • ip a

  • Release all TCP/IP configuration with DHCP:
  • sudo dhclient -r

  • Renew all TCP/IP configuration with DHCP:
  • sudo dhclient

  • Release a specific ethernet interface (in this case we will use eth0):
  • sudo dhclient -r eth0

  • Renew a specific ethernet interface (in this case we will use eth0):
  • sudo dhclient eth0

    TRACEROUTE

    Traceroute command in Linux prints the route that a packet takes to reach the host. This command is useful when you want to know about the route and about all the hops that a packet takes.

  • To trace the path to the host named www.google.pt, using IPv4 with 10 attempts type:
  • traceroute -4 10 google.com