LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-05-2008, 06:15 AM   #1
satish
Member
 
Registered: Jan 2006
Posts: 171

Rep: Reputation: 15
routing of all nics


ISP --> redhat 9 linux |
| --> redhat 9 linux (eth0: 192.168.1.2)
| --> redhat 9 linux (eth1: 59.144.124.58)
| --> redhat 9 linux (eth1: 192.168.100.149)
| --> redhat 9 linux (eth1: 10.32.138.42)
| --> Switch
| --> Trading Pc

this is my network diagram and below i am giving the ifconfig

eth0 Link encap:Ethernet HWaddr 00:08:A1:50:FE:12
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32569460 errors:0 dropped:0 overruns:0 frame:0
TX packets:18503534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1218517006 (1162.0 Mb) TX bytes:1151927937 (1098.5 Mb)
Interrupt:11 Base address:0x800

eth1 Link encap:Ethernet HWaddr 00:50:BA:88:64:23
inet addr:59.144.124.58 Bcast:59.144.124.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16132802 errors:0 dropped:0 overruns:0 frame:0
TX packets:16511583 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3201863858 (3053.5 Mb) TX bytes:3055249671 (2913.7 Mb)
Interrupt:11 Base address:0xfc00

eth2 Link encap:Ethernet HWaddr 00:11:11:BC:6A:64
inet addr:192.168.100.149 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2690408 errors:0 dropped:0 overruns:0 frame:0
TX packets:43430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:378724089 (361.1 Mb) TX bytes:5372180 (5.1 Mb)
Interrupt:11 Base address:0xd080 Memory:ff8fe000-ff8fe038

eth3 Link encap:Ethernet HWaddr 00:80:48E:78:89
inet addr:10.32.138.40 Bcast:10.32.138.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:169
TX packets:0 errors:13284 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:2457018 (2.3 Mb)
Interrupt:9 Base address:0xdc00

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80891 errors:0 dropped:0 overruns:0 frame:0
TX packets:80891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12885730 (12.2 Mb) TX bytes:12885730 (12.2 Mb)

this is my redhat9 linux server the ip 59.144.124.58 (eth1) is our internet service provide ip,192.168.1.2 (eth0) is the ip of our backoffice lan network,192.168.100.149(eth2) is the ip of or trading network and 10.32.138.42 is i added in the server for 2 reasons

1.) my internet works on my local lan from the 192.168.1.2 ip,i want it also work from 10.32.138.42 ip,it means internal routing between internal ips.

2.) we have the bombay stock exchange router in our office which having the ip 10.32.138.1,when you give the router's ip address in client windows xp pc as a gateway then only the software works.Now i want to run the software from 10.32.138.42(eth3)ip,so i have to put 10.32.138.1 as a gateway in eth3 ifcfg-eth3 file.

this means the eth3(10.32.138.42)ip will do 2 work for me it gives me the internet packets and bse trading packets also

The bse trading software using following ports when i open from 10.32.138.1 (router's ip)here iam giving the netstat for the ports.

Active Connections

Proto Local Address Foreign Address State
TCP 10.32.138.55:1627 137.201.13.201:21 ESTABLISHED
TCP 10.32.138.55:1629 137.201.13.201:21 ESTABLISHED
TCP 127.0.0.1:1033 10.32.138.55:1627 ESTABLISHED

here the ip 137.201.13.201 is the ip of bse trading server and port 21

so please give any route and iptables command in detail


Thanks

Satish

Last edited by satish; 07-05-2008 at 06:16 AM.
 
Old 07-05-2008, 09:25 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian Lenny
Posts: 187

Rep: Reputation: 33
You can install last fwbuilder version and do it graphically, forgetting iptables and route commands. fwbuilder uses iptables and route, so you can take the file made by fwbuilder and then, if you want, touch it manually, or see how does it do something.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with routing for two NICs bramint Linux - Networking 8 07-24-2007 02:49 PM
routing with 2 nics jonfa Linux - Networking 11 04-12-2007 02:04 AM
Two NICs and routing bks Linux - Networking 2 02-19-2007 01:14 PM
Routing between 2 NICs Tinochelli Linux - Networking 4 12-09-2004 11:33 AM
Routing with 3 nics _TK_ Linux - Networking 2 09-25-2001 11:32 AM


All times are GMT -5. The time now is 06:37 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration