HCIP 静态路由

附文件链接:
链接:https://pan.baidu.com/s/17LjpH2wmT5g5EBFDurlxHQ
提取码:2021

请添加图片描述
在这里插入图片描述
先划分地址:
至少需要9段地址
取三位,分八段 在将其中一段分为两段
000 00 /27
001 32 /27
010 64 /27
011 96 /27
100 128 /27
101 160 176 /28
110 192 /27
111 224 /27

搭建拓扑:
在这里插入图片描述
进行配置

实验结果:
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

以下是个路由器配置(交换机不做配置):

sysname R1

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

set cpu-usage threshold 80 restore 75

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

interface Ethernet0/0/0

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 GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.1.9 255.255.255.252

interface NULL0

interface LoopBack1
ip address 192.168.1.33 255.255.255.224

interface LoopBack2
ip address 192.168.1.65 255.255.255.224

ip route-static 0.0.0.0 0.0.0.0 192.168.1.2
ip route-static 0.0.0.0 0.0.0.0 192.168.1.13
ip route-static 192.168.1.96 255.255.255.224 192.168.1.2
ip route-static 192.168.1.128 255.255.255.224 192.168.1.2
ip route-static 192.168.1.160 255.255.255.224 192.168.1.2
ip route-static 192.168.1.160 255.255.255.224 192.168.1.13
ip route-static 192.168.1.192 255.255.255.224 192.168.1.13
ip route-static 192.168.1.224 255.255.255.224 192.168.1.13
ip route-static 192.168.1.224 255.255.255.224 192.168.1.2

user-interface con 0
authentication-mode password
user-interface vty 0 4
authentication-mode password
set authentication password cipher % % Hs`=O68Uy8ZZ&K/0#Mv9,4O|3Grs"_AtqAem3tIz+CPK4O",% %
user-interface vty 16 20

wlan ac

return

sysname R2

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

set cpu-usage threshold 80 restore 75

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

interface Ethernet0/0/0

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 GigabitEthernet0/0/0
ip address 192.168.1.5 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.1.2 255.255.255.252

interface NULL0

interface LoopBack1
ip address 192.168.1.97 255.255.255.224

interface LoopBack2
ip address 192.168.1.129 255.255.255.224

ip route-static 0.0.0.0 0.0.0.0 192.168.1.6
ip route-static 192.168.1.32 255.255.255.224 192.168.1.1
ip route-static 192.168.1.64 255.255.255.224 192.168.1.1
ip route-static 192.168.1.160 255.255.255.224 192.168.1.6
ip route-static 192.168.1.192 255.255.255.224 192.168.1.1
ip route-static 192.168.1.192 255.255.255.224 192.168.1.6
ip route-static 192.168.1.224 255.255.255.224 192.168.1.6

sysname R3

board add 0/2 1GEC

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

set cpu-usage threshold 80 restore 75

dhcp enable

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

interface Ethernet0/0/0

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 GigabitEthernet0/0/0
ip address 192.168.1.13 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.1.10 255.255.255.252

interface GigabitEthernet2/0/0
ip address 192.168.1.193 255.255.255.224
dhcp select interface
dhcp server dns-list 8.8.8.8

interface NULL0

ip route-static 0.0.0.0 0.0.0.0 192.168.1.14
ip route-static 192.168.1.32 255.255.255.224 192.168.1.9
ip route-static 192.168.1.64 255.255.255.224 192.168.1.9
ip route-static 192.168.1.96 255.255.255.224 192.168.1.9
ip route-static 192.168.1.96 255.255.255.224 192.168.1.14
ip route-static 192.168.1.128 255.255.255.224 192.168.1.9
ip route-static 192.168.1.128 255.255.255.224 192.168.1.14
ip route-static 192.168.1.160 255.255.255.224 192.168.1.14
ip route-static 192.168.1.224 255.255.255.224 192.168.1.14

sysname R4

board add 0/1 2FE
board add 0/2 1GEC

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

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

interface Ethernet0/0/0

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 Ethernet1/0/0
ip address 192.168.1.25 255.255.255.252

interface Ethernet1/0/1

interface GigabitEthernet0/0/0
ip address 192.168.1.17 255.255.255.252

interface GigabitEthernet0/0/1
ip address 192.168.1.6 255.255.255.252

interface GigabitEthernet2/0/0
ip address 192.168.1.14 255.255.255.252

interface NULL0

interface LoopBack1
ip address 192.168.1.161 255.255.255.240

interface LoopBack2
ip address 192.168.1.177 255.255.255.240

ip route-static 0.0.0.0 0.0.0.0 192.168.1.18
ip route-static 0.0.0.0 0.0.0.0 192.168.1.26 preference 61
ip route-static 192.168.1.0 255.255.255.0 NULL0
ip route-static 192.168.1.32 255.255.255.224 192.168.1.5
ip route-static 192.168.1.32 255.255.255.224 192.168.1.13
ip route-static 192.168.1.64 255.255.255.224 192.168.1.5
ip route-static 192.168.1.64 255.255.255.224 192.168.1.13
ip route-static 192.168.1.96 255.255.255.224 192.168.1.5
ip route-static 192.168.1.128 255.255.255.224 192.168.1.5
ip route-static 192.168.1.192 255.255.255.224 192.168.1.13
ip route-static 192.168.1.224 255.255.255.224 192.168.1.18
ip route-static 192.168.1.224 255.255.255.224 192.168.1.26 preference 61

sysname 5

board add 0/2 2FE

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

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

interface Ethernet0/0/0

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 Ethernet2/0/0
ip address 192.168.1.26 255.255.255.252

interface Ethernet2/0/1

interface GigabitEthernet0/0/0
ip address 10.1.1.1 255.255.255.0
nat static protocol tcp global 10.1.1.3 telnet inside 192.168.1.33 telnet netmask 255.255.255.255
nat outbound 2000

interface GigabitEthernet0/0/1
ip address 192.168.1.18 255.255.255.252

interface NULL0

interface LoopBack1
ip address 192.168.1.225 255.255.255.224

ip route-static 0.0.0.0 0.0.0.0 10.1.1.2
ip route-static 192.168.1.0 255.255.255.0 192.168.1.17
ip route-static 192.168.1.0 255.255.255.0 192.168.1.25 preference 61

R6:

interface GigabitEthernet0/0/1
ip address 10.1.1.2 255.255.255.0

interface NULL0

interface LoopBack0
ip address 6.6.6.6 255.255.255.255

user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值