HCNA综合实验   1.SW1 和 SW2 之间的直连链路配置链路聚合
2.公司内部业务网段为 Vlan10 和 Vlan20;Vlan10 是市场部,Vlan20 是技术部,要求对 Vlan 进行命名以便识别;PC1 属于 Vlan10,PC2 属于 Vlan20,Vlan30 用于 SW1 和 SW2 建立 OSPF 邻居;Vlan111 为 SW1 和 R1 的互联 Vlan,Vlan222 为 SW2 和 R2 的互联 Vlan
3.所有交换机相连的端口配置为 Trunk,允许相关流量通过
4.交换机连接 PC 的端口配置为边缘端口
5.按图示分区域配置 OSPF 实现公司内部网络全网互通,ABR 的环回口宣告进骨干区域;业务网段不允许出现协议报文
6.R1 上配置默认路由指向互联网,并引入到 OSPF
7.R1 通过双线连接到互联网,配置 PPP-MP,并配置双向 chap 验证
8.配置 EASY IP,只有业务网段 192.168.1.0/24 和 192.168.2.0/24 的数据流可以通过 R1 访问互联网
9.R1 开启 TELNET 远程管理,使用用户 abc 登录,密码 abc,只允许技术部远程管理 R1

实验过程:
SW3:
interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20

interface Ethernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20

interface Ethernet0/0/3
port link-type access
port default vlan 10

interface Ethernet0/0/4
port link-type access
port default vlan 20
vlan 10
description jsb //打上VLAN注释
vlan 20
description cwb //打上VLAN注释

SW1:
interface Vlanif10
ip address 192.168.1.254 255.255.255.0

interface Vlanif20
ip address 192.168.2.253 255.255.255.0

interface Vlanif30
ip address 10.1.21.11 255.255.255.0

interface Vlanif111
ip address 10.1.11.11 255.255.255.0

interface GigabitEthernet0/0/1
port link-type access
port default vlan 111

interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20

OSPF配置
ospf 1 router-id 10.1.1.1
silent-interface GigabitEthernet0/0/2 //静默接口 不让OSPF报文在这个接口下传输
area 0.0.0.1
network 192.168.1.254 0.0.0.0
network 192.168.2.253 0.0.0.0
network 10.1.11.11 0.0.0.0
network 10.1.21.11 0.0.0.0
network 10.1.1.1 0.0.0.0

Rth配置
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 10 to 222 //让这一条聚合链路可以通过VLAN