目录
实验一、配置STP与VTP 2
实验二、静态路由 10
实验三、RIP路由协议 13
实验四、RIPv1与EIGRP在不连续网络下的比较 20
实验五、访问控制 26
实验六、静态、动态NAT与PAT 30
实验七、帧中继链路上运行EIGRP 34
实验八、背靠背帧中继 39
实验九、配置ISDN DDR 43
实验一、配置STP与VTP
环境:三台交换机,形成一个全互连结构,sw3为2950,sw1和sw2为2900xl;
要求:设置sw3为VTP server,设置sw1和sw2为VTP client,域名为cisco,密码为:cisco,在server创建vlan 10(name:aa)和vlan20(name:bb);设置sw3为vlan1的根桥,sw1为vlan10的根桥,sw2为vlan20的根桥;
初始化配置:
Sw#show vlan à查看vlan信息
Sw#Delete à用此命令将vlan删除
Sw#show startup-config à查看一下NVRAM是否保存了配置
Sw#erase startup-config à清空配置文件
Sw#reload à重新启动交换机
sw>enable
sw#config terminal
sw(config)#hostname sw1
sw1(config)#no ip domain-lookup à关闭域名查找
sw1(config)#line console 0
sw1(config-line)#logging synchronous à命令输入达到同步
sw1(config-line)#exec-timeout 0 0 à设置永不超时
sw1(config-line)#exit
步骤一、配置VTP
sw3的配置:
sw3(config)#vtp mode server à在sw3上启用vtp server
Device mode already VTP SERVER.
sw3(config)#vtp domain cisco à设置域名
Changing VTP domain name from NULL to cisco
sw3(config)#vtp password cisco à设置密码
Setting device VLAN database password to cisco
sw1的配置:
sw1#vlan database à进入vlan数据库
sw1(vlan)#vtp client à启用VTP client模式
Setting device to VTP CLIENT mode.
sw1(vlan)#vtp domain cisco à作用到cisco域中
Changing VTP domain name from NULL to cisco
sw1(vlan)#vtp password cisco à设置密码与server端相同
Setting device VLAN database password to cisco.
sw1(vlan)#exit à使配置生效
In CLIENT state, no apply attempted.
Exiting....
sw2的配置:
sw2#vlan database
sw2(vlan)#vtp client
Setting device to VTP CLIENT mode.
sw2(vlan)#vtp domain cisco
Changing VTP domain name from NULL to cisco
sw2(vlan)#vtp password cisco
Setting device VLAN database password to cisco.
sw2(vlan)#exit
sw2#
步骤二、启用干道端口
sw3的配置:
sw3(config)#interface fa0/23
sw3(config-if)#switchport mode trunk à启用trunk端口
sw3(config-if)#interface fa0/24
sw3(config-if)#switchport mode trunk
sw1的配置:
sw1(config)#interface fa0/23
sw1(config-if)#switchport trunk encapsulation dot1q à封装干道协议
sw1(config-if)#switchport mode trunk à启用trunk模式
sw
a实验手册 来自淘豆网m.daumloan.com转载请标明出处.