linux Vlanif 轉發問題

[email protected]:~$ sudo tcpdump -Q out -i Ethernet8 -envv icmp6
tcpdump: listening on Ethernet8, link-type EN10MB (Ethernet), capture size 262144 bytes
15:43:20.944080 00:10:94:00:00:05 > 33:33:ff:00:00:01, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 6001::5 > ff02::1:ff00:1: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 6001::1
	  source link-address option (1), length 8 (1): 00:10:94:00:00:05
	    0x0000:  0010 9400 0005
15:43:32.042931 00:00:5e:00:01:01 > 33:33:ff:00:00:05, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 6001::1 > ff02::1:ff00:5: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 6001::5
	  source link-address option (1), length 8 (1): 00:00:5e:00:01:01
	    0x0000:  0000 5e00 0101
15:43:32.043262 00:10:94:00:00:05 > 00:00:5e:00:01:01, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 6001::5 > 6001::1: [icmp6 sum ok] ICMP6, neighbor advertisement, length 32, tgt is 6001::5, Flags [solicited, override]
	  destination link-address option (2), length 8 (1): 00:10:94:00:00:05
	    0x0000:  0010 9400 0005
15:44:02.210919 00:00:5e:00:01:01 > 33:33:ff:00:00:05, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 6001::1 > ff02::1:ff00:5: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 6001::5
	  source link-address option (1), length 8 (1): 00:00:5e:00:01:01
	    0x0000:  0000 5e00 0101
15:44:02.211361 00:10:94:00:00:05 > 00:00:5e:00:01:01, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) 6001::5 > 6001::1: [icmp6 sum ok] ICMP6, neighbor advertisement, length 32, tgt is 6001::5, Flags [solicited, override]
	  destination link-address option (2), length 8 (1): 00:10:94:00:00:05
	    0x0000:  0010 9400 0005
^C
5 packets captured
5 packets received by filter
0 packets dropped by kernel
[email protected]:~$ show vlan bri
+-----------+---------------+---------+----------------+-----------------------+---------------+
|   VLAN ID | IP Address    | Ports   | Port Tagging   | DHCP Helper Address   | Description   |
+===========+===============+=========+================+=======================+===============+
|       100 | 165.0.1.1/24  | 25GE5   | untagged       | 200.200.200.100       |               |
|           | 165.0.2.1/24  | 25GE8   | untagged       |                       |               |
|           | 165.0.3.1/24  |         |                |                       |               |
|           | 165.0.4.1/24  |         |                |                       |               |
|           | 165.0.5.1/24  |         |                |                       |               |
|           | 165.0.6.1/24  |         |                |                       |               |
|           | 165.0.7.1/24  |         |                |                       |               |
|           | 165.0.8.1/24  |         |                |                       |               |
|           | 165.0.9.1/24  |         |                |                       |               |
|           | 165.0.10.1/24 |         |                |                       |               |
|           | 6001::1/64    |         |                |                       |               |
+-----------+---------------+---------+----------------+-----------------------+---------------+
[email protected]:~$ show ipv6 interfaces
Interface    IPv6 address/mask                       Admin/Oper
-----------  --------------------------------------  ------------
Bridge       fe80::4cca:b5ff:fea8:dbea%Bridge/64     up/up
25GE5        fe80::e3a:faff:fe35:3cd4%Ethernet5/64   up/up
25GE6        fe80::e3a:faff:fe35:3cd4%Ethernet6/64   up/up
25GE7        fe80::e3a:faff:fe35:3cd4%Ethernet7/64   up/up
25GE8        fe80::e3a:faff:fe35:3cd4%Ethernet8/64   up/up
100GE1       fe80::e3a:faff:fe35:3cd4%Ethernet49/64  up/up
100GE2       fe80::e3a:faff:fe35:3cd4%Ethernet50/64  up/up
100GE3       fe80::e3a:faff:fe35:3cd4%Ethernet51/64  up/up
100GE4       fe80::e3a:faff:fe35:3cd4%Ethernet52/64  up/up
100GE5       fe80::e3a:faff:fe35:3cd4%Ethernet53/64  up/up
100GE6       fe80::e3a:faff:fe35:3cd4%Ethernet54/64  up/up
100GE7       fe80::e3a:faff:fe35:3cd4%Ethernet55/64  up/up
Vlan100      6001::1/64                              up/up
             fe80::200:5eff:fe00:101%Vlan100/64
eth0         fe80::e3a:faff:fe35:3cd4%eth0/64        up/up
lo           ::1/128                                 up/up
[email protected]:~$ show nd
Address    MacAddress         Iface        Vlan  Status
---------  -----------------  ---------  ------  ---------
6001::5    00:10:94:00:00:05  25GE5         100  REACHABLE
Total number of entries 1
[email protected]:~$

linux vlanif中有兩個端口Ethernet5、Ethernet8 Ethernet5上學習到一個ND表項,Ethernet5回覆vlanif網關的NS時候,NA報文被Linux轉發到Ethernet8一份,這個邏輯很有問題。。。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章