一、配置接口
1、配置接口地址
RG-WALL # config system interface
RG-WALL (interface) # edit wan1
RG-WALL (wan1) # set ip 172.26.2.15/27
RG-WALL (wan1) # end
2、配置接口模式
RG-WALL # config system interface
RG-WALL (interface) # edit wan1
RG-WALL (wan1) # set mode [static|dhcp|pppoe]
RG-WALL (wan1) # end
3、配置接口状态
RG-WALL # config system interface
RG-WALL (interface) # edit wan1
RG-WALL (wan1) # set static [up|down]
RG-WALL (wan1) # end
二、配置静态路由
RG-WALL # config router static
RG-WALL (static) # edit 1 //数字几对应编辑路由表的第几条路由,0代表新增。
RG-WALL (1) # set device wan1
RG-WALL (1) # set dst 172.26.0.0 255.255.0.0
RG-WALL (1) # set gateway 172.26.2.1
RG-WALL (1) # set comment "省基卫"
RG-WALL (1) # end
三、配置上网策略
RG-WALL # config firewall policy
RG-WALL (policy) # edit 1
RG-WALL (1)# set srcintf internal //源接口
RG-WALL (1)# set dstintf wan1 //目的接口
RG-WALL (1)# set srcaddr all //源地址
RG-WALL (1)# set dstaddr all //目的地址
RG-WALL (1)# set action accept //动作
RG-WALL (1)# set schedule always //时间
RG-WALL (1)# set service ALL //服务
RG-WALL (1)# set logtraffic disable //日志开关
RG-WALL (1)# set nat enable //开启nat
RG-WALL (1)# end
四、修改管理端口号
RG-WALL # config system global
RG-WALL (global) # set admin-port 1443 //默认是443,改为1443,web登录加上该端口
RG-WALL (global) # end
五、系统MAC/IP地址绑定
RG-WALL #config system arp-table
RG-WALL (arp-table) # edit 1
RG-WALL (1) #set interface internal //指定接口(路由模式或者VDOM为路由模式时需这条命令;透明模式或者VDOM为透明模式时,无需该命令)
RG-WALL (1) #set ip 192.168.1.111 //指定IP地址
RG-WALL (1) #set mac 00:00:00:11:11:11 //指定MAC地址
RG-WALL (1) #next
RG-WALL (arp-table) #end
六、查看命令
1、查看arp表
RG-WALL # get system arp
2、查看物理接口状态
RG-WALL # get system interface physical
3、查看默认路由配置
RG-WALL # show router static
4、查看路由表中的静态路由
RG-WALL # get router info routing-table static
5、查看全局路由表
RG-WALL # get router info routing-table all
6、查看策略配置
RG-WALL # show firewall policy
七、Execute 命令
RG-WALL # execute ping 8.8.8.8 //常规ping操作
RG-WALL # execute ping-options repeat-count 100 //发100个包
RG-WALL # execute ping 8.8.8.8 //继续输入ping的目标地址
RG-WALL # execute ping-options source 192.168.1.200 //指定ping数据包的源地址
RG-WALL # execute ping 8.8.8.8 //继续输入ping的目标地址
RG-WALL # execute ping-options data-size 500 //ping包大小:500bytes
RG-WALL # execute ping 8.8.8.8 //继续输入ping的目标地址
RG-WALL # execute traceroute 8.8.8.8
RG-WALL # execute telnet 2.2.2.2 //进行telnet访问
RG-WALL # execute ssh 2.2.2.2 //进行ssh 访问
RG-WALL # execute factoryreset //恢复出厂设置
RG-WALL # execute reboot //重启设备
RG-WALL # execute shutdown //关闭设备