综合练习一
题目要求:
实验范图
实现PC机之间互通
配置思路:
配置过程:
配置终端设备及3700交换机
实现此案例需要按照如下步骤进行。
1)配置PC的IP地址和网关
2) 配置SW1/5/6的vlan为10/20/30,交换机之间的链路为Trunk,与PC间为Access
3)配置SW2/3/7的vlan为40/50,交换机之间的链路为Trunk,与PC间为Access
4) 配置SW4/8/9的vlan为60/70/80,交换机之间的链路为Trunk,与PC间为Access
5)配置R1/R2/R3的接口IP地址
6)配置每个 VLAN 的网关接口IP地址
SW1为vlan10/20/30的网关设备:
interfacevlanif10ipaddress192.168.10.25424quitinterfacevlanif20ipaddress192.168.20.25424quitinterfacevlanif30ipaddress192.168.30.25424quit
SW2为 vlan 40 的网关:
interfacevlanif40ipaddress192.168.40.25424quit
SW3为 vlan 50 的网关:
interfacevlanif50ipaddress192.168.50.25424quit
R3的 gi0/0/0为 vlan60/70/80 的网关:
interfacegi0/0/0.60dot1qterminationvid60arpbroadcastenableipaddress1921.68.60.25424quitinterfacegi0/0/0.70dot1qterminationvid70arpbroadcastenableipaddress1921.68.70.25424quitinterfacegi0/0/0.80dot1qterminationvid80arpbroadcastenableipaddress1921.68.80.25424quit
7)在SW1与R1之间添加 vlan 100,实现两者互通
SW1:
vlan100quitinterfacegi0/0/1portlink-typeaccessportdefaultvlan100quitinterfacevlanif100ipaddress192.168.100.10024quitiproute-static0.0.0.00192.168.100.1
R1:
interfacegi0/0/0ipaddress192.168.100.124quitiproute-static192.168.10.024192.168.100.100iproute-static192.168.20.024192.168.100.100iproute-static192.168.30.024192.168.100.100iproute-static192.168.40.024192.168.12.2iproute-static192.168.50.024192.168.12.2iproute-static192.168.60.024192.168.12.2iproute-static192.168.70.024192.168.12.2iproute-static192.168.80.024192.168.12.2
8)在SW2与R2之间添加 vlan 400,实现两者互通
SW2:
vlan400quitinterfacegi0/0/1portlink-typeaccessportdefaultvlan400quitinterfacevlanif400ipaddress192.168.200.324quitiproute-static0.0.0.00192.168.200.2
R2:
interfacegi0/0/0ipaddress192.168.200.224quitiproute-static192.168.40.024192.168.200.3
9)在SW3与R2之间添加 vlan 500,实现两者互通
SW3:
vlan500quitinterfacegi0/0/1portlink-typeaccessportdefaultvlan500quitinterfacevlanif500ipaddress192.168.255.324quitiproute-static0.0.0.00192.168.255.2
R2:
interfacegi4/0/0ipaddress192.168.255.224quitiproute-static192.168.50.024192.168.255.3iproute-static192.168.10.024192.168.12.1iproute-static192.168.20.024192.168.12.1iproute-static192.168.30.024192.168.12.1iproute-static192.168.60.024192.168.23.3iproute-static192.168.70.024192.168.23.3iproute-static192.168.80.024192.168.23.3
10)在R3上配置路由条目信息,实现与其他PC所在的网段的互通
iproute-static192.168.10.024192.168.23.2iproute-static192.168.20.024192.168.23.2iproute-static192.168.30.024192.168.23.2iproute-static192.168.40.024192.168.23.2iproute-static192.168.50.024192.168.23.2iproute-static192.168.60.024192.168.23.2
11)测试不同网段的PC之间的连通性
经测试PC机全部互通
参考命令