1£©.µÇ½ÅäÖÃ
Login: sadm //ĬÈÏÓû§Ãûsadm
Password: sadm //ĬÈÏÃÜÂësadm
[sadm@RG-WALL]# //½øÈëÃüÁîÐнçÃæ
2£©.IPµØÖ·ÅäÖÃ
[sadm@RG-WALL]# network //½øÈëÍøÂçÅäÖÃÄ£¿é
[sadm@RG-WALL(Network)]# interface set
Interface to set (eth0, eth1, eth2, eth3, Enter means cancel):
eth0 //Ñ¡ÔñÅäÖýӿÚÃû³Æ
Bring up onboot? (0: No, 1: Yes, Enter means Yes)
//Ñ¡ÔñÊÇ·ñÆôÓÃ
Work mode (0: UnCfg, 1: Manual, 2: DHCP, 3: PPPoE, 4: InBridge, Enter
means Manual):
//Ñ¡Ôñ½Ó¿Úģʽ
IP Address (xxx.xxx.xxx.xxx):
192.168.1.1 //ÅäÖÃIP
Netmask (xxx.xxx.xxx.xxx, Enter means 255.255.255.0):
//°´»Ø³µÄ¬ÈÏÊÇ255.255.255.0
GateWay (xxx.xxx.xxx.xxx, Enter means no default gateway in this
network):
//°´»Ø³µÄ¬ÈÏÊÇÎÞÍâ³öÍø¹Ø
MAC Address (xx:xx:xx:xx:xx:xx, Enter means use MAC Address of device):
//°´»Ø³µÄ¬ÈÏÊDZ¾Íø¿¨µÄMAC
MTU (68-1500, Enter means use MTU of device):
//°´»Ø³µÄ¬ÈÏÊÇ1500
[sadm@RG-WALL(Network)]#
3£©.±£´æÅäÖÃÃüÁî
[sadm@RG-WALL]# save
Save configuration successfully.
//ÅäÖñ£´æ³É¹¦
4£©.debugÕ˺ŵÄʹÓÃ
4.1£©.debugÕ˺ŵĵǽ
Ruijie Co., Ltd.
Model: RG-WALL-1600S-V
Version: RG-WALL-v2.62.25
RG-WALL login: debug
[debug@RG-WALL]#
//ʹÓÃdebugÕ˺ŵǽCLI½çÃæ
4.2£©.PSÃüÁî²é¿´É豸¸÷½ø³Ìµ±Ç°ÔËÐÐÇé¿ö
RG-WALL login: debug
[debug@RG-WALL]# ps
1 S init
2 S [keventd]
3 S
[ksoftirqd_CPU0]
4 S [kswapd]
5 S [bdflush]
6 S [kupdated]
¡¡¡¡
¡¡¡¡
¡¡¡¡
27185 S -debug_com
27218 S sh
27219 R /bin/tos/sw_ps
-----
Total 59 processes
4.3£©.TOPÃüÁî²é¿´É豸½ø³Ìcpu¡¢ÄÚ´æµÄʵʱռÓÃÂÊ
[debug@RG-WALL]# top
Mem: 240544K used, 782100K free, 0K shrd, 3632K buff, 102400K cached
Load average: 0.00, 0.00, 0.00 (State: S=sleeping
R=running, W=waiting)
PID USER STATUS RSS PPID %CPU %MEM COMMAND
342 root S 1028 1 1.9
0.1 anmd
569 root S
26M 1 0.0
2.6 iked
866 root S
14M 865 0.0
1.4 sslconfd
868 root S
14M 866 0.0
1.4 sslconfd
865 root S
14M 1 0.0
1.4 sslconfd
867 root S
14M 866 0.0
1.4 sslconfd
15416 root
S
14M 866 0.0
1.4 sslconfd
15944 root
S
14M 866 0.0
1.4 sslconfd
947 root S
12M 1 0.0
1.2 sslservd
975 root S 9280 957 0.0
0.9 /usr/local/apache/bin/httpd
979 root S 9280 957 0.0
0.9 /usr/local/apache/bin/httpd
977 root S 9272 957 0.0
0.9 /usr/local/apache/bin/httpd
978 root S 9260 957 0.0
0.9 /usr/local/apache/bin/httpd
976 root S 9252 957 0.0
0.9 /usr/local/apache/bin/httpd
985 root S 9212 957 0.0
0.9 /usr/local/apache/bin/httpd
2415 root S 8348 957 0.0
0.8 /usr/local/apache/bin/httpd
16415 root
S
5684 957 0.0
0.5 /usr/local/apache/bin/httpd
4407 root S 5680 957 0.0
0.5 /usr/local/apache/bin/httpd
16516 root
S
5648 957 0.0
0.5 /usr/local/apache/bin/httpd
9092 root S 4036 957 0.0
0.3 /usr/local/apache/bin/httpd
//½øÈë¼à¿Ø½çÃæºó£¬ÊäÈë¡°q¡±ÃüÁî¿ÉÒÔÍ˳ö£¬ÊäÈë¡°p¡±ÃüÁî¿ÉÒÔÊÖ¶¯Ë¢Ðµ±Ç°µÄʵʱÏÔʾÇé¿ö
4.4£©.TcpdumpÃüÁî¿É½øÐÐ×¥°üµ÷ÊÔ·ÖÎö
RG-WALL login: debug
ͨ¹ýÖ÷»úµØÖ·¹ýÂË
[debug@RG-WALL]# tcpdump -i eth0 -nn host 192.168.1.37
ͨ¹ý¶Ë¿Ú¹ýÂË
[debug@RG-WALL]# tcpdump -i eth0 -nn port 443
ͨ¹ýÐÒé¹ýÂË
[debug@RG-WALL]# tcpdump -i eth0 -nn icmp
//½øÈë¼àÌý½çÃæºó£¬ctrl+C¿ÉÒÔÍ£Ö¹×¥°ü¡£
4.5£©.pingÃüÁî¿É½øÐÐÍøÂç̽²â
RG-WALL login: debug
[debug@RG-WALL]# ping
Usage: ping [-c count] [-i interval] [-w deadline] [-s packetsize]
[-I interface or address] destination
// -I£¨´óд£©²ÎÊý¿ÉÒÔÖ¸¶¨Ô´µØÖ·ºÍÔ´½Ó¿Ú½øÐÐping̽²â£¬ÀýÈ磺ping 192.168.1.2 -I eth1 »òÕß ping
192.168.1.2 -I 192.168.1.1
//crtl+C¿ÉÒÔÍ£Ö¹pingÃüÁî
4.6£©.dfÃüÁî¿É²é¿´É豸·ÖÇø´ÅÅÌʹÓÃÂÊ
[debug@RG-WALL]# df
Filesystem
1k-blocks
Used Available Use% Mounted on
rootfs
63461
37548
25913 59% /
/dev/ram0
63461
37548
25913 59% /
/dev/hda5
176492 22676 153816 13% /data