免费注册 查看新帖 |

Chinaunix

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

vlan路由问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-11-22 16:34 |只看该作者 |倒序浏览
vlan路由问题
上级单位(10.166.9.1)-----3725 路由器f0/0(10.166.9.36)--------3725 路由器f0/1(10.205.10.1)----------4510交换机g7/32(10.205.10.2)

4510交换机 端口g7/32 属于VALN 400 ,IP地址10.205.10.2
4510交换机vlan划分:10.48.123.X 255.255.255.240 每16个ip地址一个vlan,vlan之间都可路由
                    10.48.124.x 255.255.255.240 每16个ip地址一个vlan,vlan之间都可路由
192.168.10.x  是到另一个单位的路由

3725能ping通任意一个vlan内的主机,vlan400
内的主机能ping通10.166.9.1,其他vlan都不能ping通10。166.9.1


路由器3725

Router#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

O    192.168.10.0/24 [110/2] via 10.205.10.2, 00:18:09, FastEthernet0/1
     172.25.0.0/32 is subnetted, 1 subnets
S       172.25.6.242 [1/0] via 10.166.9.1
     10.0.0.0/8 is variably subnetted, 32 subnets, 3 masks
O       10.48.123.64/28 [110/2] via 10.205.10.2, 00:18:09, FastEthernet0/1
O       10.48.123.80/28 [110/2] via 10.205.10.2, 00:18:09, FastEthernet0/1
O       10.48.124.80/28 [110/3] via 10.205.10.2, 00:18:09, FastEthernet0/1
O       10.48.123.96/28 [110/2] via 10.205.10.2, 00:18:09, FastEthernet0/1
O       10.48.124.96/28 [110/3] via 10.205.10.2, 00:18:10, FastEthernet0/1
S       10.48.123.0/32 is directly connected, FastEthernet0/1
O       10.48.123.0/28 [110/2] via 10.205.10.2, 00:18:10, FastEthernet0/1
S       10.48.124.0/32 is directly connected, FastEthernet0/1
O       10.48.124.0/28 [110/3] via 10.205.10.2, 00:18:10, FastEthernet0/1
O       10.48.123.16/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.124.16/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.123.32/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.124.32/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.123.48/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.124.48/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.123.192/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.124.192/28 [110/3] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.123.208/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.124.208/28 [110/3] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.123.224/28 [110/2] via 10.205.10.2, 00:18:14, FastEthernet0/1
C       10.166.9.0/24 is directly connected, FastEthernet0/0
O       10.48.124.224/28 [110/3] via 10.205.10.2, 00:18:14, FastEthernet0/1
O       10.48.123.240/28 [110/2] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.123.128/28 [110/2] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.124.128/28 [110/3] via 10.205.10.2, 00:18:15, FastEthernet0/1
C       10.205.10.0/28 is directly connected, FastEthernet0/1
O       10.48.123.144/28 [110/2] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.124.144/28 [110/3] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.123.160/28 [110/2] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.124.160/28 [110/3] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.123.176/28 [110/2] via 10.205.10.2, 00:18:15, FastEthernet0/1
O       10.48.124.176/28 [110/3] via 10.205.10.2, 00:18:15, FastEthernet0/1
Router#
Router#show run
Building configuration...

Current configuration : 984 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$3.6f$4sYznsZEnpz/IBWRW4VmH0
!
no aaa new-model
ip subnet-zero
ip cef
!
!
!
no ip domain lookup
no ftp-server write-enable
!
!
!
!
interface FastEthernet0/0
ip address 10.166.9.36 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.205.10.1 255.255.255.240
duplex auto
speed auto
!
router ospf 100
log-adjacency-changes
network 10.48.123.0 0.0.0.255 area 0
network 10.48.124.0 0.0.0.255 area 0
network 10.166.9.0 0.0.0.255 area 0
network 10.205.10.0 0.0.0.255 area 0
!
ip classless
ip route 10.48.123.0 255.255.255.255 FastEthernet0/1
ip route 10.48.124.0 255.255.255.255 FastEthernet0/1
ip route 172.25.6.242 255.255.255.255 10.166.9.1
ip http server
!
access-list 1 permit any
!
line con 0
line aux 0
line vty 0 4
login
!
end

Router#

交换机路由表:
4510-8#sho int g7/32
GigabitEthernet7/32 is up, line protocol is up (connected)
  Hardware is Gigabit Ethernet Port, address is 0011.bb71.83af (bia 0011.bb71.83
af)
  MTU 1500 bytes, BW 100000 Kbit, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s, link type is auto, media type is 10/100/1000-TX
  input flow-control is off, output flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:09, output never, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 0 bits/sec, 0 packets/sec
  5 minute output rate 0 bits/sec, 0 packets/sec
     31860 packets input, 3080733 bytes, 0 no buffer
     Received 16321 broadcasts (13175 multicast)
     0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 input packets with dribble condition detected
     7238879 packets output, 771051074 bytes, 0 underruns
     0 output errors, 0 collisions, 0 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out

4510-8#show ip route
Codes: C - connected, S - static, 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, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.10.0/24 is directly connected, Vlan300
     172.25.0.0/32 is subnetted, 1 subnets
S       172.25.6.242 [1/0] via 10.166.9.1
     172.24.0.0/32 is subnetted, 1 subnets
S       172.24.13.2 [1/0] via 192.168.10.1
     10.0.0.0/8 is variably subnetted, 34 subnets, 3 masks
C       10.48.123.64/28 is directly connected, Vlan5
C       10.48.123.80/28 is directly connected, Vlan6
O       10.48.124.80/28 [110/2] via 10.48.123.6, 00:07:17, Vlan1
C       10.48.123.96/28 is directly connected, Vlan7
O       10.48.124.96/28 [110/2] via 10.48.123.6, 00:07:17, Vlan1
C       10.48.123.0/28 is directly connected, Vlan1
O       10.48.124.0/28 [110/2] via 10.48.123.6, 00:07:17, Vlan1
C       10.48.123.16/28 is directly connected, Vlan2
C       10.48.124.16/28 is directly connected, Vlan17
C       10.48.123.32/28 is directly connected, Vlan3
C       10.48.124.32/28 is directly connected, Vlan18
S       10.131.254.7/32 [1/0] via 192.168.10.1
C       10.48.123.48/28 is directly connected, Vlan4
C       10.48.124.48/28 is directly connected, Vlan19
S       10.166.9.36/32 [1/0] via 10.205.10.1
C       10.48.123.192/28 is directly connected, Vlan13
O       10.48.124.192/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
C       10.48.123.208/28 is directly connected, Vlan14
O       10.48.124.208/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
C       10.48.123.224/28 is directly connected, Vlan15
S       10.166.9.1/32 [1/0] via 10.205.10.1
O       10.166.9.0/24 [110/2] via 10.205.10.1, 00:10:17, Vlan400
O       10.48.124.224/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
C       10.48.123.240/28 is directly connected, Vlan16
C       10.48.123.128/28 is directly connected, Vlan9
O       10.48.124.128/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
C       10.205.10.0/28 is directly connected, Vlan400
C       10.48.123.144/28 is directly connected, Vlan10
O       10.48.124.144/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
S       10.48.253.27/32 [1/0] via 192.168.10.1
C       10.48.123.160/28 is directly connected, Vlan11
O       10.48.124.160/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
C       10.48.123.176/28 is directly connected, Vlan12
O       10.48.124.176/28 [110/2] via 10.48.123.6, 00:10:17, Vlan1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP