交换机的基本配置和跨交换机划分vlan.docVIP

  • 4
  • 0
  • 约3.12千字
  • 约 5页
  • 2019-09-16 发布于江苏
  • 举报

交换机的基本配置和跨交换机划分vlan.doc

实验二 交换机的基本配置和跨交换机划分VLAN 实验目的 1.掌握交换机的基本命令。 2.掌握基于端口划分VLAN原理。 3.根据实际需求设计出基于端口划分的VLAN。 实验内容 交换机的基本配置 交换机命令模式: 1.、用户模式:用户最初的默认模式,只能执行简单的命令 2、特权模式:进入:在用户模式下enable 返回:exit disable 可以执行所有IOS提供的命令 3、全局模式conf t 4、接口模式interface fastethernet 0/1 (二)跨交换机划分VLAN 1.绘制拓扑图 2.配置PC的IP、掩码、网关 3.交换机配置 (1)划分VLAN (2)将接口划分到对应的VLAN中 (3)设置交换机端口的状态trunk 4.测试 实验步骤 (一)交换机的基本配置 1.绘制拓扑图 2.配置交换机的用户名和进入特权模式的密码 Switchen Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname lidan lidan(config)#en password 123 % Ambiguous command: en password 123 lidan(config)#enable password 123 lidan(config)#enable secret 456 3.进入接口模式,设置接口数据率为100Mb/s lidan(config)#interface fastethernet 0/1 lidan(config-if)#speed 100 4.配置交换机的IP lidan(config-if)#interface vlan 1 lidan(config-if)#ip address 192.168.1.1 255.255.255.0 lidan(config-if)#no shutdown 5. 配置交换机远程登录的密码和用户数目 lidan(config-if)#line vty 0 4 lidan(config-line)#password 123 lidan(config-line)#login lidan(config-line)#end 6.配置PC机的IP 7. 测试 (二)跨交换机划分VLAN 绘制拓扑图 配置PC的IP、掩码、网关 3.交换机配置 (1)划分VLAN (2)将接口划分到对应的VLAN中 (3)设置交换机端口的状态trunk Switch Switchenable Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 2 Switch(config-vlan)#exit Switch(config)#vlan 3 Switch(config-vlan)#exit Switch(config)#interface fa 0/1 Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit Switch(config)#interface fa 0/2 Switch(config-if)#switchport access vlan 3 Switch(config-if)#exit Switch(config)#interface fa 0/24 Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up Switch(config-if)#end %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa

文档评论(0)

1亿VIP精品文档

相关文档