简单的三层路由与二层交换机组合实验
此实验适合于像我一样的初学者,至于高手嘛就没必要再看了,x01这个实验用三层交换机SW1做路由,二层交换机SW2下接计算机。
通过VTP功能将三层交换机的VLAN信息传到下层。
参考配置如下:
SW1#vlan database
SW1(vlan)#vlan 2 name v2
SW1(vlan)#vlan 3 name v3
SW1(vlan)#exit
SW1#conf t
SW1(config)#int vlan 2
SW1(config-if)#ip address 10.65.1.2 255.255.0.0
SW1(config-if)#int vlan 3
SW1(config-if)#ip address 10.66.1.2 255.255.0.0
SW1(config-if)#exit
SW1(config)#int f0/4
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport trunk allowed vlan all
SW1(config-if)#end
SW1#conf t
SW1(config)#vtp domain cisco
SW1(config)#vtp server
SW1(config)#ip routing
SW1(config)#exit
SW1#
SW2#conf t
SW2(config)#vtp domain cisco
SW2(config)#vtp client
SW2(config)#int f0/4
SW2(config-if)#switchport mode trunk
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switchport trunk allowed vlan all
SW2(config-if)#description trunk
SW2(config)#int f0/2
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 2
SW2(config-if)#description connected PC1
SW2(config-if)#int f0/6
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 3
SW2(config-if)#description connected PC2
SW2(config-if)#end
SW2#
PC1#conf t
PC1(config)#no ip routing
PC1(config)#int f0/0
PC1(config-if)#ip add 10.65.1.1 255.255.0.0
PC1(config-if)#no shut
PC1(config-if)#speed 100
PC1(config-if)#duplex full
PC1(config-if)#exit
PC1(config)#ip default-gateway 10.65.1.2
PC1(config)#end
PC1#
PC2#conf t
PC2(config)#no ip routing
PC2(config)#int f0/0
PC2(config-if)#ip add 10.66.1.1 255.255.0.0
PC2(config-if)#no shut
PC2(config-if)#speed 100
PC2(config-if)#duplex full
PC2(config-if)#exit
PC2(config)#ip default-gateway 10.66.1.2
PC2(config)#end
PC2#
下面附件为拓朴图及实验文档还有NET文件 不分高手低手,这种东西很重要,而且要熟练的 支持,下来看看。。 支持,下来看看。。 支持,下来看看。。
回复 #1 ljxandmmz 的帖子
学习。。。。。。。。 支持,下来看看。。 y101 y101 y101 支持下 谢谢啦,我试试。 y078 y079 y039 \支持,不过,我不知道怎么使这俩个vlan相互通信. 正在学习三层交换,谢谢[[i] 本帖最后由 freefdfd 于 2007-7-31 12:33 编辑 [/i]] 先下了.. 我用了,但是做到vtp domain cisco 跟vtp server这里就做不下去了. 发太快了,没写完,是输入vtp domain cisco这里它提示,domain错误,好像是参数不对吧 谢谢楼主分享! 行家伸伸手,便知有没有。谢谢分享 楼上的,我没用过真的路由器,但是如果用虚拟出来的,你上面就有错误啊,
SW1#conf t
SW1(config)#vtp domain cisco
SW1(config)#vtp server
这样子在虚拟机里是配置不了的,它会提示名今错误
真是误人子弟啊,害我弄了一个晚上.
应该改成这样子:
SW1#vtp database
SW1(vlan)#vtp domain cisco
SW1(vlan)#vtp server
y101
thanks
thanksthanks dingdingdingdingding 支持,下来看看。。 [quote]原帖由 [i]joinhoo[/i] 于 2007-8-1 14:30 发表 [url=http://www.netemu.cn/bbs/redirect.php?goto=findpost&pid=34433&ptid=3259][img]http://www.netemu.cn/bbs/images/common/back.gif[/img][/url]楼上的,我没用过真的路由器,但是如果用虚拟出来的,你上面就有错误啊,
SW1#conf t
SW1(config)#vtp domain cisco
SW1(config)#vtp server
这样子在虚拟机里是配置不了的,它会提示名今错误
真是误人子弟啊,害 ... [/quote]
模拟器里有些命令是不能用的,象vlan的也一样,不能在特权模式下用,只能进入vlan database下才能建立vlan,不过真实的是可以的 支持,下来看看。。
基礎學習
基礎練習,受用無窮!!!!!!!!!!!! y133 x29 x41 y106 [quote]原帖由 [i]5156[/i] 于 2007-7-20 11:28 发表 [url=http://www.netemu.cn/bbs/redirect.php?goto=findpost&pid=31432&ptid=3259][img]http://www.netemu.cn/bbs/images/common/back.gif[/img][/url]不分高手低手,这种东西很重要,而且要熟练的 [/quote]
版主就是版主啊 支持一下! 顶!!!!!!!!! 对我们刚学交换的帮助很 , 正在学习三层交换,谢谢 x16 x16 x16 支持 谢谢了 支持你 正在学习三层交换,谢谢 创建vlan有两种方法 zhichi la 既然下了,就顶一下呀, 这个实验的BIN文件有吗??
能不能也发一个上来。。。。。
还有就是简单的写一下步骤。
正在学习CISCO 交换机。。。要快噢。。。谢谢!!!!!!!!! y072 y072 y072 x01 x05 呵呵。。看看 在机房这个碰到最多了 18楼写的有点道理 [quote]原帖由 [i]joinhoo[/i] 于 2007-8-1 14:30 发表 [url=http://www.netemu.cn/bbs/redirect.php?goto=findpost&pid=34433&ptid=3259][img]http://www.netemu.cn/bbs/images/common/back.gif[/img][/url]
楼上的,我没用过真的路由器,但是如果用虚拟出来的,你上面就有错误啊,
SW1#conf t
SW1(config)#vtp domain cisco
SW1(config)#vtp server
这样子在虚拟机里是配置不了的,它会提示名今错误
真是误人子弟啊,害我弄 ... [/quote]
这是应为“unzip-c3640-js-mz.124-10.bin” ios版本太低,不支持配置模式下配置VTP
只支持vlan database下配置。 谢谢喽!~~ 支持下!这个东西我是找了有一会了! 有图吗?下来看看~ 好好学习,天天向上!x23 x23 感谢分享啊.哈哈.y133
页:
[1]