- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: recompiling Kernel in RedHat
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 04:03 AM
06-04-2003 04:03 AM
recompiling Kernel in RedHat
Man page for ipmasqadm shows that:
"Kernel must have been compiled with
CONFIG_EXPERIMENTAL=y
CONFIG_IP_MASQUERADE=y
CONFIG_IP_MASQUERADE_MOD=y
..."
How can I verify if my Kernel were compiled with those parameters and if it wasn't how can I recompile it?
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 04:24 AM
06-04-2003 04:24 AM
Re: recompiling Kernel in RedHat
The configs used for the sock kernels ar kept in /usr/src/linux-2-4/Configs.
Find the config file name that matches your running kernel , and grep for the parameters you mention in it.
For kernel compile,
install the kernel dev tools, the kernel-source, and kernel headers, and follow the description of the customisation guide on the redhat site, for the distro you have.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 04:48 AM
06-04-2003 04:48 AM
Re: recompiling Kernel in RedHat
you have your points, anyway...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 05:36 AM
06-04-2003 05:36 AM
Re: recompiling Kernel in RedHat
actually you have to install the kernel-source-ver.arch.rpm to get the directories I was talking about... Sorry about that.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 05:38 AM
06-04-2003 05:38 AM
Re: recompiling Kernel in RedHat
I also would very much like to know if there is a way to extract the config a binary kernel was compiled with.
I've tried search for it, but found nothing yet.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 05:43 AM
06-04-2003 05:43 AM
Re: recompiling Kernel in RedHat
you know of course that you need to turn on ip-forwarding in order to do NAT/MASQUERADE ?
sysctl -a|grep net.ipv4.ip_forward > should be 1.
If not, sysctl -w net.ipv4.ip_forward=1 ,and put net.ipv4.ip_forward=1 in /etc/sysctl.conf to make it permanent through reboots.
Rgds Jarle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 12:53 AM
06-05-2003 12:53 AM
Re: recompiling Kernel in RedHat
I would recommend the kernel how-to to know how to compile and install a new kernel.
http://www.tldp.org/HOWTO/Kernel-HOWTO/
To be short, kernel compilation could be resume by :
1- install kernel sources (from kernel.org), in /usr/src,
2- cd /usr/src/kernel2.4.xx,
3- make menuconfig, (save your changes by leaving),
4 - make dep,
5 - make clean,
6 - make bzImage,
7 - make modules,
8 - make modules_install
9 - Install your new kernel in your boot directory, install also System.map.
10 - Update you boot loader
11 - reboot. it should be ok !! (If you didn't forget to include all the drivers of your conf).
Nota I would recommend also iptables tools to replace ipchains (these are the new tools from netfilter). But there is also an masquerading how to which can help you in all the steps (kernel config also)
hth
Benoit
_________
"Faites-vous des amis prompts a vous censurer." -- Nicolas Boileau, Satires