华为数通企业面试笔试实验题

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:

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

3.2 配置DHCP

AR 1220:

复制代码
dhcp enable
​
interface GigabitEthernet0/0/0 
 dhcp select interface
 dhcp server excluded-ip-address 192.168.1.253 
 dhcp server lease day 0 hour 8 minute 0 
 dhcp server dns-list 114.114.114.114 
 
interface Vlanif1
 dhcp select interface
 dhcp server excluded-ip-address 192.168.2.253 
 dhcp server lease day 0 hour 8 minute 0 
 dhcp server dns-list 114.114.114.114 

DHCP 配置成功!!!

3.3 配置PPPoE上网

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

AR 1220:

复制代码
interface Dialer1
 link-protocol ppp
 ppp chap user huawei
 ppp chap password cipher huawei123
 ip address ppp-negotiate
 dialer user huawei
 dialer bundle 10
 dialer-group 100
 nat outbound 2000 address-group 1
 
acl number 2000
 rule 5 permit any

AR-Internet:

复制代码
interface GigabitEthernet0/0/0
 ip address 114.114.114.1 255.255.255.0 
 
interface Virtual-Template1
 ppp authentication-mode chap 
 remote address pool 1
 ppp chap user zym
 ip address 100.1.1.1 255.255.255.0 
 
ip pool 1
 gateway-list 100.1.1.1 
 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:

复制代码
[PPPoE-clinet]dis lldp neighbor brief 
Local Intf   Neighbor Dev             Neighbor Intf             Exptime
GE0/0/0      SW1                      GE0/0/1                   112    
Eth0/0/0     SW2                      GE0/0/1 

3.6 telnet配置

AR 1220:

复制代码
aaa 
 local-user zym password cipher zym123
 local-user zym privilege level 15
 local-user zym service-type telnet



[PPPoE-clinet]user-interface vty 0 4
[PPPoE-clinet-ui-vty0-4]dis th
[V200R003C00]
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
 authentication-mode aaa
user-interface vty 16 20
#

测试:

复制代码
<AR-internet>telnet 100.1.1.254
  Press CTRL_] to quit telnet mode
  Trying 100.1.1.254 ...
  Connected to 100.1.1.254 ...

Login authentication


Username:zym
Password:
  ----------------------------------------------------------------------------- 
    
  User last login information:     
  -----------------------------------------------------------------------------
  Access Type: Telnet      
  IP-Address : 100.1.1.1     
  Time       : 2024-06-17 11:14:46-08:00     
  -----------------------------------------------------------------------------
<PPPoE-clinet>

telnet远程访问成功!!!
以上是完整的实验配置,需要已经配置完成的实验拓扑三连斯沃!!!

相关推荐
SugarPPig13 分钟前
PowerShell 查询及刷新环境变量
服务器
石去皿1 小时前
力扣hot100 91-100记录
算法·leetcode·职场和发展
EasyDSS3 小时前
视频监控从安装到优化的技术指南,视频汇聚系统EasyCVR智能安防系统构建之道
大数据·网络·网络协议·音视频
我的作业错错错3 小时前
搭建私人网站
服务器·阿里云·私人网站
rufeike3 小时前
UDP协议理解
网络·网络协议·udp
拉不动的猪3 小时前
前端自做埋点,我们应该要注意的几个问题
前端·javascript·面试
王景程3 小时前
如何测试短信接口
java·服务器·前端
尤物程序猿3 小时前
【2025面试Java常问八股之redis】zset数据结构的实现,跳表和B+树的对比
数据结构·redis·面试
NapleC4 小时前
HarmonyOS:一多能力介绍:一次开发,多端部署
华为·harmonyos
江理不变情4 小时前
海思ISP调试记录
网络·接口隔离原则