HCIA综合实验

HCIA综合实验

在这里插入图片描述

实验要求:

1.ISP路由器只配置IP地址
2.内部整个网络基于192.168.1.0/24进行规划
3.R1/R2之间启动OSPF协议,单区域
4.PC1-PC4自动获取IP地址
5.PC1-PC4可以访问PC5:PC1不行
6.PC2出口只有一个公网IP
7.test1设备可以登录内网telnet服务器,test2 不行

实验步骤:

  • 配置SW1
[SW1-GigabitEthernet0/0/2]port link access
[SW1-GigabitEthernet0/0/2]port default vlan 2
[SW1-GigabitEthernet0/0/2]int g 0/0/3
[SW1-GigabitEthernet0/0/3]port link access
[SW1-GigabitEthernet0/0/3]port default vlan 3

  • 配置SW2
[SW2]int g 0/0/2
[SW2-GigabitEthernet0/0/2]port link-type access
[SW2-GigabitEthernet0/0/2]port default vlan 2

[SW2-GigabitEthernet0/0/2]int g 0/0/3
[SW2-GigabitEthernet0/0/3]port link-type  access 
[SW2-GigabitEthernet0/0/3]port default vlan 3

[SW1]int g 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type trunk
[SW1-GigabitEthernet0/0/1]port trunk allow-pass vlan all 

[SW2]int g 0/0/1		
[SW2-GigabitEthernet0/0/1]port link-type trunk
[SW2-GigabitEthernet0/0/1]port trunk allow-pass vlan a

  • 配置R1
[R1]int g 0/0/1.1
[R1-GigabitEthernet0/0/1.1]ip add 192.168.1.33 24
[R1-GigabitEthernet0/0/1.1]dot1q termination vid 2
[R1-GigabitEthernet0/0/1.1]arp broadcast  enable

[R1-GigabitEthernet0/0/1.1]int g 0/0/1.2
[R1-GigabitEthernet0/0/1.2]ip add 192.168.1.65 27
[R1-GigabitEthernet0/0/1.2]dot1q termination  vid  3
[R1-GigabitEthernet0/0/1.2]arp broadcast  enable
  • 配置R2
[R2-GigabitEthernet0/0/1]int g 0/0/2.1
[R2-GigabitEthernet0/0/2.1]ip add 192.168.1.97 27
[R2-GigabitEthernet0/0/2.1]dot1q  termination  vid  2
[R2-GigabitEthernet0/0/2.1]int g 0/0/2.2
[R2-GigabitEthernet0/0/2.2]ip add 192.168.1.129 27
[R2-GigabitEthernet0/0/2.2]dot1q termination vid 3
[R2-GigabitEthernet0/0/2.2]arp broadcast  enable 

  • R1配置DHCP
[R1]dhcp enable 
[R1]ip pool aa
[R1-ip-pool-aa]network 192.168.1.32 mask 27	
[R1-ip-pool-aa]gateway-list 192.168.1.33 
[R1-ip-pool-aa]dns-list 8.8.8.8
[R1]int g 0/0/1.1
[R1-GigabitEthernet0/0/1.1]dhcp  select global 
  • R2配置DHCP
[R2]dhcp enable 
[R2]ip pool bb
[R2-ip-pool-bb]network 192.168.1.96 mask 27
[R2-ip-pool-bb]gateway-list  192.168.1.97 
[R2-ip-pool-bb]dns-list 114.114.114.114
[R2]ip pool cc
[R2-ip-pool-cc]network 192.168.1.128 mask 27
[R2-ip-pool-cc]gateway-list 192.168.1.128
[R2-ip-pool-cc]dns-list 8.8.8.8
[R2]int g0/0/2.1	
[R2-GigabitEthernet0/0/0.1]dhcp  select global 
[R2-GigabitEthernet0/0/0.1]int g 0/0/2.2
Rr2-GigabitEthernet0/0/0.2]dhcp  select global
  • R1、R2配置ospf协议
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1-area-0.0.0.0]network  192.168.1.0 0.0.0.255
[R2]ospf 1 router-id  2.2.2.2
[R2-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R2-ospf-1]default-route-advertise always 
  • 开启telnet服务
[R1]aaa
[R1-aaa]local-user an privilege level 15 password cipher 123456
[R1-aaa]local-user an service-type telnet 
[R1]user-interface vty  0 4
[R1-ui-vty0-4]authentication-mode aaa
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值