百度首页 | 百度空间
 
查看文章
 
Freebsd Tips
2007-12-12 16:34
1、数据包 “netstat 1″一秒钟累计一次,”netstat 2″两秒钟累计一次。依此类推

2、查看网卡流量:”systat -if 1″每秒钟刷新一次,”systat -if 2″两秒钟刷新一次,依此类推.
3.cd /usr/ports/net/ifstat;make install;make clean;/usr/local/bin/ifstat也可以显示及时流量。

FreeBSD-带宽占用-查看
[1] netstat 1 netstat -i netstat -I vr0 simple way

[2]ports: nload vivid way eg. view vr0--> nload vr0

[3]systat -if 1 nice way

[4]ports:ntop detailed information about bandwidth, esp for monitoring LAN info, but high system resource needed. view through website, eg. http://localhost:3000

[5]ports:mrtg Did not use it

[6]ports:bandwidthd Did not use it

[7]ports:iftop

对ntop印象不错,生成的报表信息比较全,局域网流量监控特别好

systat -vm 1

netstat -n -I rl0 -ib可以查看网卡rl0 的流量

systat -ip 1

类别:Os | 添加到搜藏 | 浏览() | 评论 (4)
 
最近读者:
 
网友评论:
1
2008-01-16 14:11
pkg_add -rv ftp://ftp.cn.freebsd.org/pub/FreeBSD/releases/i386/6.2-RELEASE/packages/All/perl-5.8.8.tbz
 
2
2008-05-06 15:10
sshd 设置

//保持连接不中断
ClientAliveInterval 15
ClientAliveCountMax 3

//跳过dns
UseDNS no
 
3
2008-05-07 19:45
系统升级

make buildworld
make buildkernel KERNCONF=changlong
chflags noschg /bin
chflags noschg /boot
make installkernel KERNCONF=changlong KODIR=/boot/testkernel
nextboot -k testkernel
uname -a
reboot
make installkernel KERNCONF=changlong
mergemaster -ai
make installworld
mergemaster -ai
reboot
make delete-old
chflags schg /bin
chflags schg /boot
reboot
 
4
2008-05-12 17:10
pf规则
pass out quick route-to ( 网卡 网关IP ) from 网卡上的那个IP to any
基于源地址的分网卡/网关路由
 
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码:
 

     

©2008 Baidu