雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 10804|回复: 10

[讨论/求助] 单臂路由配置失败

[复制链接]
发表于 2008-5-15 14:04:19 | 显示全部楼层 |阅读模式
Router#sh run
Building configuration...
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
!
ip subnet-zero
!
!
!
!
!
!
!
!
interface Serial0/0
no ip address
no ip directed-broadcast
shutdown
!
interface Ethernet0
no ip address
no ip directed-broadcast
!
interface Ethernet0.10
encapsulation dot1q 10
ip address 192.168.10.254 255.255.255.0
!
interface Ethernet0.20
encapsulation dot1q 20
ip address 192.168.20.254 255.255.255.0
!
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 4
!
no scheduler allocate
end
==================
Switch#sh run
!
Version 12.1
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Switch
!
!
!
ip subnet-zero
spanning-tree extend system-id
!
!
!
!
!
!
!
!
interface FastEthernet0/1
switchport access vlan 10
!
interface FastEthernet0/2
switchport access vlan 20
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
switchport mode trunk
!
vtp domain bigdomain
!
interface Vlan 1
no ip address
no ip route-cache
!
vlan 10 name VLAN0010
vlan 20 name VLAN0020
!
ip classless
no ip http server
!
!
!
!
line con 0
transport input none
line aux 0
line vty 0 15
!
no scheduler allocate
end
=======================
C:>ipconfig
  HELP
     Manipulates ip address for Workstation.
     IPCONFIG [/ip] [/dg]
     /ip         Adds the ip address and subnet mask to the workstation
     /dg        Adds the default gateway to the workstation
  Examples:
     ¢   ipconfig /ip  157.1.1.12 255.0.0.0
     ¢   ipconfig /dg 157.1.1.1
  Boson BOSS 5.0 IP Configuration
     Ethernet adapter Local Area Connection:
        IP Address. . . . . . . . . . . . : 192.168.10.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.10.254
======================
C:>ipconfig
  HELP
     Manipulates ip address for Workstation.
     IPCONFIG [/ip] [/dg]
     /ip         Adds the ip address and subnet mask to the workstation
     /dg        Adds the default gateway to the workstation
  Examples:
     ¢   ipconfig /ip  157.1.1.12 255.0.0.0
     ¢   ipconfig /dg 157.1.1.1
  Boson BOSS 5.0 IP Configuration
     Ethernet adapter Local Area Connection:
        IP Address. . . . . . . . . . . . : 192.168.20.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.20.254

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| 发表于 2008-5-15 14:09:59 | 显示全部楼层
做的单笔路由器试验,可客户机怎么也ping不通网关和其他vlan的客户端
麻烦大家给参谋参谋

switch划分两个新vlan10:int fa0/1 ---pc1                          vlan20:int fa0/2 ---pc2         trunk:int fa0/12   dot1q
router 分了两个子接口:

interface Ethernet0.10
encapsulation dot1q 10
ip address 192.168.10.254 255.255.255.0

interface Ethernet0.20
encapsulation dot1q 20
ip address 192.168.20.254 255.255.255.0   

pc1---switch fa0/1
     Ethernet adapter Local Area Connection:
        IP Address. . . . . . . . . . . . : 192.168.10.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.10.254
pc2---switch fa0/2
        IP Address. . . . . . . . . . . . : 192.168.20.1
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.20.254

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2008-5-15 15:05:30 | 显示全部楼层
Ther configuration is correct. check if there is any phasical failure.

The router will be connected to a switch via a FastEthernet port (or higher).

The router port cannot be a regular Ethernet port, since the router port will need the ability to send and receive data at the same time.

try the lab again with a router which has fastethernet ports.
 楼主| 发表于 2008-5-15 15:56:06 | 显示全部楼层
之前我用的是2600的路由器,只有普通的以太口。做了多次后,一咬牙,换了个4500的路由器,成功了。上次做VTP试验的时候,用pack模拟器的时候总是不成功,后来换做boson,成功了。今天应该是物理端口速率影响的。可,2600却可以配置子接口。能配置却又不行。模拟器还真的只是模拟的!
发表于 2008-5-15 18:30:20 | 显示全部楼层
问题蛮多的~~254应该是广播地址吧~貌似不可做VLAN的默认网关。
看你的 sw   trunk 链路的封装写了没?
sw的默认网关也没起~~
发表于 2008-5-15 22:25:20 | 显示全部楼层
恩我来翻译一下大邹的..
他的意思是叫你换个有FASTETHERNAT接口的路由器
原因是The router port cannot be a regular Ethernet port?
  路由端口不能做为正常的以太网口?
不懂拉...反正我理解是交换机是FastEhernet口,的,比路由器的口快
所以通不了,
可以通过设置来调节速度么???我记得好象没学过:)
发表于 2008-5-16 00:36:40 | 显示全部楼层
不能在E0口上做TRUNK....只能在F口或者以上的口上做TRUNK
发表于 2008-5-17 12:26:38 | 显示全部楼层
interface Ethernet0.10
encapsulation dot1q 10
ip address 192.168.10.254 255.255.255.0
!
interface Ethernet0.20
encapsulation dot1q 20
ip address 192.168.20.254 255.255.255.0
!




--------------、
----------------    做单臂是不能用以太网。。。。。。。

[ 本帖最后由 Power 于 2008-5-17 12:28 编辑 ]
发表于 2008-5-17 18:03:33 | 显示全部楼层
单臂路由要求最低为100Mbps
发表于 2008-5-18 11:36:09 | 显示全部楼层
原帖由 Alienrock 于 2008-5-15 15:05 发表
Ther configuration is correct. check if there is any phasical failure.

The router will be connected to a switch via a FastEthernet port (or higher).

The router port cannot be a regular Ethernet ...



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-12-23 21:58 , Processed in 0.094255 second(s), 19 queries , Gzip On.

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