单臂路由不通。。。求指点
ccie吧
全部回复
仅看楼主
level 1
KISS293 楼主
现在 PC1可以ping通自己的网关 但是ping不通pc2的网关和ip
pc2 也是一样 平通pc1
下面是拓扑图
下面是配置
Router#show running-config
Building configuration...
Current configuration : 661 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
!
interface FastEthernet0/0.1
encapsulation dot1Q 2
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 192.168.2.1 255.255.255.0
end
-----------------------------------------------------------------------------
Gateway of last resort is not set
C 192.168.1.0/24 is directly connected, FastEthernet0/0.1
C 192.168.2.0/24 is directly connected, FastEthernet0/0.2
-----------------------------------------------------------------------------
Switch#show running-config
Building configuration...
Current configuration : 1046 bytes
!
version 12.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch
!
!
spanning-tree mode pvst
!
interface FastEthernet0/1
switchport mode trunk
------------------------------------------------------
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8, Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21, Fa0/22, Fa0/23
Fa0/24
2 VLAN0002 active Fa0/2
3 VLAN0003 active Fa0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
2 enet 100002 1500 - - - - - 0 0
3 enet 100003 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
!
interface FastEthernet0/2
switchport access vlan 2
interface FastEthernet0/3
switchport access vlan 3
!
------------------------------------------------------------------------------------
跪求指点
2014年05月23日 14点05分 1
level 3
路由器的fa0/0口没有no shutdown吧!不知道对不对?
2014年05月26日 02点05分 2
level 2
1、R1 f0/0 有没有 no shutdown
2、R1有没有VLAN信息
3、Switch f0/1是不是turnk
从你这配置里大概能整出三个点 试试看
2014年05月28日 10点05分 3
1、你没看到路由器的f0/0物理接口已经UP了、 2、R1下 show run 默认没有相关信息。 3、是,他不是敲了么。 我觉得逗比楼主两个PC的网关没有配置。
2014年07月06日 01点07分
擦,楼下已有大神。
2014年07月06日 01点07分
level 1
交换机的上行口试下允许vlan 2 和3 通过
2014年05月28日 23点05分 4
level 9
路由器f0/0没有配trunk
2014年05月29日 01点05分 5
level 9
你换直通线试试
2014年06月09日 15点06分 6
level 1
"PC1可以ping通自己的网关",说明R1的F0/0口肯定是up的。
“interface FastEthernet0/1
switchport mode trunk”
配置里明明写了SW的F0/1口是配置了trunk。默认是放行所有vlan的。
R1上“encapsulation dot1Q 2,“encapsulation dot1Q 3””接口已经封装了,还要什么vlan信息?
“路由器f0/0没有配trunk”?????懒得解释了。。。。。
楼上几个回复显然初学者。
楼主的配置没问题,但PC1和PC2上要写默认网关,不写默认网关是不能跨网段访问的。
2014年06月21日 02点06分 7
level 2
单臂路由的子接口没加啊。
交换机上配置
int fa 0/0
sw mo tr
exit
!
vlan database
vlan 2
vlan 3
exit
!
conf t
int fa 0/2
sw ac vlan 2
!
int fa 0/3
sw ac vlan 3
路由器上配置
int fa 0/0
sw tr en dot1q
sw mo tr
!
no ip add
no sh
int fa 0/0.1
en dot1q 2
ip add 192.168.1.1 255.255.255.0
int fa 0/0.2
en dot1q 3
ip add 192.168.2.1 255.255.255.0
2014年07月28日 03点07分 8
level 1
  如果楼主配置正确 trunk也起了  那么把路由器上的 虚拟子接口改一下就好了
直接  int  f0/0.2
en  802.1q
        ip add 192.168.1.1 255.255.255.0
       no sh
       int   f0/0.3
       en  802.1q
       ip add 192.168.2.1 255.255.255.0
       no sh
   楼主试试
2014年08月03日 15点08分 9
1