论校园网设备配置的操作步骤

上传人:鲁** 文档编号:508505993 上传时间:2022-07-24 格式:DOC 页数:18 大小:155.50KB
返回 下载 相关 举报
论校园网设备配置的操作步骤_第1页
第1页 / 共18页
论校园网设备配置的操作步骤_第2页
第2页 / 共18页
论校园网设备配置的操作步骤_第3页
第3页 / 共18页
论校园网设备配置的操作步骤_第4页
第4页 / 共18页
论校园网设备配置的操作步骤_第5页
第5页 / 共18页
点击查看更多>>
资源描述

《论校园网设备配置的操作步骤》由会员分享,可在线阅读,更多相关《论校园网设备配置的操作步骤(18页珍藏版)》请在金锄头文库上搜索。

1、 . 论校园网设备配置的操作步骤- -日期: / 校园网设备配置的操作步骤路由器A的配置:1 配置路由器主机名2Red-Giantenable(注:从用户模式进入特权模式)Red-Giant#configure terminal (注:从特权模式进入全局配置模式)Red-Giant(config)#hostname A (注:将主机名配置为“A”)A(config)#2配置路由器远程登陆密码A(config)# line vty 0 4(注:进入路由器vty0至vty4虚拟终端线路模式)A(config-line)#loginA(config-line)#password star (注:将路

2、由器远程登陆口令设置为“star”)3配置路由器特权模式口令A(config)#enable password star(明文方式进入)或:A(config)#enable secret star(加密方式进入)(注:将路由器特权模式口令配置为“star”)4为路由器各接口分配IP地址A(config)#interface fastethernet 0 注:进入路由器fastethernet 0的接口配置模式A(config-if)#ip address 172.16.1.1 255.255.255.0 注:设置路由器fastethernet 0的IP地址为172.16.1.1,对应的子网掩码

3、为255.255.255.0A(config-if)#no shut(注意要打开端口,不要忘记操作)注:手工打开物理接口。A(config)#interface fastethernet 1 注:进入路由器fastethernet 1的接口配置模式A(config-if)#ip address 172.16.2.2 255.255.255.0注:设置路由器fastethernet 1的IP地址为172.16.2.2,对应的子网掩码为255.255.255.0 注:手工打开物理接口。测试结果1.查看路由器端口为up,up2.两台主机分别ping与其直连的路由器的Fastethernet口,应为通

4、3.从Administrator主机 ping WWW服务器,结果应为通。验证命令1、show run 2、show controllers s 0 3、show int4、show ip int brief 5、ping 6、telnet 注意事项通过show contr s 0来查看该端是DCE还是DTE,DCE端需要配置时钟速率,否则接口线协议为down。交换机操作VLAN配置:实验名称:VLAN本交换机隔离实验设备:S3550-24(1台)实验目的:通过划分PORT VLAN实现本交换端口隔离实验时间:30分钟SWITCH#configure terminal 注:进入交换机全局配置模

5、式SWITCH(config)# vlan 10 注:创建vlan 10SWITCH(config-vlan)# name test10 注:将Vlan 10命名为test10SWITCH(config)# vlan 20 注:创建vlan 20SWITCH(config-vlan)# name test20 注:将Vlan 20命名为test20SWITCH(config-if)# interface fastethernet 0/5 注:进入fastethernet 0/5的接口配置模式SWITCH(config-if)# switch access vlan 10注:将fastether

6、net 0/5端口加入vlan 10中SWITCH(config-if)# interface fastethernet 0/15 注:进入fastethernet 0/15的接口配置模式SWITCH(config-if)# switch access vlan 20 注:将fastethernet 0/15端口加入vlan 20中测试结果PC1和PC2设成192.168.10.0/24网段的地址, 在划VLAN之前可以Ping通。划分VLAN之后,PC1 与PC 2 不能相互ping 通验证命令Show vlan注意事项:清空交换机原有vlan配置:delete flash:config.t

7、extdelete flash:vlan.dat实验名称:VLAN/802.1Q跨交换机VLAN 实验设备:S3550-24(2台)实验目的:通过802.1Q实现VLAN跨交换机实验时间:30分钟交换机Switch1:Switch#configure terminal 注:进入交换机全局配置模式Switch(config)# hostname Switch1 注:给交换机命名为switch1Switch1(config)# vlan 10 注:创建vlan 10Switch1(config-vlan)# name test10 注:将Vlan 10命名为test10Switch1(config

8、)# vlan 20 注:创建vlan 20Switch1(config-vlan)# name test20 注:将Vlan 20命名为test20 Switch1(config-if)# interface fastethernet 0/5 注:进入fastethernet 0/5的接口配置模式Switch1(config-if)# switch access vlan 10 注:将fastethernet 0/5端口加入vlan 10中Switch1(config-if)# interface fastethernet 0/15 注:进入fastethernet 0/15的接口配置模式S

9、witch1(config-if)# switch access vlan 20 注:将fastethernet 0/15端口加入vlan 20中Switch1(config-if)# interface fastethernet 0/24 注:进入fastethernet 0/24的接口配置模式Switch1(config-if)# switchport mode trunk 注:将fastethernet 0/24设为tag vlan模式交换机Switch2:Switch#configure terminal 注:进入交换机全局配置模式Switch(config)# hostname Sw

10、itch2 注:给交换机命名 switch2Switch2(config)# vlan 10 注:创建vlan 10Switch2(config-vlan)# name test10 注:将Vlan 10命名为test10Switch2(config-if)# interface fastethernet 0/5 注:进入fastethernet 0/5的接口配置模式Switch2(config-if)# switch access vlan 10 注:将fastethernet 0/5端口加入vlan 10中Switch2(config-if)# interface fastethernet

11、 0/24 注:进入fastethernet 0/24的接口配置模式Switch2(config-if)# switchport mode trunk 注:将fastethernet 0/24设为tag vlan模式测试结果:PC1与PC3地址都设成192.168.10.0/24的地址PC2地址设成192.168.20.0/24的地址当PC1与PC3都分别接在两台交换机的f 0/5口时,即在同一Vlan中,可互相ping 通.当PC2与PC1,PC3不在同一vlan中则不通验证命令:show vlanshow int f0/24 switchport 注意事项:清空交换机原有配置:delete

12、 flash:config.textdelete flash:vlan.dat实验名称:VLAN/802.1QVLAN间通信实验设备:S3550-24(2台)实验目的:接上面实验(2),通过三层交换机实现vlan间互相通信。实验时间:30分钟配置方法:第一步:分别创建每个VLAN三层SVI端口,并分配IP地址:Switch(config)# interface vlan 注:创建虚拟VLANSwitch(config-if)# ip address 第二步:将每个VLAN主机的网关指定为本VLAN接口地址实验步骤:交换机Switch1:Switch#configure terminal 注:进

13、入交换机全局配置模式Switch(config)# hostname Switch1 注:给交换机命名Switch1(config)# int vlan 10 注:创建虚拟接口vlan 10Switch1(config-if)#ip address 192.168.10.254 255.255.255.0注:配置虚拟接口vlan 10的地址为192.168.10.254Switch1(config-if)#exit 注:返回到全局配置模式Switch1(config)# int vlan 20 注:创建虚拟接口vlan 20Switch1(config-if)#ipaddress 192.168.20.254 255.255.255.0注:配置虚拟接口vlan 20的地址为192.168.20.254测试结果:将PC1和PC3的默认网关设置为192.168.10.254; 将PC2的默认网关设置为192.168.20.254.不同VLAN的主机可以互相PING通验证命令:Show vlanShow int f 0/24 switchportShow ip int 注意事项:一定要设置PC的网关。交换网络中的冗余链路的实验实验名称:生成树802

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 建筑/环境 > 施工组织

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号