Skip to content

Instantly share code, notes, and snippets.

@lheckemann
Created April 14, 2018 14:16
Show Gist options
  • Save lheckemann/541371923de5775604ea3f962598c3d2 to your computer and use it in GitHub Desktop.
Save lheckemann/541371923de5775604ea3f962598c3d2 to your computer and use it in GitHub Desktop.
[u@kakuna:~]$ ip a show dev enp4s0
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:1c:23:xx:xx:37 brd ff:ff:ff:ff:ff:ff
inet 10.0.141.112/26 scope global enp4s0
valid_lft forever preferred_lft forever
[u@kakuna:~]$ ping 10.0.141.89
PING 10.0.141.89 (10.0.141.89) 56(84) bytes of data.
64 bytes from 10.0.141.89: icmp_seq=1 ttl=255 time=0.245 ms
64 bytes from 10.0.141.89: icmp_seq=2 ttl=255 time=0.194 ms
^C
--- 10.0.141.89 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1024ms
rtt min/avg/max/mdev = 0.194/0.219/0.245/0.029 ms
[u@kakuna:~]$ ssh linus@10.0.141.89 echo hello
hello
[u@kakuna:~]$ ip neigh
[…]
10.0.141.89 dev enp4s0 lladdr 00:03:ba:40:b6:ab REACHABLE
[…]
eridani-2% /usr/sbin/ping 10.0.141.112
10.0.141.112 is alive
eridani-2% /usr/sbin/ping 10.0.141.89
10.0.141.89 is alive
root@solrock:/# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 10.0.141.126 UG 2 595
127.0.0.1 127.0.0.1 UH 2 144 lo0
10.0.141.64 10.0.141.89 U 6 1284 bge0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 2 18 lo0
root@solrock:/# arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- -------- ---------------
bge0 10.0.141.88 255.255.255.255 00:03:ba:xx:xx:3d
bge0 10.0.141.89 255.255.255.255 SPLA 00:03:ba:xx:xx:ab
bge0 10.0.141.90 255.255.255.255 U
bge0 10.0.141.112 255.255.255.255 00:1c:23:xx:xx:37
bge0 224.0.0.2 255.255.255.255 S 01:00:5e:xx:xx:02
bge0 10.0.141.126 255.255.255.255 e8:f7:24:xx:xx:77
bge0 224.0.0.22 255.255.255.255 S 01:00:5e:xx:xx:16
root@solrock:/# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
bge2 Ethernet unknown 0 unknown bge2
bge0 Ethernet up 1000 full bge0
bge3 Ethernet unknown 0 unknown bge3
bge1 Ethernet unknown 0 unknown bge1
root@solrock:/# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.0.141.89 netmask ffffffc0 broadcast 10.0.141.127
ether 0:3:ba:40:b6:ab
bge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.0.141.89 netmask ffffffc0 broadcast 10.0.141.127
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
bge0: flags=20002000840<RUNNING,MULTICAST,IPv6> mtu 1500 index 3
inet6 ::/0
ether 0:3:ba:xx:xx:ab
root@solrock:/# ping 10.0.141.112
no answer from 10.0.141.112
root@solrock:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment