Single VIP LLB and SLB config

Single VIP LLB and SLB config

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# 设置设备的管理IP ( 需要重启系统才可生效, 重启系统前请先保存配置. save nsconfig )
> set ns config -IPAddress 192.168.11.15 -netmask 255.255.255.0
 Done

# 设置用于连通内网的SNIP地址 ( enable ns mode usnip )
> add ns ip 192.168.11.5 255.255.255.0 -mgmtAccess ENABLED -restrictAccess ENABLED
 Done

# 设置设备主机名
> set ns hostName vadc-test
 Done

# 添加DNS域名服务器
> add dns nameServer 192.168.11.191
 Done

# 设置时区
> set ns param -cookieversion 1 -timezone "GMT+08:00-CST-Asia/Shanghai"
 Done

# 设置时间, 格式为: YYYYmmddHHMM 注意时区是否正确
> shell date 201812101745
Mon Dec 10 17:45:00 CST 2018
 Done
> shell date +'%Y-%m-%d %H:%M:%S'
2018-12-10 17:45:05
 Done

# 添加NTP服务器
> shell vi /etc/ntp.common.conf
# Common elements of Netscaler NTP configuration
#
# Do not edit: changes will be lost following reboot.
# For site-specific NTP configuration, see the instructions in /etc/ntp.conf
#

# We won't allow *anything* from hosts not listed in the configuration
# This means you need a restrict line for each server
restrict default ignore
restrict -6 default ignore

# Allow just about anything from localhost, IPv4.
restrict 127.0.0.1 mask 255.255.255.255

driftfile /var/db/ntp.drift
logfile /var/log/ntpd.log

# Log everything, even from ntpd (which otherwise defaults to "all =sync")
logconfig =all +all
~
~
~
:q!
 Done
> shell vi /etc/ntp.conf
includefile /etc/ntp.common.conf
server 192.168.11.191 minpoll 6 maxpoll 10
restrict 192.168.11.191 nomodify notrap nopeer noquery
~
~
~
:q!
 Done
> show ntp server

	NTP Server: 192.168.11.191
	Minimum Poll Interval: 6 (64secs)
	Maximum Poll Interval: 10 (1024secs)
	Preferred: NO
 Done

# 启动NTP服务器
> enable ntp sync 
 Done
> show ntp sync
	NTP Status: ENABLED
 Done
> show ntp status
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.11.191  .LOCL.           1 u    8   64  377    0.462  -935148   7.661
 Done
> shell ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 192.168.11.191  .LOCL.           1 u   52   64  377    0.462  -935148   7.661
 Done

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

====================== End

猜你喜欢

转载自www.cnblogs.com/lsgxeva/p/10097999.html
slb