首页 > 其他 > 详细

补充实验1:dhcp服务器分配网关-路由器的静态路由优先级

时间:2019-07-07 00:11:41      阅读:247      评论:0      收藏:0      [点我收藏+]

1.拓扑图如下
技术分享图片

  1. RTB配置dhcp服务器
    [RTB]dhcp enable
    [RTB]dhcp server ip-pool 1
    [RTB-dhcp-pool-1]network 10.1.1.0 24
    [RTB-dhcp-pool-1]gateway-list 10.1.1.1
    2.RTA的ip地址使用dhcp动态获取
    [RTA-GigabitEthernet0/0]ip address dhcp-alloc
    [RTA]display interface brief
    Brief information on interfaces in route mode:
    Link: ADM - administratively down; Stby - standby
    Protocol: (s) - spoofing
    Interface Link Protocol Primary IP Description
    GE0/0 UP UP 10.1.1.2
    GE0/1 DOWN DOWN --
    GE0/2 DOWN DOWN --
    GE5/0 DOWN DOWN --
    GE5/1 DOWN DOWN --
    GE6/0 DOWN DOWN --
    GE6/1 DOWN DOWN --
    InLoop0 UP UP(s) --
    NULL0 UP UP(s) --
    REG0 UP -- --
    Ser1/0 DOWN DOWN --
    Ser2/0 DOWN DOWN --
    Ser3/0 DOWN DOWN --
    Ser4/0 DOWN DOWN --
  2. RTA的ip路由表
    [H3C]display iP routing-table

Destinations : 13 Routes : 13

Destination/Mask Proto Pre Cost NextHop Interface
0.0.0.0/0 Static 70 0 10.1.1.1 GE0/0
0.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.0/24 Direct 0 0 10.1.1.2 GE0/0
10.1.1.0/32 Direct 0 0 10.1.1.2 GE0/0
10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.255/32 Direct 0 0 10.1.1.2 GE0/0
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
127.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
224.0.0.0/4 Direct 0 0 0.0.0.0 NULL0
224.0.0.0/24 Direct 0 0 0.0.0.0 NULL0
255.255.255.255/32 Direct 0 0 127.0.0.1 InLoop0
//默认路由优先级为70

补充实验1:dhcp服务器分配网关-路由器的静态路由优先级

原文:https://www.cnblogs.com/akiz/p/11144566.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!