HCNA综合实验答案

R1的配置文件

dis cu
[V200R003C00]
#
 sysname R1
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.1.0 0.0.0.255 
 rule 10 permit source 192.168.2.0 0.0.0.255 
 rule 15 permit source 192.168.3.0 0.0.0.255 
 rule 20 permit source 192.168.4.0 0.0.0.255 
#
acl number 3000  
 rule 5 deny tcp source 192.168.2.100 0 destination 192.1.1.100 0 destination-po
rt eq www 
 rule 10 deny tcp source 192.168.3.100 0 destination 192.1.1.100 0 destination-p
ort eq www 
 rule 15 permit ip 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15

#
 nat alg ftp enable
#
interface Dialer1
 link-protocol ppp
 ppp chap user 1
 ppp chap password cipher %$%$N(Cx,}`+O)O(oH6nT$z+,$4f%$%$
 ppp ipcp dns request
 ip address ppp-negotiate
 dialer user user1
 dialer bundle 1
 dialer-group 1
 nat outbound 2000

 nat server protocol tcp global current-interface ftp inside 192.168.4.100 ftp
#
interface GigabitEthernet0/0/0
 traffic-filter inbound acl 3000
#
interface GigabitEthernet0/0/0.10
 dot1q termination vid 10
 ip address 192.168.1.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/0.20
 dot1q termination vid 20
 ip address 192.168.2.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/0.30
 dot1q termination vid 30
 ip address 192.168.3.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/0.40
 dot1q termination vid 40
 ip address 192.168.4.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/1
 pppoe-client dial-bundle-number 1 
 tcp adjust-mss 1200
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
dialer-rule
 dialer-rule 1 ip permit
#
ospf 1 router-id 1.1.1.1 
 area 0.0.0.0 
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1 12.1.1.1
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

PPPOE配置验证

HCNA综合实验答案_第1张图片

easy ip配置验证

HCNA综合实验答案_第2张图片

PPPOE配置文件

dis cu
[V200R003C00]
#
 sysname PPPOE
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#
ip pool PPPOE
 gateway-list 12.1.1.1 
 network 12.1.1.0 mask 255.255.255.0 
 dns-list 8.8.8.8 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user 1 password cipher %$%$gVgtH~aD:VgNwf+Bp>}~mFC$%$%$
 local-user 1 service-type ppp
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface Virtual-Template1
 ppp authentication-mode chap 
 remote address pool PPPOE
 ip address 12.1.1.1 255.255.255.0 
#
interface GigabitEthernet0/0/0
 pppoe-server bind Virtual-Template 1
#
interface GigabitEthernet0/0/1
 ip address 192.1.1.1 255.255.255.0 
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 Virtual-Template1
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

FTP配置文件

dis cu
[V200R003C00]
#
 sysname FTP
 ftp server enable
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load flash:/portalpage.zip
#
 drop illegal-mac alarm
#
vlan batch 10 20 30 40
#
 wlan ac-global carrier id other ac id 0
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user 1 password cipher %$%$Jj~FWqq:*9  local-user 1 privilege level 15
 local-user 1 ftp-directory flash:
 local-user 1 service-type ftp
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
 nat alg ftp enable
#
interface GigabitEthernet0/0/0
 ip address 192.168.4.100 255.255.255.0

#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 GigabitEthernet0/0/0 192.168.4.1
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

SW1配置文件

dis cu
##
vlan batch 10 20 30 40
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type access
 port default vlan 10
#
interface Ethernet0/0/2
 port link-type access
 port default vlan 20
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 30
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 40
#
interface Ethernet0/0/5
 port link-type trunk
 port trunk allow-pass vlan 2 to 4094
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface Ethernet0/0/8
#
interface Ethernet0/0/9
#
interface Ethernet0/0/10
#
interface Ethernet0/0/11
#
interface Ethernet0/0/12
#
interface Ethernet0/0/13
#
interface Ethernet0/0/14
#
interface Ethernet0/0/15
#
interface Ethernet0/0/16
#
interface Ethernet0/0/17
#
interface Ethernet0/0/18
#
interface Ethernet0/0/19
#
interface Ethernet0/0/20
#
interface Ethernet0/0/21
#
interface Ethernet0/0/22
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

SW2配置文件

sy
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sys SW2
[SW2]Q
dis cu
#
sysname SW2
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface Ethernet0/0/8
#
interface Ethernet0/0/9
#
interface Ethernet0/0/10
#
interface Ethernet0/0/11
#
interface Ethernet0/0/12
#
interface Ethernet0/0/13
#
interface Ethernet0/0/14
#
interface Ethernet0/0/15
#
interface Ethernet0/0/16
#
interface Ethernet0/0/17
#
interface Ethernet0/0/18
#
interface Ethernet0/0/19
#
interface Ethernet0/0/20
#
interface Ethernet0/0/21
#
interface Ethernet0/0/22
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

Client配置

HCNA综合实验答案_第3张图片

HCNA综合实验答案_第4张图片

HCNA综合实验答案_第5张图片

HCNA综合实验答案_第6张图片

HCNA综合实验答案_第7张图片

路由互通配置验证

HCNA综合实验答案_第8张图片

HCNA综合实验答案_第9张图片

仅允许client1访问WEB 80端口配置验证

HCNA综合实验答案_第10张图片

HCNA综合实验答案_第11张图片

HCNA综合实验答案_第12张图片

HCNA综合实验答案_第13张图片

HCNA综合实验答案_第14张图片

外网访问FTP配置验证

HCNA综合实验答案_第15张图片



你可能感兴趣的:(HCNA)