Skip to content

Instantly share code, notes, and snippets.

@kaworu
Last active August 29, 2015 14:08
Show Gist options
  • Save kaworu/d54a5f12b6b1c2b79496 to your computer and use it in GitHub Desktop.
Save kaworu/d54a5f12b6b1c2b79496 to your computer and use it in GitHub Desktop.
# cat /etc/mygate
178.63.43.193
# route add default 178.63.43.193
route: writing to routing socket: Network is unreachable
add net default: gateway 178.63.43.193: Network is unreachable
% ping -c3 178.63.43.248
PING 178.63.43.248 (178.63.43.248): 56 data bytes
36 bytes from localhost (127.0.0.1): Time to live exceeded
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 0054 d464 0 0000 01 01 28fd 178.63.43.209 178.63.43.248
36 bytes from localhost (127.0.0.1): Time to live exceeded
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 0054 f8d7 0 0000 01 01 048a 178.63.43.209 178.63.43.248
36 bytes from localhost (127.0.0.1): Time to live exceeded
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst
4 5 00 0054 5023 0 0000 01 01 ad3e 178.63.43.209 178.63.43.248
--- 178.63.43.248 ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet 127.0.0.1 netmask 0xff000000
vio0: flags=28b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST,NOINET6> mtu 1500
lladdr 00:a0:98:48:34:12
priority: 0
media: Ethernet autoselect
status: active
inet 178.63.43.248 netmask 0xffffffff
enc0: flags=20000<NOINET6>
priority: 0
groups: enc
status: active
pflog0: flags=20141<UP,RUNNING,PROMISC,NOINET6> mtu 33144
priority: 0
groups: pflog
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=82099<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether 50:46:5d:9f:f9:fe
inet 178.63.43.209 netmask 0xffffffff broadcast 178.63.43.209
inet6 fe80::5246:5dff:fe9f:f9fe%re0 prefixlen 64 scopeid 0x1
inet6 2a01:4f8:120:5388::1 prefixlen 64
inet 178.63.43.249 netmask 0xffffffff broadcast 178.63.43.249
nd6 options=8021<PERFORMNUD,AUTO_LINKLOCAL,DEFAULTIF>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:7b:67:1d:00
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect
status: active
Opened by PID 96178
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:e4:35:24:01:00
nd6 options=9<PERFORMNUD,IFDISABLED>
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 3 priority 128 path cost 2000000
member: re0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
% sudo tcpdump -n -i re0 | grep 178.63.43.248
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on re0, link-type EN10MB (Ethernet), capture size 65535 bytes
capability mode sandbox enabled
16:01:46.683900 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 31719, seq 23, length 64
16:01:46.683915 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 31719, seq 23, length 64
16:01:47.925502 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 1, length 64
16:01:47.925522 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 1, length 64
16:01:48.931881 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 2, length 64
16:01:48.931892 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 2, length 64
16:01:49.939843 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 3, length 64
16:01:49.939863 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 3, length 64
16:01:50.947837 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 4, length 64
16:01:50.947854 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 4, length 64
16:01:51.955810 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 5, length 64
16:01:51.955821 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 5, length 64
16:01:52.963819 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 6, length 64
16:01:52.963831 IP 109.164.219.139 > 178.63.43.248: ICMP echo request, id 61164, seq 6, length 64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment