实验报告hcna综合实验
interface Ethernet0/0/5
port link-typeaccess
port defaultvlan 20
interface Eth-Trunk3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
3.3SWA
#
interface Eth-Trunk1
eth-trunk 3
2SWA :
创建链路聚合(1通道和2通道)
#
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/1
eth-trunk1
interface Eth-Trunk2
interface Eth-Trunk3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/1
eth-trunk 2
#
interface Ethernet0/0/2
port default vlan 10
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass v20;
二层交换机
Sys
Sysname2SWB
创建vlan20
2. 2SWB
vlan batch 20
三层交换机
3SWA
#
interface Eth-Trunk1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
#
interface Eth-Trunk3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
eth-trunk 2
#
interface GigabitEthernet0/0/1
eth-trunk 3
#
interface GigabitEthernet0/0/2
eth-trunk 3
要求三:
1三层交换机
3SWA
gvrp
#
interface Eth-Trunk1
port link-type trunk
三层交换机
3SWA
设置生成树的优先级为主优先
stpinstance 0root primary
2swA
设置生成树的优先级为次优先
stpinstance 0root secondary
2SWB
堵塞成功
要求
边界路由器
BRA
interface GigabitEthernet0/0/1
ip address 192.168.0.129 255.255.255.224
#
interface GigabitEthernet0/0/2
eth-trunk 1
interface Eth-Trunk2
#
interface Ethernet0/0/1
eth-trunk2
#
interface Ethernet0/0/2
eth-trunk2
3 SWB
创建链路聚合(1通道和2通道)
HCNA实验手册
组名:一班一组
班级:网络安全一班
实验
实验目的
1掌握hcna所学的所有技术的原理
2掌握HCNA所学的所有技术的命令配置
1所使用的技术:vlanacl三层技术 natgvrpvrrpstpip
技术原理:
1vlan:虚拟局域网
2acl:访问控制列表
3三层技术:实验vlan间互通
4nat:网络地址转换
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface Eth-Trunk3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
要求二
创建链路聚合(1通道和3通道)
BRB
ospf 1
default-route-advertise
area 0.0.0.0
network 192.168.0.130 0.0.0.0
三层交换机
3SWA
ospf 1
area 0.0.0.0
network 192.168.0.161 0.0.0.0
port trunk allow-pass vlan 2 to 4094
gvrp
#
interface Eth-Trunk3
port link-type trunk
port trunk allow-pass vlan 2 to 4094
gvrp
要求四:阻塞内部二层交换机B上面向内部交换机A的两个端口;
gvrp
interface GigabitEthernet0/0/5
eth-trunk 1
#
interface GigabitEthernet0/0/6
eth-trunk 1
#
interface GigabitEthernet0/0/7
eth-trunk 3
#
interface GigabitEthernet0/0/8
5gvrp:vlan注册技术
6vrrp:虚拟路由冗余协议
7stp:生成树
8ip:网际协议:
实验拓扑:
操作步骤
要求
1.内部客户端A属于VLAN 10
二层交换机
Sys
SYSname2SWA
1.2SWA
创建vlan
vlan batch 10
interface Ethernet0/0/5
port link-type access
vrrp vrid 1 virtual-ip 192.168.0.131
vrrp vrid 1 priority 200
BRB
interface GigabitEthernet0/0/1
ip address 192.168.0.130 255.255.255.224
vrrp vrid 1 virtual-ip 192.168.0.131
要求六:内部路由使用OSPF协议;
边界路由器
BRA
ospf 1
default-route-advertise
area 0.0.0.0
network 192.168.0.129 0.0.0.0
--------------------------------------------------------