实验要求:
一个公司3个部门(行政、财务、销售),分别在3个不同的位置办公,要求规划五个VLAN, 分别安网络管理、行政、销售、财务部和服务器群组,然后实现五个VLAN间的通信,最后为访问互连网和远程分支机构提供路由。
实验一、设备连接,网线排查。
实验二、VLAN规划与VLAN间通信。
( 一 )规划VLAN.
可以手工在S3560上划分四个VLAN,然后在S2950上划分相应的VLAN, 也可以采用VTP协议自动学习。
A .(1) 将S3550设为服务器,定义域为rich.
S3560(config)# vtp domain rich
# vtp mode server
(2) 划分4个vlan .(vlan 2,3,4,10)
S3560(config)# vlan 2
# vlan 3
# vlan 4
# vlan 10
(3) 开启主干(f0/1-3)
S3560(config)# int range f0/1 - 3
# sw trunk encap dot1q
# sw mode trunk
(4)端口f0/20-22划入vlan 10
S3560(config)# int range f0/20 - 22
# sw mode acc
# sw acc vlan 10
B.(1)将S2950加入域,设为客户端
S2950(config)#vlan data
# vtp domain rich
# vtp mode client
(2)开启主干f0/24
S2950(config)# int f0/24
# sw trunk encap dot1q
# sw mode trunk
(3)将端口划到vlan
S2950(config)# int range f0/3-4
# sw mode acc
# sw acc vlan 2
同样,分别F0/5-6划到VLAN 3, 将F0/7-8划到VLAN 4即可。
( 二 )实现VLAN间的通信。
(1)打开路由功能
S3560(config )# ip routing
(2)设置VSI接口,建立路由表
S3560(config )#int vlan 1
#ip add 172.16.1.251 255.255.255.0
#no shut
S3560(config )#int vlan 2
#ip add 172.16.2.251 255.255.255.0
#no shut
同样,分别为VLNA3,4,10设置相应的IP地址。
( 三 ) 为访问互连网和远程分支机构提供路由
1. 将接口F0/23,F0/24设为路由接口,并配置IP地址。
S3560(config )#int f0/23
#no swithcport
#ip add 172.16.11.1 255.255.255.0
#no shut
同样,f0/24的地址设为172.16.12.1 255.255.255.0
2. 为访问互连网设置默认路由
S3560(config )#ip route 0.0.0.0 0.0.0.0 172.16.11.2
3. 配置OSPF 协议
S3560(config )#router osfp 1
#network 172.16.0.0 0.0.255.255 area 8
实验三、 PPP实验
公司向中国网通申请了一条2M的DDN专线,实现郑州总部到西安分公司之间的连接,要求:采用PPP协议,CHAP验证和OSPF协议.
1.配置接口E0
2.配置接口S0
3.设置验证密码(密码:cisco )
4.配置OSPF协议
实验四、 NAT地址转换
配置路由器R1,实现网站172.16.10.2静态转换为IP100.1.1.2/29, 内网用户共享接口IP100.1.1.1/29上网,vlan4为财务部不能上网。
1.配置接口E0和S0
2.设置路由
3.设置静态转换
4.设置动态转换