Ubuntu VLAN tcpdump log

环境

q@T:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
 

生成VLAN 160

 ip link add link enp0s8 name enp0s8.160 type vlan id 160

ip addr add 192.168.16.1/24 dev enp0s8.160

ifconfig enp0s8.160 hw ether AA:BB:CC:DD:00:01

ip link set up enp0s8.160

arp -s 192.168.16.2 aa:bb:cc:dd:00:02

tcpdump log

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 610, length 64

22:15:36.269399 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3096, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 610, length 64

22:15:37.291598 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 20841, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 611, length 64

22:15:37.293124 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3098, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 611, length 64

22:15:38.315564 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 20935, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 612, length 64

22:15:38.316705 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3099, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 612, length 64

22:15:39.339523 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 20998, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 613, length 64

22:15:39.340793 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3101, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 613, length 64

22:15:40.363930 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 21095, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 614, length 64

22:15:40.364975 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3102, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 614, length 64

22:15:41.387541 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 21224, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 615, length 64

22:15:41.388654 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3104, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 615, length 64

22:15:42.411514 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 21324, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 616, length 64

22:15:42.413006 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3105, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 616, length 64

22:15:43.435513 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 21579, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 617, length 64

22:15:43.436695 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3107, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 617, length 64

22:15:44.459568 aa:bb:cc:dd:00:01 > aa:bb:cc:dd:00:02, ethertype 802.1Q (0x8100), length 102: vlan 160, p 0, ethertype IPv4 (0x0800), (tos 0x0, ttl 64, id 21630, offset 0, flags [DF], proto ICMP (1), length 84)

    192.168.16.1 > 192.168.16.2: ICMP echo request, id 1, seq 618, length 64

22:15:44.460648 aa:bb:cc:dd:00:02 > aa:bb:cc:dd:00:01, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 255, id 3108, offset 0, flags [none], proto ICMP (1), length 84)

    192.168.16.2 > 192.168.16.1: ICMP echo reply, id 1, seq 618, length 64

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值