ensp-三层网络架构实验

实验拓扑:

在这里插入图片描述

实验要求:
① 用户的网关配置在核心交换机
② 企业内网划分多个vlan ,减少广播域大小,提高网络稳定性
SW4:

[SW4]int e0/0/2
[SW4-Ethernet0/0/2]port link-type access 
[SW4-Ethernet0/0/2]port default vlan 10
[SW4]int gi0/0/1
[SW4-GigabitEthernet0/0/1]port link-type trunk 
[SW4-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 999

汇聚SW2:

[SW2]vlan batch 10 20 999
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]port-g g gi0/0/1 to gi0/0/2 e0/0/1
[SW2-port-group]port link-type trunk 
[SW2-GigabitEthernet0/0/1]port link-type trunk 
[SW2-GigabitEthernet0/0/2]port link-type trunk 
[SW2-Ethernet0/0/1]port link-type trunk 
[SW2-port-group]port trunk allow-pass vlan 10 20 999
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 999
[SW2-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 20 999
[SW2-Ethernet0/0/1]port trunk allow-pass vlan 10 20 999

核心SW1:

[SW1]int gi0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk 
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20 999
[SW1-GigabitEthernet0/0/1]int gi0/0/2
[SW1-GigabitEthernet0/0/2]port link-type trunk 
[SW1-GigabitEthernet0/0/2]port trunk allow-pass vlan 200 999
[SW1-GigabitEthernet0/0/2]qu
[SW1]interface Vlanif 10
[SW1-Vlanif10]ip address 192.168.10.1 24
[SW1-Vlanif10]qu
[SW1]int Vlanif 20
[SW1-Vlanif20]ip address 192.168.20.1 24
[SW1-Vlanif20]qu
[SW1]int Vlanif 200
[SW1-Vlanif200]ip address 192.168.200.1 24

SW5:

[Huawei]int e0/0/2
[Huawei-Ethernet0/0/2]port link-type access 
[Huawei-Ethernet0/0/2]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type trunk 
[Huawei-Ethernet0/0/1]port trunk allow-pass vlan 20

③ 所有设备,在任何位置都可以被telnet远程管理 所有设备
以SW4为例:

[SW4]vlan 999
[SW4-vlan999]qu
[SW4]interface Vlanif 999
[SW4-Vlanif999]ip address 192.168.255.4 24
[SW4-Vlanif999]qu
[SW4]aaa
[SW4-aaa]local-user hcnp password cipher hcnp123 privilege level 3
Info: Add a new user.
[SW4-aaa]qu
[SW4]user-interface vty 0 4
[SW4-ui-vty0-4]authentication-mode aaa

④ 出口配置NAT 先配置三层接口

⑤ 所有用户均为自动获取ip地址

[SW1]ip pool vlan_10
Info:It's successful to create an IP address pool.
[SW1-ip-pool-vlan_10]gateway-list 192.168.10.1
[SW1-ip-pool-vlan_10]network 192.168.10.0 mask 24
[SW1-ip-pool-vlan_10]dns-list 8.8.8.8
[SW1-ip-pool-vlan_10]qu
[SW1]ip pool vlan_20
Info:It's successful to create an IP address pool.
[SW1-ip-pool-vlan_20]network 192.168.20.1 mask 24
[SW1-ip-pool-vlan_20]dns-list 8.8.8.8
[SW1-ip-pool-vlan_20]qu
[SW1]interface Vlanif 10
[SW1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[SW1]interface Vlanif 10
[SW1-Vlanif10]dhcp select global
[SW1-Vlanif10]qu
[SW1]interface Vlanif 20
[SW1-Vlanif20]dhcp select global 

⑥ 企业总部和分支采用PPP 广域网链路连接。并采用CHAP对链路做认证。 接口使用s4/0/0
在这里插入图片描述

⑦ 企业总部和分支采用ospf 路由协议连接。
sw1:
在这里插入图片描述
R1:出口
在这里插入图片描述
R2:
在这里插入图片描述由于配置命令太多,本篇文章只是列出了部分配置命令,其他的请自动探索

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值