Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux routing help

Reply
Thread Tools Display Modes

linux routing help

 
 
Jemy
Guest
Posts: n/a

 
      08-20-2004, 02:19 AM
Hi all,
We are running redhat 7.3 linux based firewall+nat+iptable server with 2
nics, with 1 public ip + 1 internal network. However, due to our setup and
upgrade recently, we cater additional public ip (belong to same network as
previous public ip). Due to iptables do not work with ip aliases, we are now
adding additional nic card to serve the new ip. Now, total 3 nics.


|------- public ip 1 (same network as public ip 2) x.y.37.19
(eth0)
|
|
|------- public ip 2 (same network as public ip 1) x.y.37.22
(eth2)
|
|
|------- internal network 192.168.1.0 (eth1)

We just tested the system and some mapping and routing do not work its way,
many mapping do not work thru eth0 -> eth1, some work. The following is the
routing table, generated automatically by the network service.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
x.y.37.16 (broadcast) * 255.255.255.248 U 0 0 0
eth2
x.y.37.16 * 255.255.255.248 U 0 0 0 eth2
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default x.y.37.17 (gateway) 0.0.0.0 UG 0 0 0
eth2

Is there anything wrong or incomplete table? eth0 seems missing. Should it
be there? I am a newbie in configuring routing, should anything be
configured manually? Any suggestion is very much appreciated.

Thanks in advance.
Jemy






 
Reply With Quote
 
 
 
 
David Efflandt
Guest
Posts: n/a

 
      08-20-2004, 10:29 AM
On Fri, 20 Aug 2004 10:19:51 +0800, Jemy <(E-Mail Removed)> wrote:
> Hi all,
> We are running redhat 7.3 linux based firewall+nat+iptable server with 2
> nics, with 1 public ip + 1 internal network. However, due to our setup and
> upgrade recently, we cater additional public ip (belong to same network as
> previous public ip). Due to iptables do not work with ip aliases, we are now
> adding additional nic card to serve the new ip. Now, total 3 nics.
>
>
> |------- public ip 1 (same network as public ip 2) x.y.37.19
> (eth0)
> |
> |
> |------- public ip 2 (same network as public ip 1) x.y.37.22
> (eth2)
> |
> |
> |------- internal network 192.168.1.0 (eth1)
>
> We just tested the system and some mapping and routing do not work its way,
> many mapping do not work thru eth0 -> eth1, some work. The following is the
> routing table, generated automatically by the network service.
>
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> x.y.37.16 (broadcast) * 255.255.255.248 U 0 0 0
> eth2
> x.y.37.16 * 255.255.255.248 U 0 0 0 eth2
> 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> default x.y.37.17 (gateway) 0.0.0.0 UG 0 0 0
> eth2
>
> Is there anything wrong or incomplete table? eth0 seems missing. Should it
> be there? I am a newbie in configuring routing, should anything be
> configured manually? Any suggestion is very much appreciated.


Whichever one of eth0 or eth2 that is your public interface (to internet)
should likely have netmask 255.255.255.255, host route to x.y.37.17, and
that as gateway. Whichever one of those is your public DMZ (public IPs
behind your router) should have the 255.255.255.248 netmask. You can
actually use the same IP for eth0 and eth2, as long as netmasks and
routing are correct (different).

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
Jemy
Guest
Posts: n/a

 
      08-27-2004, 10:34 AM
David, Gary, thanks for pointing out and advice, my problem solve finally..
Thanks!


"David Efflandt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Fri, 20 Aug 2004 10:19:51 +0800, Jemy <(E-Mail Removed)>

wrote:
> > Hi all,
> > We are running redhat 7.3 linux based firewall+nat+iptable server with 2
> > nics, with 1 public ip + 1 internal network. However, due to our setup

and
> > upgrade recently, we cater additional public ip (belong to same network

as
> > previous public ip). Due to iptables do not work with ip aliases, we are

now
> > adding additional nic card to serve the new ip. Now, total 3 nics.
> >
> >
> > |------- public ip 1 (same network as public ip 2) x.y.37.19
> > (eth0)
> > |
> > |
> > |------- public ip 2 (same network as public ip 1) x.y.37.22
> > (eth2)
> > |
> > |
> > |------- internal network 192.168.1.0 (eth1)
> >
> > We just tested the system and some mapping and routing do not work its

way,
> > many mapping do not work thru eth0 -> eth1, some work. The following is

the
> > routing table, generated automatically by the network service.
> >
> > Kernel IP routing table
> > Destination Gateway Genmask Flags Metric Ref Use
> > Iface
> > x.y.37.16 (broadcast) * 255.255.255.248 U 0 0 0
> > eth2
> > x.y.37.16 * 255.255.255.248 U 0 0 0 eth2
> > 192.168.1.0 * 255.255.255.0 U 0 0 0

eth1
> > 169.254.0.0 * 255.255.0.0 U 0 0 0

eth2
> > 127.0.0.0 * 255.0.0.0 U 0 0 0

lo
> > default x.y.37.17 (gateway) 0.0.0.0 UG 0 0 0
> > eth2
> >
> > Is there anything wrong or incomplete table? eth0 seems missing. Should

it
> > be there? I am a newbie in configuring routing, should anything be
> > configured manually? Any suggestion is very much appreciated.

>
> Whichever one of eth0 or eth2 that is your public interface (to internet)
> should likely have netmask 255.255.255.255, host route to x.y.37.17, and
> that as gateway. Whichever one of those is your public DMZ (public IPs
> behind your router) should have the 255.255.255.248 netmask. You can
> actually use the same IP for eth0 and eth2, as long as netmasks and
> routing are correct (different).
>
> --
> David Efflandt - All spam ignored http://www.de-srv.com/



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Routing billdangerous@gmail.com Linux Networking 5 09-11-2008 01:53 PM
Linux Routing Noah Roberts Linux Networking 6 01-16-2005 01:36 AM
If I replace my existing Linksys box with Linux Router, how can I know what kind of Routing to be enabled on my Linux Box? santa19992000@yahoo.com Linux Networking 3 01-06-2005 01:18 PM
linux routing Jemy Linux Networking 2 08-24-2004 03:21 AM
Routing on Red Hat Linux 9 Aleksandr Zingorenko Linux Networking 3 07-09-2003 12:56 PM



1 2 3 4 5 6 7 8 9 10 11