锐捷交换机

RuiJie nbs5552xg (mac: 5869-6c01-dd72)

查看 二层转发表信息

远程管理 telnet

(需要去web端设置密码) 不然会收到提示 password required, but none set

configure terminal 
line vty0 
password xxx

参考

telnet 192.168.11.200

查看接口状况

show interfaces status

查看启动文件

shwo boot

查ip和mac

show arp 
shwo mac-addr

查看mac某个地址


show arp | in 192.168.11.200      #//检索

进入管理模式

(需要先web端设置密码) ERROR: No passwords set.

enable password 0 xxxx

查看配置

enable  

show running-config

开启链路发现

这样就知道接在那个口

configure terminal
lldp run
end
show lldp
show lldp neighbors   interface  GigabitEthernet 0/35  #发现结果


show lldp neighbors interface GigabitEthernet 0/1-0/48

清除过期数据

clear lldp table all

保存配置

enable  

write memory

离开管理模式

disable

查看路由表

show vlan   #//vlan
show ip route #//路由表

交换机管理(文件)

pwd
dir flash:/
file config.text

rename flash:/fstab flash:/new-fstab




copy oob_tftp://192.168.1.1/RGOS.bin flash:RGOS.bin
ftp
show file systems



configure terminal
show ftp-server


ftp-server topdir /
ftp-server enable
ftp-server username user password pass

tftp-server enable

进入配置模式

configure terminal

离开管理模式

exit

重置密码

连接串口 ,启动输入ctrl+c 进入启动菜单

Unlocking L2 Cache ...Done
arm_clk=1000MHz, axi_clk=400MHz, apb_clk=100MHz, arm_periph_clk=500MHz
SETMAC: Setmac operation was performed at 2015-12-20 20:23:56 (version: 11.0)
Press Ctrl+C to enter Boot Menu
Net:   eth-0
Entering simple UI....

====== BootLoader Menu("Ctrl+Z" to upper level) ======
    TOP menu items.
************************************************
    0. Tftp utilities.
    1. XModem utilities.
    2. Run main.
    3. SetMac utilities.
    4. Scattered utilities.
    5. Set Module Serial
************************************************
Press a key to run the command:

按ctrl+q 进入启动器命令行
Press a key to run the command:
bootloader# main_config_password_clear

更具提示输入 1


Enter runlevel: 1
~ # pwd
/
~ # ls
bin         data        etc         linuxrc     rg_cfg      rootfs      tmp
boot        data2       home        mnt         rgos        sbin        usr
bootloader  dev         lib         proc        root        sys         var
~ # uname -a
Linux (none) 3.10.18-Broadcom Linux+ #1 SMP Thu Oct 29 22:59:28 CST 2015 armv7l GNU/Linux

移除配置文件


~ # cd data
/data # mv config.text config.bak
/data # sync
/data # reboot

移动回来配置文件

Ruijie> enable
Ruijie# copy flash:config.bak flash:config.text
Ruijie# copy startup-config running-config


参考

配置web管理 三层

configure terminal
hostname 5750p48 
vlan 1
interface vlan 1
ip address 192.168.11.201 255.255.255.0
show ip route
exit


telnet 登入密码

line vty 0 4
login
password xxxxx
exit 

enable service web-server  

默认是admin/admin

默认路由 (三层)


ip route 0.0.0.0 0.0.0.0 VLAN 1 192.168.11.1



ip route 0.0.0.0 0.0.0.0 192.168.1.0

二层

ip default-gateway 192.168.1.1  

snmp配置

show snmp-server

snmp-server

snmp-server community wuser rw 
snmp-server community ruser ro 

no snmp-server enable traps

字符终端宽度

terminal width 10