zoukankan      html  css  js  c++  java
  • DHCP中继实验(基础)

    [R1]dis cu
    #
    sysname R1
    #
    undo info-center enable
    #
    dhcp enable
    #
    aaa
    authentication-scheme default
    authorization-scheme default
    accounting-scheme default
    domain default
    domain default_admin
    local-user admin password cipher B3wPB^]SX$]@l3D+mKgUsY@#
    local-user admin service-type http
    #
    firewall zone Local
    priority 16
    #
    interface Ethernet0/0/0
    #
    interface Ethernet0/0/1
    #
    interface Serial0/0/0
    link-protocol ppp
    #
    interface Serial0/0/1
    link-protocol ppp
    #
    interface Serial0/0/2
    link-protocol ppp
    #
    interface Serial0/0/3
    link-protocol ppp
    #
    interface GigabitEthernet0/0/0
    ip address 172.20.1.1 255.255.255.0
    #
    interface GigabitEthernet0/0/1
    ip address 10.10.1.1 255.255.255.192
    dhcp select relay
    dhcp relay server-ip 172.20.1.2
    #
    interface GigabitEthernet0/0/2
    #
    interface GigabitEthernet0/0/3
    #
    wlan
    #
    interface NULL0
    #
    user-interface con 0
    user-interface vty 0 4
    user-interface vty 16 20
    #
    return

    [R2]display current-configuration
    #
    sysname R2
    #
    undo info-center enable
    #
    dhcp enable
    #
    ip pool pc1
    gateway-list 10.10.1.1
    network 10.10.1.0 mask 255.255.255.192
    #
    aaa
    authentication-scheme default
    authorization-scheme default
    accounting-scheme default
    domain default
    domain default_admin
    local-user admin password cipher +*X%D|%Wg7:z9:%F`[a=WYR#
    local-user admin service-type http
    #
    firewall zone Local
    priority 16
    #
    interface Ethernet0/0/0
    #
    interface Ethernet0/0/1
    #
    interface Serial0/0/0
    link-protocol ppp
    #
    interface Serial0/0/1
    link-protocol ppp
    #
    interface Serial0/0/2
    link-protocol ppp
    #
    interface Serial0/0/3
    link-protocol ppp
    #
    interface GigabitEthernet0/0/0
    ip address 172.20.1.2 255.255.255.0
    dhcp select global
    #
    interface GigabitEthernet0/0/1
    #
    interface GigabitEthernet0/0/2
    #
    interface GigabitEthernet0/0/3
    #
    wlan
    #
    interface NULL0
    #
    ip route-static 10.10.1.0 255.255.255.0 172.20.1.1
    #
    user-interface con 0
    user-interface vty 0 4
    user-interface vty 16 20
    #
    return

  • 相关阅读:
    消息中间件
    docker 安装elasticSearch6.7.1
    Curl实现ElasticSearch的增删改查
    docker 容器的mysql主从复制
    linux上docker安装centos7.2
    linux安装docker
    调用 CURL 使用正则抓取信息
    linux 一键安装lnmp环境
    laravel框架实现数据的删除和修改
    laravel 实现增 与查
  • 原文地址:https://www.cnblogs.com/jiucai/p/12158425.html
Copyright © 2011-2022 走看看