Fedora 11 external network and internal network

Scenario / Question:

I have a computer connected to external network with one network card and connected to internal network with another network card. I want to have all external traffic use one nic and all internal traffic use another nic.

Solution / Answer:

If you do not require NAT or Masquerade then you only have to change your routes. This can be done with the NetworkManager applet.

Change Routes with Gnome NetworkManager

Right click NetworkManager icon in task tray.

Select “Edit Connections…”

Select the Internal Network card connection (System eth0)

Screenshot-Network-Connections

Click “Edit” on the right menu

Select the “IPv4 Settings” Tab

Click “Routes…”

Screenshot-Editing-System-eth0

Click check box “Use this connection only for resources on its network”

Screenshot-Editing-IPv4-routes-System-eth0

Click “OK”

Click “Apply”

Disable and Re-Enable Networking

Right click NetworkManager icon in task tray

Uncheck “Enable Networking” (disables networking)

Check “Enable Networking” (re-enables networking)

Confirm Changes

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
200.80.70.40    *               255.255.255.248 U     1      0        0 eth1
192.168.1.0     *               255.255.255.0   U     1      0        0 eth0
default         200.80.70.40    0.0.0.0         UG    0      0        0 eth1

All internal traffic will go through eth0 on network 192.168.1.0

All other (external) traffic will go through eth1 default gateway 200.80.70.40

No Comments

Leave a reply