题目
- 绘制网络拓扑结构
注意:由于采用 VTP 管理网络中的 VLAN,所以,交换机的级联端口及划分 VLAN 的端口要标注清楚。 - 设计网络设备名称
交换机的名称格式:Switch3560->zhangpa-S-L3-1 switch1->zhangpa-S-L2-1
计算机的名称格式:PC11->zhangpa-PC11 服务器的名称格式:DNS->zhangpa-DNS - VTP 参数设计
VTP 域名:zhangpa。3560 交换机工作在 VTP 服务器模式,其余三台二层交换机工作在 VTP 客户模式。
注意 VTP 域名大小写敏感。 - 局域网 VLAN 和 IP 地址设计
表 8-1 计算机的网络参数设计表
画出拓扑
手动划分vlan
交换机-交换机–>Trunk Mode
交换机-终端 -->Access Mode
Switch>enable //进入交换机的特权模式相当于root
Switch#configure terminal //进入全局配置模式,
Enter configuration commands, one per line. End with CNTL/Z.
//分别创建VLAN 10, 20, 30和40
Switch(config)#vlan 10
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#exit
Switch(config)#vlan 30
Switch(config-vlan)#exit
Switch(config)#vlan 40
Switch(config-vlan)#exit
Switch(config)#interface f0/3//指定要配置的接口
Switch(config-if)#switchport mode access//设置接口f0/3的模式为访问模式
Switch(config-if)#switchport access vlan 20//接口f0/3指定到VLAN 20
Switch(config-if)#no shutdown //打开接口以传输数据。