RE: 2 public ips from 2 networks on one server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




At 21:24 27.12.2001 +0100, Serge Maandag wrote:
>Add a host route for 213.33.76.50, not a default route. you don't want all 
>traffic to go 10.1.3.1, just the traffic for 213.33.76.50.
>
>Host routes have precedence over default routes.
>
>route add -host 213.33.76.50 gw 10.1.3.1

Thx for your advice, Serge.
But it didn't work.
213.33.76.50 is the public ip-adress for the server 10.1.3.50. So it's not 
very intersting, on which route the host finds itself.

The problem is, that requests from the internet, which come over the 
firwall (NAT) and the new gateway are maybe replied over the old route.
I think that's the problem, but I'm not sure ..

So what I want is, that all replys to request on 10.1.3.50           from 
the internet should go over the gateway 10.1.3.1.
                                  all replys to request on 194.112.167.130 
from the internet should go over the gateway 194.112.167.130

But I don't know, how this is done ;-(

This is the routing-table of the Win2k-Server, where it works, like I want it:
===========================================================================
List of interfaces
0x1 ........................... MS TCP Loopback interface
0x2 ...00 80 5f a1 a5 59 ...... Compaq NetFlex-3 Driver, Version 4.28
0x2000004 ...00 80 c8 7d a3 17 ...... Novell 2000 Adapter.
===========================================================================
===========================================================================
Active routes:
     Destination    Netmask           Gateway   Interface   Anzahl
           0.0.0.0          0.0.0.0         10.1.3.1       10.1.3.51       1
           0.0.0.0          0.0.0.0  194.112.167.129  194.112.167.131      1
          10.1.3.0    255.255.255.0        10.1.3.51       10.1.3.51       1
         10.1.3.51  255.255.255.255        127.0.0.1       127.0.0.1       1
    10.255.255.255  255.255.255.255        10.1.3.51       10.1.3.51       1
         127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1       1
   194.112.167.128  255.255.255.224  194.112.167.131  194.112.167.131      1
   194.112.167.131  255.255.255.255        127.0.0.1       127.0.0.1       1
   194.112.167.255  255.255.255.255  194.112.167.131  194.112.167.131      1
         224.0.0.0        224.0.0.0        10.1.3.51       10.1.3.51       1
         224.0.0.0        224.0.0.0  194.112.167.131  194.112.167.131      1
   255.255.255.255  255.255.255.255  194.112.167.131  194.112.167.131      1
Defaultgateway:   194.112.167.129
===========================================================================
Persistent routes:
   none

many thx

Thomas Uttenthaler
###############################################
E-Mail: tom@uttenthaler.at
ICQ: 14162173
GSM: +43 664 967 52 30
SMS: sms@uttenthaler.at

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux