Chinaunix首页 | 论坛 | 博客
  • 博客访问: 103678967
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: LINUX

2008-04-28 22:05:46

 
文章来源中国IT实验室收集整理 
 

  下面就是重新配置和编译Linux的内核。特别注意以下选项:

  1 Code maturity level options——>

  * [*]Prompt for development and/or incomplete code/drivers

  2 Networking部分:

  [*] Kernel/User netlink socket

  [*] Routing messages

  <*> Netlink device emulation

  * [*] Network firewalls

  [*] Socket Filtering

  <*> Unix domain sockets

  * [*] TCP/IP networking

  [*] IP: multicasting

  [*] IP: advanced router

  [ ] IP: policy routing

  [ ] IP: equal cost multipath

  [ ] IP: use TOS value as routing key

  [ ] IP: verbose route monitoring

  [ ] IP: large routing tables

  [ ] IP: kernel level autoconfiguration

  * [*] IP: firewalling

  [ ] IP: firewall packet netlink device

  * [*] IP: transparent proxy support

  * [*] IP: masquerading

  —— Protocol-specific masquerading support will be built as modules.

  * [*] IP: ICMP masquerading

  —— Protocol-specific masquerading support will be built as modules.

  * [*] IP: masquerading special modules support

  * IP: ipautofw masq support (EXPERIMENTAL)(NEW)

  * IP: ipportfw masq support (EXPERIMENTAL)(NEW)

  * IP: ip fwmark masq-forwarding support (EXPERIMENTAL)(NEW)

  * [*] IP: masquerading virtual server support (EXPERIMENTAL)(NEW)

  [*] IP Virtual Server debugging (NEW) <——最好选择此项,以便观察LVS的调试信息

  * (12) IP masquerading VS table size (the Nth power of 2) (NEW)

  * IPVS: round-robin scheduling (NEW)

  * IPVS: weighted round-robin scheduling (NEW)

  * IPVS: least-connection scheduling (NEW)

  * IPVS: weighted least-connection scheduling (NEW)

  * IPVS: locality-based least-connection scheduling (NEW)

  * IPVS: locality-based least-connection with replication scheduling

  (NEW)

  * [*] IP: optimize as router not host

  * IP: tunneling

  IP: GRE tunnels over IP

  [*] IP: broadcast GRE over IP

  [*] IP: multicast routing

  [*] IP: PIM-SM version 1 support

  [*] IP: PIM-SM version 2 support

  * [*] IP: aliasing support

  [ ] IP: ARP daemon support (EXPERIMENTAL)

  * [*] IP: TCP syncookie support (not enabled per default)

  —— (it is safe to leave these untouched)

  < > IP: Reverse ARP

  [*] IP: Allow large windows (not recommended if <16Mb of memory)

  < > The IPv6 protocol (EXPERIMENTAL)

  上面,带*号的为必选项。然后就是常规的编译内核过程,不再赘述。

  在这里要注意一点:如果你使用的是RedHat自带的内核或者从RedHat下载的内核版本,已经预先打好了LVS的补丁。这可以通过查看/usr/src/linux/net/目录下有没有几个ipvs开头的文件来判断:如果有,则说明已经打过补丁。

阅读(291) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~