EdgeMAX - 在 CLI 中配置 System Setting

简介


用户将学习到在 CLI 中配置 System Setting

工具


EdgeRouter

操作步骤


  1. 通过如下命令配置 System 相关参数
    set system host-name R15-bld5-fl2
    set system domain-name ubnt.com
    set system time-zone US/Pacific
    set system gateway-address 1.1.1.1
    set system login banner pre-login "\n\n\n\tUNAUTHORIZED USE OF THIS SYSTEM\n\tIS STRICTLY PROHIBITED!\n\n\tPlease contact "company-noc@company.com" to gain\n\taccess to this equipment if you need authorization.\n\n\n"
    set system login banner post-login "\nWelcome to EdgeOS!\n"
  2. NTP 和 Name Server 这两个选项可以有多种设置,NTP 预设配置为0.ubnt.pool.ntp.org
    set system name-server 8.8.8.8
    set system ntp server 0.ubnt.pool.ntp.org
  3. Syslog 默认配置
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
  4. 在CLI中配置 telnet 或 ssh
    set service ssh
    set service telnet
  5. 配置静态主机映射
    ubnt@proto5# show system static-host-mapping
    host-name ach {
        inet 192.168.1.148
    }
    host-name stig {
        inet 192.168.1.168
    }