This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

修性不修命,萬劫陰靈難入聖; 修命不修性,猶有家財無主柄
Album | Blog | Comment | Profile | Control Panel
aquatower | 19 July,2009 20:53
Bookmark: HemiDemi MyShare Baidu Google Bookmarks Yahoo! My Web Del.icio.us Digg technorati furl Bookmark to:YouPush Bookmark to:你推我報

Lab1

1.安裝kernel-doc
2./usr/share/doc/$(uname-r)/Documentation/networking/ip-sysctl.txt
3.value : net.ipv4.icmp_echo_ignore_all
4.寫入/proc

5. 寫入/etc/sysctl.conf
6. load sysctl.conf


[root@server118 ~]# sysctl net.ipv4.icmp_echo_ignore_all
net.ipv4.icmp_echo_ignore_all = 0
[root@server118 ~]# sysctl -w net.ipv4.icmp_echo_ignore_all=1
net.ipv4.icmp_echo_ignore_all = 1
[root@server118 ~]# sysctl net.ipv4.icmp_echo_ignore_all
net.ipv4.icmp_echo_ignore_all = 1

由server測試
[root@server1 ~]# ping -c4 192.168.0.118
PING 192.168.0.118 (192.168.0.118) 56(84) bytes of data.

--- 192.168.0.118 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3002ms


%寫入/etc/sysctl.conf
% #sysctl -p
開機時就會自動套用設定

Lab2

#top
#vmstat -s
#cat /proc/meminfo
#lspci
#lsmod
#hal-device


Comment

Trackback

Comment Permissions: Only members may comment. If you are not a PIXNET member, click here to sign up.