常用命令
1.1.SDwan平台常用命令
1.1.1.FlexSMS服务操作命令
systemctl status flexsms.service 查看状态
systemctl stop flexsms.service 停止服务
systemctl start flexsms.service 启动服务
systemctl restart flexsms.service 重启服务
1.1.2.FlexGS服务操作命令
systemctl status flexgs.service 查看状态
systemctl stop flexgs.service 停止服务
systemctl start flexgs.service 启动服务
systemctl restart flexgs.service 重启服务
1.1.3.FlexSDNC服务操作命令
systemctl status flexinc.service
systemctl stop flexinc.service 停止服务
systemctl start flexinc.service 启动服务
systemctl restart flexinc.service 重启服务
1.1.4.查看SMS日志路径
/usr/local/sdwan/flexsms/logs/ vcpe.log
1.1.5.查看GS日志路径
/opt/flexinc/log/ karaf.log
/usr/local/sdwan/flexgs/logs/gs.log
/usr/local/sdwan/flexgs/logs/ gs-error.log
1.2.Edge常用命令
1.2.1.查看confd版本
confd –version
1.2.2.进入子系统
confd_cli
1.2.3.查看子系统信息
show sys-info
1.2.4.查看license信息
show license info
1.2.5.导入证书到子系统
license load local /home/lic_test.lic
1.2.6.安装证书到子系统
license install lic_test.lic
1.2.7.修改Edge的SN号
vi /userdatas/openstack/latest/user_data
1.2.8.查看接口状态
show if-management-status
show if-management-status | tab
1.2.9.查看当前运行配置
show running-config
1.2.10.查看网卡隧道状态信息
show if-management-status
1.2.11.查看隧道信息
show running-config interface ipsec-tunnel113
1.2.12.修改隧道源地址
1.2.13.ping测试
ping 114.114.114.114 vrf vrf2 source-address 10.100.0.14
1.2.14.ping大包测试
ping 114.114.114.114 count 200 size 1000
1.2.15.路由traceroute测试
traceroute 114.114.114.114 vrf vrf2 source-address 10.100.0.14
1.2.16.进入子系统配置
config terminal
1.2.17.配置主机名
system hostname mydomain
1.2.18.配置接口dhcp
1.2.19.配置静态 ip
config
interface gei-1/1/0
设置ip为192.168.1.5/24
ipv4 address 192.168.1.5 24
no ipv4 address 清除ip
commit
1.2.20.查看路由信息
show running-config router static
show mpls forward-table 查看路由下一跳
show route static|selected
show route all selected|database
show route vrf vrf2 static|selected|database
1.2.21.设置默认路由
config
router static
ip route 0.0.0.0 0.0.0.0 ifname-nexthop 10gei-1/1/0 192.168.1.1
commit
1.2.22.设置网段路由
config
router static
ip route 192.168.30.0 255.255.255.0 ifname-nexthop gei-1/1/1 10.254.20.1
commit
1.2.23.添加默认业务路由
ip route vrf vrf2 0.0.0.0 0.0.0.0 ifname ipsec-tunnel3
1.2.24.查看 callhome
查看表象 show information
查看控制器信息 show callhome
1.2.25.Callhome配置GS
config
callhome gs_url
http://192.168.1.10:3939/flexgs-web/gs/api/device/flexEng/
commit
1.2.26.清空 callhome 设置
config
no callhome
1.2.27.备份Edge配置
config
save xxxxx.config
1.2.28.恢复Edge备份的配置
config
load replace xxxxx.config 覆盖当前配置
load merge xxxxx.config 合并现有配置
1.2.29.清除配置
system clear config
system service reboot
1.2.30.查看服务列表及状态
flexbng
1.2.31.停止所有服务
flexbng -S
1.2.32.启动所有服务
flexbng -s
1.2.33.单独启动hdp服务
flexbng -s hdp
1.2.34. 重置rtty客户端服务
flexbng -s confdmix
1.2.35. 重启服务 conf_d
flexbng -s conf_d
1.2.36.查看接口详细信息
show interfaces-state gei-1/1/3
show interfaces-state gei-1/1/3 phys-address
1.2.37.修改EdgeMAC地址
echo /dev/mmcblk0boot1 0x1f0000 0x10000 0x4000 > /etc/fw_env.config
echo 0 > /sys/block/mmcblk0boot1/force_ro
fw_setenv ethaddr 11:22:33:44:55:66(注意:11:22:33:44:55:66是例子 ,要换成实际MAC基地址)
echo 1 > /sys/block/mmcblk0boot1/force_ro
rm /etc/fw_env.config
sync
1.2.38.Edge升级版本查看升级过程
从rrty进入domain模式后,进入linux下命令
unhide dev
密码 certusnet
然后 system shell
domain
bash-4.2
如果上面文件不对尝试
tail -f /var/log/certus/sysupg
1.2.39.修改LOGO图标
cd /usr/local/FlexEdgePage/public/img/vcpe
1.2.40.修改Edge底栏文字
vi /usr/local/FlexEdgePage/public/config.js
1.2.41.查看EdgeCPU核数以及内存大小
cat /proc/meminfo | grep MemTotal
cat /proc/cpuinfo | grep "cores" | uniq
1.2.42.进入DP模式关闭vlan校验
unhide dev
密码
system shell
telnet 0 5002 进入DP
set vfi vlan-iso off 关闭vlan校验
1.3.ThinEdge常用命令
1.3.1.Uci show命令查看
uci show ovslan 查看所有信息
uci show network 查看wan、lan口配置
uci show vxlan 查看vxlan配置
uci show udpstun 查看udpstun生效配置
uci show ipsec 查看ipsec配置
uci show qos 查看qos配置
uci show leasedline 查看专线配置
1.3.2.ThinEdge协商过程日志查看及参数查看
ipsec ipsec status 简要显示ipsec协商情况
ipsec statusall 详细显示ipsec协商表象
ip xfrm status 显示ipsec协商的加密串,可以用来解密报文
/etc/init.d/ipsec restart 重新协商ipsecipsec statusall
1.3.3.路由查看修改配置
vxlan ovs-vsctl 查看vxlan的桥、接口绑定情况
route ip route 查看所有路由表项
route -n
ip route|grep zebra|wc -l 查看rip学习来的路由个数
ip route|grep static|wc -l 查看静态路由个数
nat cat /proc/net/nf_conntrack 查看nat session
配置管理 /etc/config/network
1.3.4.修改LAN口地址
永久:vim /etc/config/network
/etc/init.d/network restart
临时:
ifconfig br-lan 192.168.1.1 netmask 255.255.255.0
改完重启服务 /etc/init.d/network restart
1.3.5.修改gs地址
vim /etc/config/ovslan
找个准确配置得盒子可以复制粘贴
1.3.6.清除配置保留地址和GS
reset.sh arm
reboot
1.3.7.进入瘦盒子命令行状态
confd_cli -C
1.3.8.查询流量卡信号值
comtool -e -d /dev/ttyUSB1 -c "AT+CSQ"
1.3.9.查询流量卡卡号
comtool -e -d /dev/ttyUSB1 -c "AT+ZGETICCID"
1.3.10.查询设备IMEI
comtool -e -d /dev/ttyUSB1 -c "ATI"
1.3.11.停止Vxlan
/etc/init.d/vxlan stop
1.3.12查看外网地址
curl cip.cc
1.4.openfalcon监控命令查看
1.4.1openfalcon开启
cd /home/work/
ls
cd open-falcon/
./open-falcon start agent
./open-falcon monitor agent
./open-falcon check
netstat -anlp |grep 1988
1.4.2openfalcon关闭
./open-falcon stop agent
评论区