Author Archives: coder4

KVM虚拟化的多个网卡桥接配置

桥接基本原理:

eth0(本地物理网卡)tap0,tap1....(tap是给kvm guest使用的接口)

1、创建桥
[shell]
#一般一个机器一个桥即可
sudo brctl addbr br0
[/shell]

2、创建若干tap
[shell]
#KVM需要几个虚拟网卡,就几个
sudo tunctl -t tap0 -u liheyuan
sudo tunctl -t tap1 -u liheyuan
......
[/shell]

3[......]

继续阅读

Sniffer资料

libpcap中如何从区分Ethernet的承载包类型(IP、ARP、RARP)以及MAC地址
http://blog.sina.com.cn/s/blog_43a0370b010005p0.html

IP包格式
http://www.cnblogs.com/tuyile006/archive/2006/12/25/603185.html
http://www.freesoft.org/CIE/Course/Section3/7.htm

TCP包格式
http://blog.[......]

继续阅读

推荐一个TFTP服务器

Linux自带的太恶心了,这个非常好用。

http://sourceforge.net/projects/tftp-server/

如何开机启动?

[shell]
vim /etc/rc.local
#把第一行的-e去掉,非常重要!
#然后在exit 0之前添加
/usr/bin/opentftpd &
[/shell][......]

继续阅读