Two gateways


 
Thread Tools Search this Thread
Operating Systems BSD Two gateways
# 1  
Old 06-02-2009
Two gateways

I have a web server running FreeBSD 7.2, i have configured two NICs in the following way:
fxp0: 200.14.xxx.254
sk0: 200.12.xxx.4

gateway: 200.14.xxx.1

both ip addresses are public but only those requests to fxp0 are successful.


I have tried configuring nat and binat in sk0 but it doesn't work, any suggestion?

thanks in advance
# 2  
Old 06-02-2009
error messages and configs would be a big help.
# 3  
Old 06-02-2009
R3d The reason is quite simple but i can't fix it, when a request arrives from sk0 the server tries to answer through the gateway, however the packet is routed to 200.14.xxx.1 (fxp0) then the client never receives ACK
# 4  
Old 06-02-2009
my thought is that you will need to build a routing table.
# 5  
Old 09-14-2009
I realize that this is about 2 years late, but freebsd will only route to the locally connected lan on the nic that the traffic originates from. If it's from a lan other than the nic's local lan, the return path will be the default gateway. To have traffic route the other nic, you'll need to set up routing protocols or static routes.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

iptables / ip route packet routing with multiple gateways

Hi all. Linux noob here. I was hoping someone could help me with configuring some routing rules on my router, an Asus AC68. The router is connected to two gateways, wan0_gateway and wan1_gateway. I have rules set up in the router gui that will push all traffic from every IP other than my own... (0 Replies)
Discussion started by: Bishi
0 Replies

2. AIX

2 default gateways

I have a bunch of servers on AIX, we have at least 2 NIC cards in each of them. We upgraded them from AIX 4.2 to AIX 5.2. Since then when we reboot a server its always coming up with 2 default gateways. Habitually this is not a problem but sometime its causing some connection problem. We... (10 Replies)
Discussion started by: ce9888
10 Replies

3. Shell Programming and Scripting

configuring 2-gateways in linux

Hi, I want to configure 2-gateways in Linux . Please tell me how I can achieve this. I am accesing 2-internet connection through these 2-gateways. So I am looking that if 1-gets down then also other one is working. Regards JAGDISH (1 Reply)
Discussion started by: jagdish.machhi@
1 Replies

4. Solaris

Configuring 1 Nic card with 2 IP addresses and 2 seperate default Gateways in Solaris

Hi ...... I'm trying to configure my Solaris servers with only one NIC card to have 2 IP addresses as well as 2 different default gateways. ( NOT to be confused with multi-pathing - with 2 physical IPs & 1 virtual ip) Thanks, Remi (1 Reply)
Discussion started by: Remi
1 Replies

5. AIX

setup of 2 gateways on AIX

Please, anybody help on resolving the following problem? I have 2 netwotks ( 10.0.0.0 and 10.0.11.0 ) on 2 different areas I need both networks to telnet the corresponding ethernet card. This is a prblem because AIX is configured with a default gateway. Please advice how to assign 2... (2 Replies)
Discussion started by: mynikolas
2 Replies

6. IP Networking

2 gateways on the same unix box

Hello there: I have these situation : I have a unix sco openserver 5.0.7 box and a windows server 2003. There is a main office and 2 remote office that log in trough a vpn tunnel. One tunnel From Main to remote1 and the other from Main to remote 2. Problem! The dsl connection i have is... (2 Replies)
Discussion started by: josramon
2 Replies

7. UNIX for Dummies Questions & Answers

gateways

I cannot change my gateway. I have five locations (simulated) and i try to ping another of my locations but it says host unreachable and it is showing the gateway as the host i'm pinging withs ip address. I have tried the route command but I couldn't get it to work. Any suggestions on how to... (2 Replies)
Discussion started by: Deuce
2 Replies
Login or Register to Ask a Question