免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4135 | 回复: 14
打印 上一主题 下一主题

请问这是为什么(有关4006的问题)? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-20 21:26 |只看该作者 |倒序浏览

我没有设置去10.41.55.0/24网段的路由,但是其他三个网段却都能与10.41.55.0/24网段的主机通信(已经排除通过默认路由的可能性),请问为什么???另外如果我的配置还有什么其他问题一起帮我指出。
配置如下:

Console>; (enable) sh conf
This command shows non-default configurations only.
Use 'show config all' to show both default and non-default configurations.
.......
................


..................


..

begin
!
# ***** NON-DEFAULT CONFIGURATION *****
!
!
#time: Tue Jan 21 2003, 05:02:06 Beijing
!
#version 5.5(1)
!
!
#system web interface version(s)
!
#frame distribution method
set port channel all distribution mac both
!
#vtp
set vtp domain cisco
set vlan 1 name default type ethernet mtu 1500 said 100001 state active
set vlan 2 name VLAN0002 type ethernet mtu 1500 said 100002 state active
set vlan 3 name VLAN0003 type ethernet mtu 1500 said 100003 state active
set vlan 4 name VLAN0004 type ethernet mtu 1500 said 100004 state active
set vlan 1002 name fddi-default type fddi mtu 1500 said 101002 state active
set vlan 1004 name fddinet-default type fddinet mtu 1500 said 101004 state activ
e stp ieee
set vlan 1005 name trnet-default type trbrf mtu 1500 said 101005 state active st
p ibm
set vlan 1003 name token-ring-default type trcrf mtu 1500 said 101003 state acti
ve mode srb aremaxhop 7 stemaxhop 7 backupcrf off
!
#ip
set interface sc0 1 192.168.1.1/255.255.255.0 192.168.1.255

set interface sl0 192.168.1.150 255.255.255.0
set interface sl0 down
set interface me1 down
set ip route 0.0.0.0/0.0.0.0         192.168.1.254
!
#syslog
set logging level cops 2 default
!
#ntp
set timezone Beijing 8 0
!
#set boot command
set boot config-register 0x2
set boot system flash bootflash:cat4000.5-5-1.bin
!
#port channel
set port channel 4/1-2 156
set port channel 1/1-2 157
set port channel 4/3-8 177
set port channel 4/9-12 178
set port channel 4/13-16 179
set port channel 4/17-20 180
set port channel 4/21-24 181
set port channel 4/25-28 182
set port channel 4/29-32 183
set port channel 4/33-34 184
!
#module 1 : 2-port 1000BaseX Supervisor
set trunk 1/1  on dot1q 1-1005
set trunk 1/2  on dot1q 1-1005
!
#module 4 : 34-port Router Switch Card
set vlan 8    4/29-30
set vlan 11   4/27-28
set vlan 12   4/3-26,4/31-34
set trunk 4/1  nonegotiate dot1q 1-1005
set trunk 4/2  nonegotiate dot1q 1-1005
set port channel 4/1-2 mode on
!
end


L3模块配置:

Router#sh run
Building configuration...

Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Router
!
!
ip subnet-zero
!
!
!
interface Port-channel1
no ip address
no ip directed-broadcast
hold-queue 300 in
!
interface Port-channel1.1
encapsulation dot1Q 1 native
ip address 192.168.1.254 255.255.255.0
no ip redirects
no ip directed-broadcast
!
interface Port-channel1.2
encapsulation dot1Q 2
ip address 192.168.2.254 255.255.255.0
no ip redirects
no ip directed-broadcast
!
interface Port-channel1.3
encapsulation dot1Q 3
ip address 10.41.55.254 255.255.255.0
no ip redirects
no ip directed-broadcast
!
interface Port-channel1.4
encapsulation dot1Q 4
ip address 192.168.0.254 255.255.255.0
no ip redirects
no ip directed-broadcast
!
interface FastEthernet1
no ip address
no ip directed-broadcast
!
interface GigabitEthernet1
no ip address
no ip directed-broadcast
!
interface GigabitEthernet2
no ip address
no ip directed-broadcast
!
interface GigabitEthernet3
no ip address
no ip directed-broadcast
no negotiation auto
channel-group 1
!
interface GigabitEthernet4
no ip address
no ip directed-broadcast
no negotiation auto
channel-group 1
!
router eigrp 1
passive-interface FastEthernet1
network 192.168.0.0
network 192.168.1.0
network 192.168.2.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.2
!
arp 127.0.0.2 0005.32bf.ae00 ARPA
!
line con 0
transport input none
line aux 0
line vty 0 4
login
!
end

论坛徽章:
0
2 [报告]
发表于 2003-01-21 09:49 |只看该作者

请问这是为什么(有关4006的问题)?

上边配置看不出什么问题,把show ip route 的结果贴出来。估计一眼就能看出来

论坛徽章:
0
3 [报告]
发表于 2003-01-21 10:27 |只看该作者

请问这是为什么(有关4006的问题)?

sh ip route 显示分别如下:

Console>; (enable) show ip route
Fragmentation   Redirect   Unreachable
-------------   --------   -----------
enabled         enabled    enabled

The primary gateway: 192.168.1.254
Destination      Gateway          RouteMask    Flags   Use       Interface
---------------  ---------------  ----------   -----   --------  ---------
default          192.168.1.254    0x0          UG      4749        sc0
192.168.1.0      192.168.1.1      0xffffff00   U       32748       sc0
255.255.255.0    192.168.1.150    0x0          UH      0           sl0

Router#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
       U - per-user static route, o - ODR

Gateway of last resort is 192.168.0.2 to network 0.0.0.0

C    127.0.0.0/8 is directly connected, INBAND0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.41.55.0 is directly connected, Port-channel1.3
C    192.168.0.0/24 is directly connected, Port-channel1.4
C    192.168.1.0/24 is directly connected, Port-channel1.1
C    192.168.2.0/24 is directly connected, Port-channel1.2
S*   0.0.0.0/0 [1/0] via 192.168.0.2

论坛徽章:
0
4 [报告]
发表于 2003-01-21 11:44 |只看该作者

请问这是为什么(有关4006的问题)?

从你的配置来看要通信绝对是不可能的!!!
至少我看不出来

论坛徽章:
0
5 [报告]
发表于 2003-01-21 12:22 |只看该作者

请问这是为什么(有关4006的问题)?

trace一下看看是怎么出去的不就行了

论坛徽章:
0
6 [报告]
发表于 2003-01-21 13:00 |只看该作者

请问这是为什么(有关4006的问题)?

dui

论坛徽章:
0
7 [报告]
发表于 2003-01-21 18:02 |只看该作者

请问这是为什么(有关4006的问题)?

如果你10.41.55.0 网段机器的网关设置为10.41.55.254
192.168.0.0网段的机器网关设为192.168.0.254,那么这两个网段就能访问。因为你设置了这些网段的地址,这就是3层交换。不用设路由就可以

论坛徽章:
0
8 [报告]
发表于 2003-01-21 20:29 |只看该作者

请问这是为什么(有关4006的问题)?

楼上说的对,因为你10那个段是3层交换的一个接口,默认就产生一条路由
你在路由表里也能看到那些直连的网段,当寻找路由的时候3层设备发现自己本身就连着10这个网段,当然自己就转发了。

论坛徽章:
0
9 [报告]
发表于 2003-01-22 17:42 |只看该作者

请问这是为什么(有关4006的问题)?

那象楼上两位所说究竟应该如何设置?岂不是vlan间通信不要设置路由??(究竟应该如何设置),请各位帮帮忙!

论坛徽章:
0
10 [报告]
发表于 2003-01-23 09:27 |只看该作者

请问这是为什么(有关4006的问题)?

L2交换使用mac表,L3交换使用VLAN表,当一个具有三层交换功能的设备设置了IP地址时,VLAN间通信通过查找VLAN表可以达到.因为vlan表里有vlan id 和port映射关系
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP