需要用服務器調試防火牆,沒有串口,只能用usb轉接口接了串口。簡單記錄使用minicom連接過程。
1. 確認驅動
dmesg|grep ttyUSB0
[546072.956140] usb 3-14: pl2303 converter now attached to ttyUSB0
如出現類似信息,則說明驅動已正常
2.確認傳輸速率
[root@101 ~]# stty -a -F /dev/ttyUSB0
speed 9600 baud; rows 0; columns 0; line = 0;
如上9600,就是速率了
3.安裝minicom
yum -y install minicom
4.minicom設置
minicom -s #設置
1.選擇Serial port setup 並回車進入修改
A - Serial Device : /dev/ttyUSB0
E - Bps/Par/Bits : 9600 8N1 #剛纔查出的波特率
修改好後回車返回主菜單
2.選擇Save setup as dfl 保存爲默認設置
5.minicom使用
在使用上很不習慣,需要記錄一下
ctrl+a 是功能菜單,按出此功能後,再按z,可以查看幫助
crtl+a 然後再按x,是退出
6.Hillstone waf簡單命令
show interface #查看網絡配置
show configuration interface vswitchif1 #查看vswitchf1配置
show image #查看可用鏡像
exec image SG6000-W-5.5R2-2.0.4 active #激活2.0.4
reboot #重啓
更改版本,或恢復配置後需要reboot生效