免费注册 查看新帖 |

Chinaunix

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

vlan问题,请教高人 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-06-28 17:57 |只看该作者 |倒序浏览
我做的vlan如图:
红色为vlan 2,蓝色为vlan 3,白色代表默认的vlan 1
交换机配置:
interface FastEthernet0/1
switchport access vlan 2
!         
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 3
!
interface FastEthernet0/4
switchport access vlan 3
!
interface FastEthernet0/5
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!         
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface VLAN1
no ip address
no ip directed-broadcast
no ip route-cache
!
!
line con 0
transport input none
stopbits 1
line vty 0 4
login
line vty 5 15
login
!         
end


Switch#show vlan
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    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, Gi0/1,
                                                Gi0/2
2    test2                            active    Fa0/1, Fa0/2
3    test3                            active    Fa0/3, Fa0/4
1002 fddi-default                     active   
1003 token-ring-default               active   
1004 fddinet-default                  active   
1005 trnet-default                    active   

ok,测试下vlan之间的机器通讯正常!在FastEthernet0/5配置trunk,
如show run所示!
配置路由器(c2600),show run如下
Router#show run
Building configuration...
略...
interface Ethernet0/0
no ip address
half-duplex
!
interface Ethernet0/0.1
encapsulation dot1Q 1 native
ip address 172.16.10.1 255.255.255.0
!
interface Ethernet0/0.2
encapsulation dot1Q 2
ip address 172.16.20.1 255.255.255.0
!
interface Ethernet0/0.3
encapsulation dot1Q 3
ip address 172.16.30.1 255.255.255.0
!
ip classless
ip http server
ip pim bidir-enable
略...

配置vlan 2中一台机器ip为172.16.20.10,此机器能ping通172.16.20.1
配置vlan 3中一台机器ip为172.16.30.10,此机器能ping通172.16.30.1
但是问题出在vlan 1中
vlan 1中的机器(172.16.10.10)却不能ping 通172.16.10.1
vlan 1中的机器却能互ping通,请教问题出在什么地方!

4545.gif (7.79 KB, 下载次数: 49)

4545.gif

论坛徽章:
0
2 [报告]
发表于 2005-06-28 18:28 |只看该作者

vlan问题,请教高人

把VLAN1改成VLAN4或许就可以了。

论坛徽章:
0
3 [报告]
发表于 2005-06-28 21:09 |只看该作者

vlan问题,请教高人

在路由器上能不能ping 通10段的机器呢?看配置看不出什么问题,

论坛徽章:
0
4 [报告]
发表于 2005-06-29 09:28 |只看该作者

vlan问题,请教高人

路由器上设路由了码?
另好象中继 路由器E0必须是FastEthernet

论坛徽章:
0
5 [报告]
发表于 2005-06-29 09:41 |只看该作者

vlan问题,请教高人

路由器上仅仅能ping通172.16.10.1,不能ping通10段;
路由器上设置了路由20段的机器能ping通30段ip
,就是10段机器不能ping通路由器的172.16.10.1,极度郁闷~!

论坛徽章:
0
6 [报告]
发表于 2005-06-29 10:49 |只看该作者

vlan问题,请教高人

可能是交换机默认VLAN1和路由器不匹配给闹的,所以建议把VLAN1改成VLAN4
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP