PC with 2 NICs for 2 networks

I have a problem here. I have a PC with 4 built-in NIC cards (4 eth port). Now I want to set my PC to access an internet and at the same time access our corporate data network (LAN).

I am using Fedora 10 and not windows to simplify its functionality.

Currently eth0 (INTERNET) is set as follows:
IP: 192.168.0.100
SM:255.255.255.0
GW: 192.168.0.1

the other NIC eth1 (CDN:DEFAULT) is set as follows:
IP: 13.125.49.100
SM:255.255.255.0
GW:13.125.49.1

How will I be able to access a PC in a LAN and access the internet at the same time?
mmcpuraAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BlazCommented:
You are basically asking about routing.

You need to set the default gateway for traffic to eth0 and add selected (needed) routes on eth1.

1. Do not set the gw on eth1

2. If the LAN IPs are only 13.125.49.100/255.255.255.0 then this is it. Otherwise add necessary networks to routing table:
route add -net 10.0.0.0 netmask 255.0.0.0 gw 13.125.49.1
0
Kamran ArshadIT AssociateCommented:
Hi,

Also set DNS for the Internet connection and No DNS for the LAN connection.
0
AbilisCommented:
Be ware that the network address 13.125.49.100/24 is out of address reserverd for local networks.

Is this machine going to work as a firewall/router for your corporate network? If the answare is yes, configure the NICs linke this:

Currently eth0 (INTERNET) is set as follows:
IP: 192.168.0.100
SM:255.255.255.0
GW: 192.168.0.1 (this is the final gateway ip)

the other NIC eth1 (CDN:DEFAULT) is set as follows:
IP: 13.125.49.100
SM:255.255.255.0
GW:null

After configuring the NICs, you need to configure NAT on eth0 usgin IPtables.

If you are just going to put this computer inside the LAN, keep the same NIC configurations that I said before. Usually, the LAN switch take care of forwarding the packets to appropriate destination.

The same internet gateway host is going to serve this machine and the corporate LAN? If so, you need to configure two NICs at the gateway or add a virual address, so it can be reached from the two inside networks, the 192.168.0.0 and the 13.125.49.0.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

mmcpuraAuthor Commented:
Hi Blaz/uetian1707,

Thanks for the reply. Please find below the configuration:

Currently eth0 (INTERNET) is set as follows:
IP: 192.168.0.100
SM:255.255.255.0
GW: 192.168.0.1
DNS1: 208.67.222.222
DNS2: 208.67.220.220

the other NIC eth1 (CDN:DEFAULT) is set as follows:
IP: 13.125.49.100
SM:255.255.255.0
GW:
DNS1: xxx.xxx.xxx.xx1
DNS2: xxx.xxx.xxx.xx2

"2. If the LAN IPs are only 13.125.49.100/255.255.255.0 then this is it."
- Where will I place this... eth0/eth1?

"Otherwise add necessary networks to routing table:
route add -net 10.0.0.0 netmask 255.0.0.0 gw 13.125.49.1"
- ERROR: Operation not permitted

Thanks,
0
BlazCommented:
> "2. If the LAN IPs are only 13.125.49.100/255.255.255.0 then this is it."
> - Where will I place this... eth0/eth1?

I don't quite get your question. My comment was that if the LAN you wish to access has IPs only in the range 13.125.49.1-13.125.49.254 then you don't need to do any further settings.

> "Otherwise add necessary networks to routing table:
> route add -net 10.0.0.0 netmask 255.0.0.0 gw 13.125.49.1"
> - ERROR: Operation not permitted

What other IPs are in the LAN? You have to change to correct IPs or don't need to run this rule at all if there are no additional IPs. To run this command you should be root.
0
mmcpuraAuthor Commented:
Well done.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.