思科的综合实战练习

简介: 思科的综合实战练习

思科的综合实战练习

需求

实现所有VLAN的PC都通过DHCP获取IP地址

实现所有的PC都可以互联互通

实现所有的PC都可以访问服务器0

拓扑图

aa2e4a86580349f495fc3e061aa6dd92.png

配置思路

1)配置接入层交换机:创建vlan、接口加入vlan

2)配置核心交换机:配置vlan、trunk、接口IP、dhcp、路由

3)配置路由器:接口IP、路由

配置命令

第一步:配置接入层交换机(SW1/SW2/SW3)SW1(config)#vlan10SW1(config-vlan)#vlan20SW1(config-vlan)#vlan30SW1(config-vlan)#exitSW1(config)#interfacef0/1SW1(config-if)#switchportmodeaccessSW1(config-if)#switchportaccessvlan10SW2(config)#vlan10SW2(config-vlan)#vlan20SW2(config-vlan)#vlan30SW2(config-vlan)#exitSW2(config)#interfacef0/1SW2(config-if)#switchportmodeaccessSW2(config-if)#switchportaccessvlan20SW3(config)#vlan10SW3(config-vlan)#vlan20SW3(config-vlan)#vlan30SW3(config-vlan)#exitSW3(config)#interfacef0/1SW3(config-if)#switchportmodeaccessSW3(config-if)#switchportaccessvlan30第二步:配置核心交换机hx-1(config)#vlan10hx-1(config-vlan)#vlan20hx-1(config-vlan)#vlan30hx-1(config-vlan)#exithx-1(config)#ipdhcppoolvlan10hx-1(dhcp-config)#network192.168.10.0255.255.255.0hx-1(dhcp-config)#default-router192.168.10.254hx-1(dhcp-config)#dns-server8.8.8.8hx-1(dhcp-config)#ipdhcppoolvlan20hx-1(dhcp-config)#network192.168.20.0255.255.255.0hx-1(dhcp-config)#default-router192.168.20.254hx-1(dhcp-config)#dns-server8.8.8.8hx-1(dhcp-config)#ipdhcppoolvlan30hx-1(dhcp-config)#network192.168.30.0255.255.255.0hx-1(dhcp-config)#default-router192.168.30.254hx-1(dhcp-config)#dns-server8.8.8.8hx-1(dhcp-config)#exithx-1(config)#interfacerangeg1/0/1-3hx-1(config-if)#switchporttrunkencapsulationdot1qhx-1(config-if)#switchportmodetrunkhx-1(config-if)#interfaceg1/0/4hx-1(config-if)#noswitchporthx-1(config-if)#ipaddress192.168.40.1255.255.255.0hx-1(config-if)#interfacevlan10hx-1(config-if)#ipaddress192.168.10.254255.255.255.0hx-1(config-if)#interfacevlan20hx-1(config-if)#ipaddress192.168.20.254255.255.255.0hx-1(config-if)#interfacevlan30hx-1(config-if)#ipaddress192.168.30.254255.255.255.0hx-1(config-if)#exithx-1(config)#iproute192.168.50.0255.255.255.0192.168.40.2hx-1(config)#iprouting第三步:配置路由器R1(config)#interfaceg0/0R1(config-if)#ipaddress192.168.40.2255.255.255.0R1(config-if)#noshutdownR1(config-if)#interfaceg0/1R1(config-if)#ipaddress192.168.50.254255.255.255.0R1(config-if)#noshutdownR1(config-if)#exitR1(config)#iproute192.168.10.0255.255.255.0192.168.40.1R1(config)#iproute192.168.20.0255.255.255.0192.168.40.1R1(config)#iproute192.168.30.0255.255.255.0192.168.40.1第四步:验证结果:1)PC通过DHCP获取的IP地址2)不同VLAN内的PC都可以互访3)所有的PC都可以访问server0


相关文章
|
5月前
|
运维 监控 安全
云擎技术--公司要怎么进行企业组网?有什么好的解决方案?
随着企业信息化发展,高效的企业网络成为提高办公效率的关键。企业组网方式包括MPLS专线、VPN和SD-WAN。MPLS专线提供可靠和安全的连接,适合预算充足的大企业和政府单位。VPN成本低、部署快,适合小型企业远程办公,但安全性和体验有限。SD-WAN作为新型解决方案,以其灵活性、低成本、快速部署和便捷运维成为企业首选,预计到2023年将有90%的企业采用。SD-WAN能优化访问体验,支持云服务和移动办公,降低运维难度。
43 0
|
5月前
|
人工智能 供应链 安全
ICT深度观察——开源和软件供应链论坛正式举行
2023年12月21日,由中国信息通信研究院(以下简称“中国信通院”)主办的“2024中国信通院ICT深度观察——开源和软件供应链论坛”在京召开。
ICT深度观察——开源和软件供应链论坛正式举行
|
网络虚拟化 网络架构
思科的综合实战练习
思科的综合实战练习
78 0
下一篇
无影云桌面