如圖,有兩個網段,左邊17.0的網關在LSW1上17.254,右邊42.0的網關在LSW3上42.254,所有交換機通過trunk互聯,使用vlan11通信正常,均有路由可達,現在的問題的客戶端17.1無法ping通42.254,這是什麼問題?
(0)
最佳答案
現在拋開終端問題,在LSW2上ping LSW3上的42.254不通,但ping11.3是通的
(0)
不好意思,帖上來格式都沒有了
因為11.3網段是二層過去的 不需要路由轉發 42.254不同網段要靠路由轉發 你檢查路由配置把
路由配置再三查了,確定有路由, LSW2上有默認路由到LSW1,LSW1上有靜態路由到42.0,LSW3上有默認路由到LSW1,LSW1 ping 42.254沒問題,LSW2 ping42.254不通 ,tracert到11.1就不行了
肯定是路由問題 下去沉澱沉澱吧
我在模擬器上測試一點問題沒有,是不是真機不能這麼操作,配置稍等一下
不會啊 如果沒有策略限製的話 如果你模擬器是通的說明路由是沒問題的 然後真機上你就看到對端網關通了就說明路由沒問題 到對端終端不通可能是對端沒配置網關或者開防火牆了 如果你模擬器不通就把配置貼出來我看看 真機參考我剛才說的 另外如果不是特殊環境 我建議網關放在同一台設備上
就是因為環境特殊才這麼放的網關,確定沒有做策略和防火牆,我也納悶了幾天,實在不知道問題在哪裏,難道是真機不支持這trunk鏈路轉發
####LSW1 vlan ba 11 17 # interface GigabitEthernet0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 11 17 42 # interface GigabitEthernet0/0/2 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 11 17 42 # interface Vlanif11 ip address 10.12.11.1 255.255.255.0 # interface Vlanif17 ip address 10.12.17.254 255.255.255.0 # ip route-static 10.12.42.0 255.255.255.0 10.12.11.3 ###################### <LSW1>ping 10.12.42.254 PING 10.12.42.254: 56 data bytes, press CTRL_C to break Reply from 10.12.42.254: bytes=56 Sequence=1 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=2 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=3 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=4 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=5 ttl=254 time=1 ms <LSW1>ping ping -a 10.12.11.1 10.12.42.254 PING 10.12.42.254: 56 data bytes, press CTRL_C to break Reply from 10.12.42.254: bytes=56 Sequence=1 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=2 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=3 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=4 ttl=254 time=1 ms Reply from 10.12.42.254: bytes=56 Sequence=5 ttl=254 time=1 ms ###################### ###LSW2 vlan batch 11 17 42 # interface GigabitEthernet0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 11 17 42 # interface Vlanif11 ip address 10.12.11.2 255.255.255.0 # ip route-static 0.0.0.0 0.0.0.0 10.12.11.1 # ###################### <LSW2>ping 10.12.42.254 PING 10.12.42.254: 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Request time out <LSW2>tracert 10.12.42.254 traceroute to 10.12.42.254(10.12.42.254), max hops: 30 ,packet length: 40,press CTRL_C to break 1 10.12.11.1 2 ms 2 ms 2 ms 2 * * * 3 ###################### ###LSW3 # vlan batch 11 17 42 # interface GigabitEthernet0/0/1 port link-type trunk undo port trunk allow-pass vlan 1 port trunk allow-pass vlan 11 17 42 # interface Vlanif11 ip address 10.12.11.3 255.255.255.0 # interface Vlanif42 ip address 10.12.42.254 255.255.255.0 # ip route-static 0.0.0.0 0.0.0.0 10.12.11.1 # ###################### <LSW3>ping -a 10.12.42.254 10.12.11.2 PING 10.11.11.23: 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Request time out Request time out <LSW3>ping -a 10.12.42.254 10.12.11.1 PING 10.11.11.3: 56 data bytes, press CTRL_C to break Reply from 10.12.11.1: bytes=56 Sequence=1 ttl=253 time=1 ms Reply from 10.12.11.1: bytes=56 Sequence=2 ttl=253 time=1 ms Reply from 10.12.11.1: bytes=56 Sequence=3 ttl=253 time=1 ms Reply from 10.12.11.1: bytes=56 Sequence=4 ttl=253 time=1 ms
不好意思,帖上來格式都沒有了
拓撲感覺不對,2個網關最好在同一台設備上,開啟路由即可。在不同設備上要煩一些,最好用3層設備,使用路由協議。
(0)
環境特殊,難道這種拓撲不用路由接口不行
環境特殊,難道這種拓撲不用路由接口不行
親~登錄後才可以操作哦!
確定你的郵箱還未認證,請認證郵箱或綁定手機後進行當前操作
舉報
×
侵犯我的權益
×
侵犯了我企業的權益
×
抄襲了我的內容
×
原文鏈接或出處
誹謗我
×
對根叔社區有害的內容
×
不規範轉載
×
舉報說明