Netemu 虚拟化先锋 's Archiver

ljxandmmz 发表于 2007-7-20 10:55

简单的三层路由与二层交换机组合实验

此实验适合于像我一样的初学者,至于高手嘛就没必要再看了,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文件

5156 发表于 2007-7-20 11:28

不分高手低手,这种东西很重要,而且要熟练的

feezd 发表于 2007-7-20 13:23

支持,下来看看。。

btmchung 发表于 2007-7-20 13:57

支持,下来看看。。

yuefei200274 发表于 2007-7-20 13:58

支持,下来看看。。

ljzzhy815 发表于 2007-7-23 11:38

回复 #1 ljxandmmz 的帖子

学习。。。。。。。。

btmchung 发表于 2007-7-23 18:48

支持,下来看看。。

johnny9000 发表于 2007-7-27 16:52

y101 y101 y101 支持下

leexoyo 发表于 2007-7-28 21:56

谢谢啦,我试试。

pollywog 发表于 2007-7-30 17:39

y078 y079 y039

lovegame 发表于 2007-7-31 11:36

\支持,不过,我不知道怎么使这俩个vlan相互通信.

freefdfd 发表于 2007-7-31 12:32

正在学习三层交换,谢谢

[[i] 本帖最后由 freefdfd 于 2007-7-31 12:33 编辑 [/i]]

joinhoo 发表于 2007-7-31 14:03

先下了..

joinhoo 发表于 2007-7-31 14:22

我用了,但是做到vtp domain cisco 跟vtp server这里就做不下去了.

joinhoo 发表于 2007-7-31 14:23

发太快了,没写完,是输入vtp domain cisco这里它提示,domain错误,好像是参数不对吧

2008小周 发表于 2007-8-1 13:50

谢谢楼主分享!

sikiou 发表于 2007-8-1 14:22

行家伸伸手,便知有没有。谢谢分享

joinhoo 发表于 2007-8-1 14:30

楼上的,我没用过真的路由器,但是如果用虚拟出来的,你上面就有错误啊,
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

jtl0927 发表于 2007-8-3 22:41

thanks

thanksthanks

btmchung 发表于 2007-8-5 04:23

dingdingdingdingding

aifei2006 发表于 2007-8-5 15:49

支持,下来看看。。

noneip 发表于 2007-8-7 23:37

[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,不过真实的是可以的

btmchung 发表于 2007-8-8 00:19

支持,下来看看。。

isaisa 发表于 2007-10-10 00:23

基礎學習

基礎練習,受用無窮!!!!!!!!!!!!

btwhy 发表于 2007-10-14 21:21

y133 x29 x41 y106

sam_liao 发表于 2007-10-14 22:31

[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]
版主就是版主啊

shxy_1 发表于 2007-10-15 15:30

支持一下!

dlwcm 发表于 2007-10-21 14:12

顶!!!!!!!!!

wtjz972 发表于 2007-10-28 19:18

对我们刚学交换的帮助很 ,

oneandone 发表于 2007-11-7 11:00

正在学习三层交换,谢谢

Lee 发表于 2007-11-7 13:12

x16 x16 x16 支持

pizarro 发表于 2007-11-7 14:00

谢谢了 支持你

hljzhao 发表于 2007-11-11 15:48

正在学习三层交换,谢谢

南京-回忆 发表于 2007-11-11 16:34

创建vlan有两种方法

chenggnaw 发表于 2007-11-11 18:55

zhichi la

wxguang101 发表于 2007-11-27 09:27

既然下了,就顶一下呀,

hzxiaoyu 发表于 2007-12-6 17:28

这个实验的BIN文件有吗??
能不能也发一个上来。。。。。
还有就是简单的写一下步骤。
正在学习CISCO 交换机。。。要快噢。。。谢谢!!!!!!!!!

jasonlab 发表于 2007-12-6 17:49

y072 y072 y072

wenxinban 发表于 2007-12-16 00:01

x01 x05

wang250490940 发表于 2008-3-25 16:46

呵呵。。看看

haycao 发表于 2008-5-7 23:23

在机房这个碰到最多了

yayade3816 发表于 2008-5-11 10:03

18楼写的有点道理

levone 发表于 2008-5-12 13:38

[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下配置。

lufan79 发表于 2008-10-10 16:33

谢谢喽!~~

skram 发表于 2008-10-30 00:46

支持下!这个东西我是找了有一会了!

slyforever2004 发表于 2008-10-30 14:59

有图吗?下来看看~

michaelwzp 发表于 2008-11-10 23:07

好好学习,天天向上!x23 x23

liony 发表于 2010-7-6 21:31

感谢分享啊.哈哈.y133

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.