# Multi-homed SLES11 Server

**URL:** <https://forums.suse.com/t/multi-homed-sles11-server/22561>\
**Category:** SLES Networking\
**Created:** [April 28, 2012, 4:36am UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561 "2012-04-28T04:36:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![carnold6](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@carnold6](https://forums.suse.com/u/carnold6)\
**Post date:** [April 28, 2012, 4:36am UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/1 "2012-04-28T04:36:11Z")

</div>

I originally posted this on the sonicwall forum but the more I think about this the more I am lead to believe this is a multi-homed issue.  
SLES11 SP1. Heres the problem (stay with me, you will see why I posted here):  
site to site VPN (sonicwall 192.168.123.x to pix 192.168.143.x). From the 192.168.143.x side, i need to get to 192.168.123.4; cannot ping this ip, cannot access any resources on this 1 ip. All other ip’s on the 192.168.123.x side are reachable and working fine (single NIC configured). Here is what i am seeing on the sonicwall logs when accessing 192.168.123.4 from 192.168.143.x:  
Code:  
04/27/2012 08:27:07.320 Notice Network Access TCP handshake violation detected; TCP connection dropped 192.168.143.x, 3537, WAN 192.168.123.4, 80, LAN Handshake Timeout

Also, can not reach the 192.168.143.x single address from 192.168.123.x single address:  
Code:  
04/27/2012 08:43:08.576 Info Network Access ICMP packet from LAN allowed 192.168.124.3, 13927, OPT 192.168.143.x, 8, WAN ICMP Echo, Code: 0

As i look at this log from 192.168.123.x single address, notice he ping comes from 192.168.124 NIC? it appears that it may be making it to the 192.168.143.x single address, the ping is not making it back to the 192.168.123.x single address. This is a multi-NIC server and this ping originates from the OPT side, which also may be a reason the ping is not making it back. Could this be the problem (multi-NIC server)? The 192.168.123 NIC does not have a gateway set: the 192.168.124 NIC does have a default gateway.  
Can anyone help me configure the default gateway for the 192.168.123 network?

---

<div class="post-metadata">

**Author:** ![carnold6](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@carnold6](https://forums.suse.com/u/carnold6)\
**Post date:** [April 28, 2012, 6:05am UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/2 "2012-04-28T06:05:09Z")

</div>

[QUOTE=carnold6;4272]This is a multi-NIC server and this ping originates from the OPT side, which also may be a reason the ping is not making it back. Could this be the problem (multi-NIC server)? The 192.168.123 NIC does not have a gateway set: the 192.168.124 NIC does have a default gateway.  
Can anyone help me configure the default gateway for the 192.168.123 network?[/QUOTE]  
I am fairly certain this is a route issue due to multi-homed server. I changed the default gateway to 192.168.123.x’s gateway and stuff on the other side of the VPN started working. But now, email does not work. So, until i find out how to add a second gateway, i changed back to 192.168.124.x’s gateway. IProute2 is installed and i have found [this](http://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/) but the ip route add 192.168.124.0/24 dev eth1 src 192.168.124.2 table admin returns RTNETLINK answers: invalid argument  
So clearly i do not know the correct command to run to add a second gateway.

---

<div class="post-metadata">

**Author:** ![carnold6](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@carnold6](https://forums.suse.com/u/carnold6)\
**Post date:** [April 28, 2012, 7:29pm UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/3 "2012-04-28T19:29:45Z")

</div>

[QUOTE=carnold6;4274] i have found [this](http://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/) but the ip route add 192.168.124.0/24 dev eth1 src 192.168.124.2 table admin returns RTNETLINK answers: invalid argument  
So clearly i do not know the correct command to run to add a second gateway.[/QUOTE]  
That is because that was the wrong src :)!!! What can I say, it was late here…  
Anyway, after typing in the right ip route command and adding rules, that link solved my problem.

---

<div class="post-metadata">

**Author:** ![carnold6](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@carnold6](https://forums.suse.com/u/carnold6)\
**Post date:** [April 30, 2012, 9:55pm UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/4 "2012-04-30T21:55:56Z")

</div>

On a reboot, the ip route/rules disappear. Anyway to “hard-code” these in so they don’t go away after a server reboot?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [April 30, 2012, 10:20pm UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/5 "2012-04-30T22:20:47Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

I do not know if there is a way to do this with the YaST/sysconfig  
route, but if nothing else you could create a startup script that runs  
the commands again… an after.local file or something symlinked from  
/etc/init.d/rc3.d or something. None of the network settings, other  
than those in YaST or equivalent, will be persistent from one boot to  
another.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.18 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQIcBAEBAgAGBQJPnuYPAAoJEF+XTK08PnB5iQ4P/12qC1EZD9pnKuBD4Uer60iU  
cTA7mxaan8a+oxtkspfQeNM8rfnCn0pr+NgT3CkReBQY46OkFRBgw952bP49ywDn  
+/fJeKmSI6+WHhra+kD5YUO/+MDmbZc9CMTU1X91UBlGOE2l70OuuKsALF5Wcdbg  
xNyOWLfHAFK0zQy4CHIakWr/2CZLlekHFfiitBbN8h9ERCcDhb01xPZkY0Mdydgr  
w6p5dLk64NUeU1Hv3ukrkJ7eeaSXuLTWvf8ohvjvhLDCQFSoBndw5KOVekZTnDfO  
xezfYDiydt6Ai9TayHm7swGsHRW46GjDP6Ej49DD15WtTUI2h1kzduMXxJz//LIq  
0ERg7yYH2puLlcw2J2d/mfyPyQmX+ToLKg53olFwx5w7xaQryeN2ZD40VrGcPckv  
n5FTIN5PInt79KV61w3fPDvwDLjMyGp+7NMexKqYFevGNaZdvdIjIO6odN9DHyHg  
BmbSEKLbxOX1B28GNjTXslgmtd1xGiS+cq/QeORfRaU77+8U/j51M0F9Nf5j3wmn  
OhzHKQP5n7Y8u2nbHTtuq3OpdMFnaATHielNKWDOg0+EYJvJS6DOPoAJVpvu850A  
FqcfatGoaJGp6dY1QbeIsRm+GHswVUHmHLT0EQg1v3oi5bSu8n8+k6o+yc1RzJ+7  
7gDocjJA2W316Vh3NVBP  
=h72T  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![enovaklbank](https://avatars.discourse-cdn.com/v4/letter/e/aca169/32.png) [@enovaklbank](https://forums.suse.com/u/enovaklbank)\
**Post date:** [May 10, 2012, 3:29pm UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/6 "2012-05-10T15:29:18Z")

</div>

@carnold6: you can persist settings in several ways.  
ifcfg-: you can add a PRE\_UP\_SCRIPT, POST\_UP\_SCRIPT etc… entry to the individual ifcfg-files. The scripts invoked here are usually located in /etc/sysconfig/network/scripts  
/etc/sysconfig/network/config - for a global configuration, you can use the entries in this file:  
GLOBAL\_POST\_UP\_EXEC=“yes” , GLOBAL\_PRE\_DOWN\_EXEC=“yes” which run the scripts in /etc/sysconfig/network/if-up.d and if-down.d  
For firewall scripts/settings, check the FW\_CUSTOMRULES="" line in /etc/sysconfig/SuSEfirewall2 which is usually /etc/sysconfig/scripts/SuSEfirewall2-custom .  
HTH

---

<div class="post-metadata">

**Author:** ![Willem1](https://avatars.discourse-cdn.com/v4/letter/w/c57346/32.png) [@Willem1](https://forums.suse.com/u/Willem1)\
**Post date:** [May 14, 2012, 11:20am UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/7 "2012-05-14T11:20:27Z")

</div>

> [@ab;4302](#):
>
> I do not know if there is a way to do this with the YaST/sysconfig route

Yes, this should be possible within YaST’s Network (lan) module, at least in SLES 11 it is. Just head to the Routes TAB and add the needed routes in the section right under the default route. The will be persistent and also become more “portable” as in the sense that the routes will be added in the same place the network configuration is found: /etc/sysconfig/network… I believe in the routes file. When you have configured one servers routes, just copy that file over to another servers /etc/sysconfig/network and restart the network services to make the new route effective (assuming the needed routes, including default route, are the same for the other server).

Cheers,  
Willem

---

<div class="post-metadata">

**Author:** ![carnold6](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@carnold6](https://forums.suse.com/u/carnold6)\
**Post date:** [May 25, 2012, 9:09pm UTC](https://forums.suse.com/t/multi-homed-sles11-server/22561/8 "2012-05-25T21:09:41Z")

</div>

> [@Magic31;4558](#):
>
> Yes, this should be possible within YaST’s Network (lan) module, at least in SLES 11 it is. Just head to the Routes TAB and add the needed routes in the section right under the default route. The will be persistent and also become more “portable” as in the sense that the routes will be added in the same place the network configuration is found: /etc/sysconfig/network… I believe in the routes file. When you have configured one servers routes, just copy that file over to another servers /etc/sysconfig/network and restart the network services to make the new route effective (assuming the needed routes, including default route, are the same for the other server).

I dont see where there is a yast network (lan) module. Could you be more specific? I see a routing option in yast network devices and then the eth(x) but nothing else.
