Your IP Address Is: 35.173.48.18

Linux Commands linux

Below, you'll find a list of the most common IP commands for Linux.

Display Current Config: Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. If no arguments are given, ifconfig displays the status of the currently active interfaces. If a single interface argument is given, it displays the status of the given interface only; if a single -a argument is given, it displays the status of all interfaces, even those that are down. Otherwise, it configures an interface.
ifconfig
$ ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2985 errors:0 dropped:0 overruns:0 frame:0 TX packets:2985 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:91675 (91.6 KB) TX bytes:91675 (91.6 KB)

Assign IP: Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot time to set up interfaces as necessary. After that, it is usually only needed when debugging or when system tuning is needed. If no arguments are given, ifconfig displays the status of the currently active interfaces. If a single interface argument is given, it displays the status of the given interface only; if a single -a argument is given, it displays the status of all interfaces, even those that are down. Otherwise, it configures an interface.
ifconfig eth0 192.168.1.2

Ping: Ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (``pings'') have an IP and ICMP header, followed by a struct timeval and then an arbitrary number of ``pad'' bytes used to fill out the packet.
ping example.com
$ ping example.com PING example.com (192.0.43.10) 56(84) bytes of data. 64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_req=1 ttl=240 time=87.3 ms 64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_req=2 ttl=240 time=89.2 ms 64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_req=3 ttl=240 time=90.7 ms