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

1.拓扑图如下
1399347-20190706225234911-1954066231.png

  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

转载于:https://www.cnblogs.com/akiz/p/11144566.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值