Setting Up Routing In Linux Redhat 9 Help


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Setting Up Routing In Linux Redhat 9 Help
# 1  
Old 02-18-2005
Setting Up Routing In Linux Redhat 9 Help

Smilie I have just recently got into using Linux RedHat 9. So far I love it, I have set it up on a server I am running. Right now I have set up Samba and am running a file server for my house. I have four computers, the linux box is connected to the internet through a switch I have. There are two NICS in the linux box, and I want one computer to gets its net connection through ther linux box. eth0 is connected to the internert, and eth1 is connected to my other computer with a crossover cable. Both card light up, but I get no net connection on my computer that is connected to the linux box. I have tried looking online for instuctions on how to set this up so i get a net connection on the other machine, but have had no help. If anyone knows how to do this or knows where to go to get step by step instructions please let me know.
P.S. I dont know a ton about networking..just enough to set up a swtich and get my machines online..
# 2  
Old 02-18-2005
You will need to use ipchains (masquerading). Here is a howto: ftp://ftp.ibiblio.org/pub/Linux/docs...IPCHAINS-HOWTO

Basically what you want to do is setup your firewall rules so that eth0 will be external and eth1 will be internal. Then you will be able to foward packets.

Only why would you want to do this? Why not just hook up your other computer to the switch?

Hope this helps,
Robert
# 3  
Old 02-18-2005
You can do this without ipchains... you simply enable IP forwarding in the Linux kernel. The rest is setting up the routing table correctly.

One example tutorial

Here is another example tutorial

(you get the idea...)

Neo
# 4  
Old 02-19-2005
Quote:
Originally Posted by Phobos
You will need to use ipchains (masquerading). Here is a howto: ftp://ftp.ibiblio.org/pub/Linux/docs...IPCHAINS-HOWTO

Basically what you want to do is setup your firewall rules so that eth0 will be external and eth1 will be internal. Then you will be able to foward packets.

Only why would you want to do this? Why not just hook up your other computer to the switch?

Hope this helps,
Robert
I need to do this because I am out of ports on my switch, and I already have the box with the two NICS in it.
# 5  
Old 02-19-2005
Thanks guys I will try this out Smilie
If anyone else has any help feel free to post it..I could use it
# 6  
Old 02-20-2005
Ok that half way worked....I can get on my Intranet, but I cannot get to the Internet Smilie Does anyone have any suggestions? The linux box is online.

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Proxy Server

RedHat Satellite server - Setting up HP Repository

Hi all, We have been using Satellite to patch our RedHat servers for a while but up until recently these have only been virtual machines. Now we have a requirement to install a few physicals and I am trying to setup a sync a custom channel for the HP reository. Our setup is that the... (2 Replies)
Discussion started by: wayned
2 Replies

2. Red Hat

Redhat Cluster updating kernel setting

hello, I was going through clustering documentation for Redhat, it says "Enable IP Aliasing support in the kernel by setting the CONFIG_IP_ALIAS kernel option to y. When specifying kernel options, under Networking Options, select IP aliasing support", I knew I should update /etc/sysctl.conf with... (1 Reply)
Discussion started by: bobby320
1 Replies

3. Homework & Coursework Questions

Redhat LINUX 5 setting In VMWARE

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have installed Redhat Linux 5 in VMWARE and would need to access through putty form the same desktop or... (2 Replies)
Discussion started by: SasiWipro
2 Replies

4. Red Hat

Setting an alias in Redhat

Hi Everyone, I am trying to set up alias the only way I now how, buy making entry into .bashrc file. The entry I made is alias ll='ls -lrt' It is not working as I expect. When I enter "alias" at the command line I get the following. $ alias alias l.='ls -d .* --color=tty' alias... (2 Replies)
Discussion started by: jxh461
2 Replies

5. Red Hat

Setting keyboard configaration in redhat ES4

Hi, can someone tell me how to set the keyboard configaration at console in redhat Linux ES 4. I don't want it in x-windows mode. Also, how can I find all the keyboard configarations available. Thanks in advance. Sunny (0 Replies)
Discussion started by: eamani_sun
0 Replies

6. Red Hat

Setting a locale in Redhat ES 4

Hi, I am writing a shell script which would ask user to select a locale and should set the locale for them. In the script I am doing export LANG=<user selected locale> and i do 'locale' it would show me the changed locale. But, when I come out of the program and do 'locale' it... (3 Replies)
Discussion started by: eamani_sun
3 Replies

7. Linux

Routing in Linux

Hello All, I know it's a tricky probably stupid question but I'm stuck.... :( Is there any way to route different protocols through different eth cards for the same destination in Linux? With route add or something like it? For instance: FTP to/from 192.168.1.1 goes through eth0 - gw2... (1 Reply)
Discussion started by: pmpx
1 Replies

8. Linux

linux routing

how i add new routes to my linux machine (1 Reply)
Discussion started by: youmna
1 Replies

9. Red Hat

Linux Routing Help

I have just recently got into using Linux RedHat 9. So far I love it, I have set it up on a server I am running. Right now I have set up Samba and am running a file server for my house. I have four computers, the linux box is connected to the internet through a switch I have. There are two NICS in... (1 Reply)
Discussion started by: xTHESEUSx
1 Replies

10. Linux

NAT Routing in linux

How to use NAT Router in linux Redhat 6 ? and what packages and configuration are required ? (1 Reply)
Discussion started by: salhoub
1 Replies
Login or Register to Ask a Question