通用配置

Hostname 配置

Switch>enable
Switch#configure terminal
Switch(config)#RTA

管理口配置

RTA(config)#interface Management 1
RTA(config-Mgmt)#ip address x.x.x.x/x
RTA(config)#ip routing
RTA(config)#ip route default via x.x.x.x
RTA(config)#management ssh
RTA(config-mgmt-ssh)#no shutdown

升级OS

安装Application

hostname(config)# copy usb:metawathc-xx.xx.rpm file:metawatch-xx.xx.rpm
hostname(config)# install app file:metawatch-xx.xx.rpm

Cross Point 配置-低延时直通

配置点对点 cross point - 1:1

hostname(config)> int et2
hostname(config-if-et2)> source et1
hostname(config-if-et2)> no shut
hostname(config)> int et1
hostname(config-if-et1)> source et2
hostname(config-if-et1)> no shut

配置点多多点cross point - 1:N

  1. 首先需要配置一个1:1 模式(否则光口无法UP)
    hostname(config)> int et2
    hostname(config-if-et2)> source mac
  2. 先配置et1 和et2 的1:1
    hostname(config)> int et2
    hostname(config-if-et2)> source et1
    hostname(config-if-et2)> no shut
    hostname(config)> int et1
    hostname(config-if-et1)> source et2
    hostname(config-if-et2)> no shut
  3. 将et1 的流量同步复制到端口3
    hostname(config)> int et3
    hostname(config-if-et3)> source et1
    hostname(config-if-et3)> no shut

Metawatch 配置(多对一)

// 关闭FPGA 上运行的程序,例如MetaMux
app Metamux
shutdown

// 安装 metawatch,先用命令app metawatch 验证交换机是否安装好了metawatch
enable
config
copy usb:metawathc-xx.xx.rpm file:metawatch-xx.xx.rpm
// 如果u 盘无法识别, 通过管理口访问交换机的http管理页面上传rpm 包
install app file:Metawatch-xx.xx.rpm
// 启用metawatch
app Metawatch
shutdown
timesource freerun
mode 1x16_w
interface ap1-32 sub-nanoseconds
no shutdown
// 配置源端口
int Ap1
source Et41
int Ap2
source Eth34
int Ap3
source Eth1

Int Eth41
Source mac
Int Eth34
Source mac
Int Eth1
Source mac
// 配置目的端口
int Et43
description toserver
source Ap31

[!note]
遇到新的设备,若不了解MetaWatch 可用的模式,可以在app metawatch 下使用命令list mode查看所有可用模式;

若不熟悉模式下所有ap 接口的group,可以在启用mode 之后使用命令show int ap* description

list mode

show int ap* description