设为首页收藏本站language 语言切换
查看: 2427|回复: 7
收起左侧

单臂路由配置

[复制链接]
发表于 2014-5-23 22:14:07 | 显示全部楼层 |阅读模式
我在做单臂路由的时候 PC1可以ping通自己的网关但是 ping不通 pc2
pc2ping不通pc1

下面是扩扑图
QQ截图20140523220707.jpg
还有配置
R1
---------------------------------------------------------------------------------
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
!

-----------------------------------------------------------------------------
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

----------------------------------------------------------------------------------------------
pc1
Pinging 192.168.2.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

 楼主| 发表于 2014-5-23 22:14:30 | 显示全部楼层
跪求大神解答
沙发 2014-5-23 22:14:30 回复 收起回复
回复 支持 1 反对 0

使用道具 举报

发表于 2014-5-24 09:12:38 | 显示全部楼层
路过看一看
板凳 2014-5-24 09:12:38 回复 收起回复
回复 支持 1 反对 0

使用道具 举报

发表于 2014-5-24 20:54:13 | 显示全部楼层
R1
int Fa0/0.1   vlan-type dotlq vid 2      ip add xxxxxxx
int Fa0/0.2   vlan-type dotlq vid 3      ip add xxxxxxx
SW1
int Fa0/1     port link-type trunk      port trunk pemit vlan all
vlan 2   port Fa0/2      vlan 3  port Fa0/3      在PC上配上相应的网关跟ip 网管要跟路由器上的虚接口对应
    这个是H3C设备的配置犯法
地板 2014-5-24 20:54:13 回复 收起回复
回复 支持 0 反对 1

使用道具 举报

发表于 2014-6-10 10:52:10 | 显示全部楼层
可能是路由器的fa0/0没有no sh吧
5# 2014-6-10 10:52:10 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-7-4 13:14:18 | 显示全部楼层
swit 的 trunk口 是不是要 封装一下 swit en dot1q 那句
6# 2014-7-4 13:14:18 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2014-7-8 11:56:03 | 显示全部楼层
switchport trunk allowed vlan all 这个命令让你吃了
8# 2014-7-8 11:56:03 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-12 12:29 , Processed in 0.068274 second(s), 25 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表