0

I have two NIC Card in CentOS Operating System.

Configuration :

(Modem)Router IP = 192.168.1.254
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

5
Contributors
4
Replies
7
Views
6 Years
Discussion Span
Last Post by rubberman
0

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.

0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.