Skip to content

Instantly share code, notes, and snippets.

@luiginica
Created July 13, 2011 01:39
Show Gist options
  • Save luiginica/1079565 to your computer and use it in GitHub Desktop.
Save luiginica/1079565 to your computer and use it in GitHub Desktop.
ifconfig command
kevero:~# cat /var/aegir/config/server_master/nginx/vhost.d/chive.aegir.kevero.ca
server {
include /var/aegir/config/includes/fastcgi_params.conf;
limit_conn gulag 10;
listen *:80;
server_name chive.aegir.kevero.ca 64.15.155.168
handled
handled
handled
handled
handled
handled;
root /var/www/chive;
index index.php index.html;
include /var/aegir/config/includes/nginx_compact_include.conf;
}
kevero:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:25:90:0c:27:b5
inet addr:64.15.155.168 Bcast:64.15.155.191 Mask:255.255.255.224
inet6 addr: fe80::225:90ff:fe0c:27b5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:857394 errors:0 dropped:0 overruns:0 frame:0
TX packets:530757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1009834077 (963.0 MiB) TX bytes:95811276 (91.3 MiB)
Memory:fbee0000-fbf00000
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:4396490 errors:0 dropped:0 overruns:0 frame:0
TX packets:4396490 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4029194956 (3.7 GiB) TX bytes:4029194956 (3.7 GiB)
kevero:~# host kevero.ca | cut -d: -f2 | awk '{ print $4}'
64.15.155.168
handled
handled
handled
handled
handled
handled
kevero:~# sipcalc 64.15.155.168
-[ipv4 : 64.15.155.168] - 0
[CIDR]
Host address - 64.15.155.168
Host address (decimal) - 1074764712
Host address (hex) - 400F9BA8
Network address - 64.15.155.168
Network mask - 255.255.255.255
Network mask (bits) - 32
Network mask (hex) - FFFFFFFF
Broadcast address - 64.15.155.168
Cisco wildcard - 0.0.0.0
Addresses in network - 1
Network range - 64.15.155.168 - 64.15.155.168
-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment