Network 板


LINE

小的有兩台Cisco Router 接在同一個Hub上,為什麼連不上? ping 都 ping不到? 設定分別為 ------------------------------------RouterA--------------------------------- Building configuration... Current configuration : 1333 bytes ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname RouterA ! boot-start-marker boot-end-marker ! enable password 12345 ! no aaa new-model ip subnet-zero ! ! ! ip cef ! ! ! interface FastEthernet0 no ip address speed auto ! interface FastEthernet0.2 encapsulation dot1Q 2 ip address 192.168.223.99 255.255.255.0 no cdp enable ! interface FastEthernet0.3 encapsulation dot1Q 3 ip address 10.8.15.1 255.255.255.0 no cdp enable ! interface Serial0 bandwidth 512 ip address 192.168.254.2 255.255.255.252 encapsulation ppp no fair-queue ! interface Serial1 no ip address shutdown ! router ospf 1 router-id 10.8.15.1 log-adjacency-changes network 10.8.15.0 0.0.0.255 area 0 network 192.168.254.0 0.0.0.3 area 0 ! ip classless ip route 0.0.0.0 0.0.0.0 192.168.254.1 ip route 0.0.0.0 0.0.0.0 192.168.223.1 230 ip route 10.3.0.0 255.255.0.0 192.168.254.1 ip route 10.8.0.0 255.255.0.0 192.168.223.1 230 ip route 10.8.15.100 255.255.255.255 FastEthernet0.3 ip route 10.8.19.0 255.255.255.0 10.8.15.250 ip route 10.8.22.0 255.255.255.0 10.8.15.100 ip route 10.8.190.0 255.255.255.0 192.168.223.1 ip route 192.168.221.0 255.255.255.0 192.168.254.1 no ip http server ! ! line con 0 line aux 0 line vty 0 4 password 12345 login ! end -------------------------------Router B------------------------------------ Current configuration : 829 bytes ! version 12.3 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname RouterB ! boot-start-marker boot-end-marker ! enable password 12345 ! no aaa new-model ip subnet-zero ! ! no ip domain lookup ! ip cef ! ! ! ! interface FastEthernet0 ip address 10.8.15.100 255.255.255.0 speed auto no cdp enable ! interface Serial0 ip address 192.168.254.17 255.255.255.252 encapsulation ppp no cdp enable ! interface Serial1 no ip address shutdown no cdp enable ! ip classless ip route 10.3.0.0 255.255.0.0 10.8.15.1 ip route 10.8.0.0 255.255.0.0 10.8.15.1 ip route 10.8.19.0 255.255.255.0 192.168.254.18 ip route 10.8.190.0 255.255.255.0 10.8.15.1 no ip http server ! no cdp run ! line con 0 stopbits 1 line aux 0 line vty 0 4 password 12345 login ! end --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.68.146
1F:推 wst2080:很正常啊 你兩個fast ethernet 兩個封裝不同... 09/17 21:17
2F:→ wst2080:怎麼會通??? 09/17 21:17
3F:→ wst2080:encapsulation 這個是關鍵 09/17 21:17
4F:→ wst2080:我還是習慣推文... 沒辦法~ 某個戰略組長喜歡人三行回文 09/17 21:18
5F:→ wst2080:我還是改不了我的習慣就是了..... 09/17 21:18
6F:→ wst2080:Router的Fa0 這部分 是要給擁有Trunk的Switch使用... 09/17 21:19
7F:→ wst2080:你可以發現這個configuration當中有encapsulation dot1q 09/17 21:20
8F:→ wst2080:這就代表這個Port接受dot1q的封裝 09/17 21:20
9F:→ wst2080:換句話說 就是RouterA這台路由器按照你所po的設定就是設定 09/17 21:21
10F:→ wst2080:位於VLAN之間的Routing~ 所以你的Switch連接到RouterA的Po 09/17 21:21
11F:→ wst2080:rt 設定 Trunk 就能夠進行VLAN的Routing了 09/17 21:22
12F:→ wst2080:至於Router B 的Fa0 設定就很簡單 就好比一般的LAN一樣 09/17 21:22
13F:→ wst2080:若你的Switch使用access mode的話,就可以用這樣的設定 09/17 21:23
14F:→ wst2080:由於你Router A與B之間的溝通方式不同,所以你接到HUB上 09/17 21:23
15F:→ wst2080:當然不會通! 若真的有必要保留RouterA的組態...其實dot1q 09/17 21:24
16F:→ wst2080:有個小技巧 你可以試試看... 09/17 21:24
17F:→ wst2080:你就把dot1q當中的VLAN 3 設定成native vlan就可以了 09/17 21:25
18F:→ wst2080:封包封裝的時候不要有vlan tag 的話,我想應該是能通的 09/17 21:25
19F:→ wst2080:只不過你這兩台router的組態還蠻詭異的 有點不搭就是了 09/17 21:25
20F:→ wst2080:就看看你的需求去修整or刪除之類... 09/17 21:26
21F:→ wst2080:PS:因為你Router B 是 10.8.15.0/24 的網段... 09/17 21:26
22F:→ wst2080:而我發現你的RouterA FA0的網段子介面(fa0.3)設定一樣餘 09/17 21:27
23F:→ wst2080:Router B 的 Fa0 相同的網段... 所以你要在Switch上頭指定 09/17 21:28
24F:→ wst2080:native vlan 改設定成 vlan 3 應該就可以通了 09/17 21:28
25F:→ wst2080:然後RouterA的Fa0.3也設定encapsulation dot1q 3 native 09/17 21:30
26F:推 wst2080:PS: 在Switch接往 Router A 的 Fa 0 上頭的Port 設定 09/17 21:35
27F:→ wst2080:switchport trunk native vlan 3 09/17 21:36
28F:→ UNIEER:先一鞠躬!專業果然還是要交給專業! 09/17 22:50







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:Tech_Job站內搜尋

TOP