You are not logged in.

#1 2011-12-06 15:17:43

dsara35
Member
Registered: 2011-05-20
Posts: 2

Two Nic but one gateway

I am using the arch linux for one of my server. the following are the details of NIC and ipaddress

Details:

eth0="eth0 192.168.168.X netmask 255.255.255.252 "
eth1="eth1 117.X.X.X        netmask  255.255.255.248" its public ip

Both has the same gateway 192.168.168.6

gateway=" default gw 192.168.168.6 eth0"

We can able to login the server and ping the gateway 192.168.168.6 but we not able ping the www.google.com(for example).

I am trying to ping -I eth1 www.google.com -> Error destination host unreachable.

My problem is i am having same gateway for both ip my route table is

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use     Iface
0.0.0.0         192.168.168.6   0.0.0.0              UG    0      0         0         eth0
117.X.X.X      0.0.0.0           255.255.255.248   U      0      0         0         eth1
192.X.X.X      0.0.0.0           255.255.255.252   U      0      0         0         eth0

I want to use inbound traffic in both ips but i want to set the all outbond traffic should be go through only in eth1. How to fix this

Offline

#2 2011-12-06 17:52:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Two Nic but one gateway

Why not just bond the two NICs together and limit outbound traffic to half the bandwidth?

Offline

#3 2011-12-06 22:25:34

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Two Nic but one gateway

117.x.x.x is your internet connection?
What is 192.168.168.6?

Offline

#4 2011-12-07 06:48:50

dsara35
Member
Registered: 2011-05-20
Posts: 2

Re: Two Nic but one gateway

Ya 117.X.X.X is one the public ip giving to connect the radius server , 192.168.168.6 is thier private network to route the internet connection

Offline

#5 2011-12-07 08:13:16

kurych
Member
From: Saint-Petersburg, Russia
Registered: 2011-12-07
Posts: 27

Re: Two Nic but one gateway

I think you must try read and understand this one document: Multiple Connections to the Internet
Or search by key words: "dual homed gateway linux".

Last edited by kurych (2011-12-07 08:14:54)

Offline

Board footer

Powered by FluxBB