954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

routing table configure with two NIC in CentOS

I have two NIC Card in CentOS Operating System.

Configuration :

(Modem)Router IP = 192.168.1.254 [I set modem as bridge mode]
eth0 : 192.168.1.2 ------ LAN IP
Mask : 255.255.255.0
GW : 192.168.1.2
eth1 : 210.211.251.230 ---- Public ID [Static IP]
MASK : 255.255.255.0
GW : 210.251.251.1


I want to transfer the network traffic eth1[Public IP] to eth0 [Local IP] . so the windows host can also connected to Internet connection.


I have also Enable Forward_IPV4.
I Disable Firewall Using This Command : chkManager iptables off

Problem IS How Can I Routing table?

IS There Any Problem Regrding Firewall?

Is Any Extra Configuration Require?

Please Give Suggestion for Routing Table For This Configuration.

thanks

chiragsathit
Newbie Poster
14 posts since May 2010
Reputation Points: 10
Solved Threads: 3
 

GW for eth0 should be 192.168.1.254. I dont' understand what you mean by:
I want to transfer the network traffic eth1[Public IP] to eth0 [Local IP] . so the windows host can also connected to Internet connection.

superhustler
Newbie Poster
3 posts since Aug 2011
Reputation Points: 10
Solved Threads: 1
 

first of all i want to know is your windows host is in 192.168.1.0 network ? if so then as you already forwarded ip now what you have to do is set the gateway and dns ip for windows host as follows:
gateway : your lan ip of linux host
dns: your public ip address

ipradip
Light Poster
43 posts since Aug 2009
Reputation Points: 10
Solved Threads: 5
 

Hi chiragsathit,
Are you able to ping the router's i.p(192.168.1.254) and the Windows machine from the Cent-OS machine? And also, help us to understand your setup. Here is how I understand it. Windows machine---->Router(in bridge mode)---->Cent-OS machine--->Internet Link.

c-tech
Junior Poster
119 posts since Aug 2007
Reputation Points: 13
Solved Threads: 8
 

You might need to set up the CentOS system to be a network bride. The video in this link may help: http://www.securitytube.net/video/983
And this how-to may also: http://www.linux-tutorial.info/modules.php?name=Howto&pagename=Ethernet-Bridge-netfilter-HOWTO

rubberman
Posting Virtuoso
1,559 posts since Mar 2010
Reputation Points: 277
Solved Threads: 178
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: