关于dot1q封装的终结子接口不能ping通vlan内设备的问题
僅為記錄排錯:(小疏忽耽誤時間,吧啦吧啦?網(wǎng)工罵罵咧咧繼續(xù)加班)
更新小故事來理解:
? ? ? 我住在公寓,公寓里面一個房間住一個人(ip),且房間號唯一(mac地址),公寓有個宿管(子接口,網(wǎng)關(guān)),錢拿的不知道多不多,反正要給兼顧給我們收發(fā)快遞(轉(zhuǎn)發(fā)),
但是第一個宿管很懶,他剛來,啥都不做,就在辦公室坐著看動畫片。
? ? ? 有一天,有一個張三的包裹(數(shù)據(jù)包)到了宿管辦公室,但是這個宿管沒有我們住宿的詳細(xì)信息表啊(arp表),他不知道張三住哪個房間,他就悄悄
把包裹給扔了。等到有一天張三去找宿管寄快遞的時候,他才知道:哦~原來張三住131號房間,然后他記了下來,后面張三的包裹沒有丟過,但是他這工作干得不行啊,老是給別人把包裹搞丟,所以,他被開除了。
? ? ? 不久之后,公司又招了一個宿管大爺,大爺聽說過這個前任的故事,可不想走了老路。他就想了個辦法,他拿著大喇叭站在樓里喊,007住的誰啊?叫啥名?601住的又是誰?叫啥名?......(arp廣播)。大家也比較配合,
不一會兒就把信息都完善了。
? ? 這一天,來了個李四的包裹,大爺一看,李四的包裹,他住666,分分鐘就送到了家門口。大爺因為工作干得好,被表揚了,還發(fā)了200塊錢獎勵。只要大爺還能蹦噠,我們的包裹就沒有丟過。
?
? ?-------------------------------以下是技術(shù)看的----------------------------------------------------------
先看拓?fù)?#xff0c;AR3ge0/0/0.1下起網(wǎng)關(guān),dot1q封裝tag:601
AR4上聯(lián)0/0/0 trunk ,0/0/1接口劃入vlan601接入設(shè)備(AR4要起一個vlan601)
配置完后如果PC1如果不主動ping網(wǎng)關(guān),業(yè)務(wù)不會通,因為AR3終結(jié)子接口不會主動廣播報文,那就不會有ARP表。
沒有arp表從AR3訪問PC1的流量就不會通。
解決辦法:AR3 GE0/0/0.1上使能arp廣播:
interface GigabitEthernet0/0/0.1
?dot1q termination vid 601
?ip address *2.**.112.1 255.255.255.128?
?arp broadcast enable
----------------------------------------------------------------------------
實驗證明:AR3上操作
未開啟前:
<Huawei>reset arp all?
Warning: This operation will reset all static and dynamic ARP entries, and clear
?the configurations of all static ARP, continue?[Y/N]:y
<Huawei>dis arp
IP ADDRESS ? ? ?MAC ADDRESS ? ? EXPIRE(M) TYPE ? ? ? ?INTERFACE ? VPN-INSTANCE?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? VLAN/CEVLAN PVC ? ? ? ? ? ? ? ? ? ? ?
------------------------------------------------------------------------------
*2.**.112.1 ? ? 00e0-fcbe-12e6 ? ? ? ? ? ?I - ? ? ? ? GE0/0/0.1
------------------------------------------------------------------------------
Total:1 ? ? ? ? Dynamic:0 ? ? ? Static:0 ? ? Interface:1 ? ?
<Huawei>ping *2.**.112.20
? PING *2.**.112.20: 56 ?data bytes, press CTRL_C to break
? ? Request time out
? ? Request time out
? ? Request time out
? ? Request time out
? ? Request time out
? --- *2.**.112.20 ping statistics ---
? ? 5 packet(s) transmitted
? ? 0 packet(s) received
? ? 100.00% packet loss
<Huawei>ping *2.**.112.21
? PING *2.**.112.21: 56 ?data bytes, press CTRL_C to break
? ? Request time out
? ? Request time out
? ? Request time out
? ? Request time out
? ? Request time out
? --- *2.**.112.21 ping statistics ---
? ? 5 packet(s) transmitted
? ? 0 packet(s) received
? ? 100.00% packet loss
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int?? ?
[Huawei]interface g?? ?
[Huawei]interface GigabitEthernet 0/0/0.1
[Huawei-GigabitEthernet0/0/0.1]dis th
[V200R003C00]
#
interface GigabitEthernet0/0/0.1
?dot1q termination vid 601
?ip address *2.**.112.1 255.255.255.128?
#
return
[Huawei-GigabitEthernet0/0/0.1]arp b?? ?
[Huawei-GigabitEthernet0/0/0.1]arp broadcast en?? ?
[Huawei-GigabitEthernet0/0/0.1]arp broadcast enable?
[Huawei-GigabitEthernet0/0/0.1]qu
[Huawei]ping *2.**.112.20
? PING *2.**.112.20: 56 ?data bytes, press CTRL_C to break
? ? Reply from *2.**.112.20: bytes=56 Sequence=1 ttl=128 time=90 ms
? ? Reply from *2.**.112.20: bytes=56 Sequence=2 ttl=128 time=30 ms
? ? Reply from *2.**.112.20: bytes=56 Sequence=3 ttl=128 time=30 ms
? ? Reply from *2.**.112.20: bytes=56 Sequence=4 ttl=128 time=30 ms
? ? Reply from *2.**.112.20: bytes=56 Sequence=5 ttl=128 time=20 ms
? --- *2.**.112.20 ping statistics ---
? ? 5 packet(s) transmitted
? ? 5 packet(s) received
? ? 0.00% packet loss
? ? round-trip min/avg/max = 20/40/90 ms
[Huawei]ping *2.**.112.21
? PING *2.**.112.21: 56 ?data bytes, press CTRL_C to break
? ? Reply from *2.**.112.21: bytes=56 Sequence=1 ttl=255 time=190 ms
? ? Reply from *2.**.112.21: bytes=56 Sequence=2 ttl=255 time=20 ms
? ? Reply from *2.**.112.21: bytes=56 Sequence=3 ttl=255 time=20 ms
? ? Reply from *2.**.112.21: bytes=56 Sequence=4 ttl=255 time=20 ms
? ? Reply from *2.**.112.21: bytes=56 Sequence=5 ttl=255 time=20 ms
? --- *2.**.112.21 ping statistics ---
? ? 5 packet(s) transmitted
? ? 5 packet(s) received
? ? 0.00% packet loss
? ? round-trip min/avg/max = 20/54/190 ms
?
總結(jié)
以上是生活随笔為你收集整理的关于dot1q封装的终结子接口不能ping通vlan内设备的问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 康复评定试题库-康复评定的题库
- 下一篇: 【Arduino笔记】触摸传感器的使用