当前位置:   article > 正文

华为数通企业面试笔试实验题_dns租期为8小时

dns租期为8小时

1. 笔试题

1.1 实验拓扑

1.2 实验要求

  • 公司A为小型销售公司,需要实现基本上网功能,蓝色部分为外网线,提供DHCP服务 DnsServer:114.114.114.114

  • 帮助网管排查某一台计算机在某一台交换机的某个端口

2. 操作步骤

  1. 配置路由器相关的LAN侧接口IP地址

  2. 配置DHCP项,要求有PC1与PC2属不同网段 网关; 排除地址(200以后段); 租期8小时 DNS:114.114.114.114

  3. 配置路由器接口为PPPOE Client上网,启用端口PAT-NAT

  4. PC1与PC2均可ping通www.baidu.com(配置AR1220默认路由)

  5. 帮助网管在多条线路中找到PC1; PC2所属交换机端口 (注,需写出关键命令原理,提示:基于ARP+MAC表项)

  6. 配置AR1220的远程登录服务(telnet)

3. 操作配置

3.1 配置IP地址

AR1220:

  1. sysname PPPoE-clinet
  2. interface GigabitEthernet0/0/0
  3. ip address 192.168.1.254 255.255.255.0
  4. [PPPoE-clinet-Ethernet0/0/0]ip add
  5.                               ^
  6. Error: Unrecognized command found at '^' position.
  7. //发现在e0/0/0口是无法配置ip地址!!!
  8. //这是企业面试故意设置的坑!!!
  9. //说明这不是三层接口,而是二层接口,是不能直接配置ip地址的要在vlanif上配置
  10. interface Vlanif1
  11. ip address 192.168.2.254 255.255.255.0

3.2 配置DHCP

AR 1220:

  1. dhcp enable
  2. interface GigabitEthernet0/0/0
  3. dhcp select interface
  4. dhcp server excluded-ip-address 192.168.1.253
  5. dhcp server lease day 0 hour 8 minute 0
  6. dhcp server dns-list 114.114.114.114
  7. interface Vlanif1
  8. dhcp select interface
  9. dhcp server excluded-ip-address 192.168.2.253
  10. dhcp server lease day 0 hour 8 minute 0
  11. dhcp server dns-list 114.114.114.114

 

 

 

 

DHCP 配置成功!!!

3.3 配置PPPoE上网

你接下来是不是直接配置g0/0/1口了,在正常情况下是这样的,但是我们的要求是实现pppoe拨号上网,所以我们配置一个Dialer口更为合适

AR 1220:

  1. interface Dialer1
  2. link-protocol ppp
  3. ppp chap user huawei
  4. ppp chap password cipher huawei123
  5. ip address ppp-negotiate
  6. dialer user huawei
  7. dialer bundle 10
  8. dialer-group 100
  9. nat outbound 2000 address-group 1
  10. acl number 2000
  11. rule 5 permit any

AR-Internet:

  1. interface GigabitEthernet0/0/0
  2. ip address 114.114.114.1 255.255.255.0
  3. interface Virtual-Template1
  4. ppp authentication-mode chap
  5. remote address pool 1
  6. ppp chap user zym
  7. ip address 100.1.1.1 255.255.255.0
  8. ip pool 1
  9. gateway-list 100.1.1.1
  10. network 100.1.1.0 mask 255.255.255.0

DNS.Server:

测试:

 

可以通过pppoe拨号上网!!!

3.4 DNS服务

测试:

成功访问www.baidu.com!!!

3.5 查找

AR 1220:

[PPPoE-clinet]lldp enable

SW1:

[SW1]lldp enable

SW2:

[SW2]lldp enable

AR 1220:

  1. [PPPoE-clinet]dis lldp neighbor brief
  2. Local Intf Neighbor Dev Neighbor Intf Exptime
  3. GE0/0/0 SW1 GE0/0/1 112
  4. Eth0/0/0 SW2 GE0/0/1

3.6 telnet配置

AR 1220:

  1. aaa
  2. local-user zym password cipher zym123
  3. local-user zym privilege level 15
  4. local-user zym service-type telnet
  5. [PPPoE-clinet]user-interface vty 0 4
  6. [PPPoE-clinet-ui-vty0-4]dis th
  7. [V200R003C00]
  8. #
  9. user-interface con 0
  10. authentication-mode password
  11. user-interface vty 0 4
  12. authentication-mode aaa
  13. user-interface vty 16 20
  14. #

测试:

  1. <AR-internet>telnet 100.1.1.254
  2. Press CTRL_] to quit telnet mode
  3. Trying 100.1.1.254 ...
  4. Connected to 100.1.1.254 ...
  5. Login authentication
  6. Username:zym
  7. Password:
  8. -----------------------------------------------------------------------------
  9. User last login information:
  10. -----------------------------------------------------------------------------
  11. Access Type: Telnet
  12. IP-Address : 100.1.1.1
  13. Time : 2024-06-17 11:14:46-08:00
  14. -----------------------------------------------------------------------------
  15. <PPPoE-clinet>

telnet远程访问成功!!!

以上是完整的实验配置,需要已经配置完成的实验拓扑三连斯沃!!!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/759628
推荐阅读
相关标签
  

闽ICP备14008679号