Hello: I am trying to set up IP NAT using iproute2. According to the mailing list archives, I need to compile the kernel with CONFIG_IP_MULTIPLE_TABLES I am running RedHat 6.0, so here is what I did: I Download the file: ftp://ftp.redhat.com/redhat/old-releases/redhat-6.0/i386/RedHat/RPMS/kernel-source-2.2.5-15.i386.rpm into /usr/src/redhat/SRPMS I installed it: rpm -Uvh kernel-source-2.2.5-15.i386.rpm I then did these commands: cd /usr/src/linux/linux-2.2.5 make dep make I did this last one several times to compile the files. The first time, it will asked me a BUNCH of questions, to which I hti return on all of them for default values. make bzImage The kernel successfully compiled into bzImage in /usr/src/linux-2.2.5/arch/i386/boot/bzImage I then did: vi .config and added a line: CONFIG_IP_MULTIPLE_TABLES=y under the networking section. I then did: make dep make During the make, I got this error: gcc -D__KERNEL__ -I/usr/src/linux-2.2.5/include -Wall -Wstrict-prototypes -O2 -f omit-frame-pointer -pipe -fno-strength-reduce -m386 -DCPU=386 -c -o fib_rules. o fib_rules.c fib_rules.c: In function `fib_empty_table': fib_rules.c:123: `fib_tables' undeclared (first use in this function) fib_rules.c:123: (Each undeclared identifier is reported only once fib_rules.c:123: for each function it appears in.) fib_rules.c:124: warning: implicit declaration of function `__fib_new_table' fib_rules.c:124: warning: return makes pointer from integer without a cast fib_rules.c: In function `fib_rules_policy': fib_rules.c:220: structure has no member named `r' fib_rules.c: In function `fib_lookup': fib_rules.c:310: structure has no member named `r' fib_rules.c: In function `fib_select_default': fib_rules.c:322: structure has no member named `r' fib_rules.c:322: structure has no member named `r' fib_rules.c:325: structure has no member named `r' make[3]: *** [fib_rules.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.2.5/net/ipv4' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.2.5/net/ipv4' make[1]: *** [_subdir_ipv4] Error 2 make[1]: Leaving directory `/usr/src/linux-2.2.5/net' make: *** [_dir_net] Error 2 Anyone have any ideas? Thanks, Neil. **We pay a 5% finders fee for job referrals that lead to a contract* -------------------------------------------------------------------- |Neil Aggarwal |JAMM Consulting, Inc. |Custom Programming | |President & CEO |www.JAMMConsulting.com|Java, C, C++, perl,| |[EMAIL PROTECTED]|(972) 612-6056 |HTML, CGI | -------------------------------------------------------------------- - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED]
