你全力做到最好,可能还不如别人随便搞搞!

首页 » 阅读时间 » 科技 » EdgeMAX 在 CLI 中配置 System Setting

EdgeMAX 在 CLI 中配置 System Setting

发布时间:2022年11月20日 修改时间:2024年05月18日 已有 64027 人围观

用户将学习到在 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
}