Skip to content

Instantly share code, notes, and snippets.

@lawrence910426
Created March 23, 2026 01:21
Show Gist options
  • Select an option

  • Save lawrence910426/acf37ec0106de0e12c6487fecca58494 to your computer and use it in GitHub Desktop.

Select an option

Save lawrence910426/acf37ec0106de0e12c6487fecca58494 to your computer and use it in GitHub Desktop.
lawrence910426@xi-jin-ping:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: enp1s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 84:16:0c:c6:d6:d0 brd ff:ff:ff:ff:ff:ff
inet 10.101.25.142/24 brd 10.101.25.255 scope global enp1s0f0np0
valid_lft forever preferred_lft forever
inet6 fe80::8616:cff:fec6:d6d0/64 scope link
valid_lft forever preferred_lft forever
3: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 10:7c:61:54:61:70 brd ff:ff:ff:ff:ff:ff
altname enp5s0
4: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 10:7c:61:54:61:71 brd ff:ff:ff:ff:ff:ff
altname enp6s0
5: enp1s0f1np1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 84:16:0c:c6:d6:d1 brd ff:ff:ff:ff:ff:ff
inet 10.151.5.61/24 brd 10.151.5.255 scope global enp1s0f1np1
valid_lft forever preferred_lft forever
inet6 fe80::8616:cff:fec6:d6d1/64 scope link
valid_lft forever preferred_lft forever
6: enp2s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 3c:fd:fe:a9:47:68 brd ff:ff:ff:ff:ff:ff
inet 172.21.14.129/26 brd 172.21.14.191 scope global enp2s0f0np0
valid_lft forever preferred_lft forever
inet6 fe80::3efd:feff:fea9:4768/64 scope link
valid_lft forever preferred_lft forever
7: enp2s0f1np1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 3c:fd:fe:a9:47:69 brd ff:ff:ff:ff:ff:ff
8: enx8a00e448dde0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 8a:00:e4:48:dd:e0 brd ff:ff:ff:ff:ff:ff
lawrence910426@xi-jin-ping:~$ cat /etc/smcroute.conf
mgroup from enp1s0f0np0 group 224.0.100.100
mgroup from enp1s0f0np0 group 224.0.30.30
mgroup from enp1s0f0np0 group 224.2.100.100
mgroup from enp1s0f0np0 group 224.2.30.30
mgroup from enp1s0f0np0 group 224.4.100.100
mgroup from enp1s0f0np0 group 224.4.30.30
mgroup from enp1s0f0np0 group 224.6.100.100
mgroup from enp1s0f0np0 group 224.6.30.30
mgroup from enp1s0f0np0 group 224.8.100.100
mgroup from enp1s0f0np0 group 224.8.30.30
mgroup from enp1s0f1np1 group 225.10.140.140
mgroup from enp1s0f1np1 group 225.10.40.40
mgroup from enp1s0f1np1 group 225.0.140.140
mgroup from enp1s0f1np1 group 225.0.40.40
lawrence910426@xi-jin-ping:~$ sudo tcpdump -ni any 'udp and dst host 224.0.100.100'
[sudo] password for lawrence910426:
tcpdump: data link type LINUX_SLL2
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment