【問題】cissco router one physical port 分兩個VLAN



贊助商連結


頁 : [1] 2

yangac
2006-06-21, 11:29 AM
請問一個問題:
我有C1721的Router 只有一個LAN port,要設成兩個VLAN,且要誏兩個VLAN能通(透過Router),某一VLAN要設成Default Gateway.
目前我的設定如下:
conf t
int f0.1
encap dot1q 1
ip addr 192.168.4.1 255.255.255.0
int f0.2
encap dot1q 2
ip addr 192.168.9.1 255.255.255.0
exit
ip route 0.0.0.0 0.0.0.0 192.168.9.2

由 Router ping 192.168.4.2 可,但Router ping 192.168.9.2 就不行!
這是什麼原因呢?

贊助商連結


Lettuce
2006-06-21, 02:51 PM
自身兩個IP都能PING到麻?(192.168.4.1 & 192.168.9.1)

如果可以. 試試看帶Source IP去Ping看看吧.

yangac
2006-06-21, 08:24 PM
自身兩個IP都能PING到麻?(192.168.4.1 & 192.168.9.1)

如果可以. 試試看帶Source IP去Ping看看吧.

所有的links 都up, FE0 up, line protocol up
no ip addr in FE0
自身的IP均可ping 到,但唯獨192.168.9.2 (Default Gateway) ping 不到。如何帶Source IP去Ping???
我的目的是用Router 來當作轉Traffic 的Device,沒有VLAN switch,就只有Hosts,Router, and Firewall

Lettuce
2006-06-21, 08:55 PM
所有的links 都up, FE0 up, line protocol up
no ip addr in FE0
自身的IP均可ping 到,但唯獨192.168.9.2 (Default Gateway) ping 不到。如何帶Source IP去Ping???

請參考.
Extended Ping (http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124tcr/tcf_r/cf_06ht.htm#wp1032361)

另一個可能是. Switch的部份設定有誤.

yangac
2006-06-21, 09:59 PM
請參考.
Extended Ping (http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124tcr/tcf_r/cf_06ht.htm#wp1032361)

另一個可能是. Switch的部份設定有誤.

I don't have VLAN Switch, so I don't need to configure it. What I have is transparent switches. I wanna let 2 switches in different VLANs, and one of them will be the default route to the outbound.

Lettuce
2006-06-22, 08:45 AM
I don't have VLAN Switch, so I don't need to configure it. What I have is transparent switches. I wanna let 2 switches in different VLANs, and one of them will be the default route to the outbound.

麻煩你把圖畫出來吧. 會清楚一點. :D

沒有Switch的話. 是直接把Router跟PC對接? :|||:

yangac
2006-06-22, 11:29 AM
我把圖畫了一下:

Lettuce
2006-06-22, 02:49 PM
我把圖畫了一下:

只有一個實體介面是怎麼分接上下兩路的.. :|||:

yangac
2006-06-22, 06:28 PM
我的想法是希望用vlan的方式讓2個subnets 互通,目前只是作成2個vlan,可是為什麼192.168.9.2 從router ping 不到? 一定要想成上下兩路嗎? 用vlan的方式把兩段Ethernet subnets 連起來不能做到嗎?

Lettuce
2006-06-22, 06:38 PM
:D
我的想法是希望用vlan的方式讓2個subnets 互通,目前只是作成2個vlan,可是為什麼192.168.9.2 從router ping 不到? 一定要想成上下兩路嗎? 用vlan的方式把兩段Ethernet subnets 連起來不能做到嗎?

如果只是想這樣做. 當然可以呀.

這跟怎麼想是兩回事. :|||:

但. 確定你中間的設備支援802.1Q麻? :D

如果你沒有L2的Switch也沒關係. 只是改成Firewall跟Host的網卡都要支援802.1Q而以. :D