LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-06-2014, 07:30 AM   #1
__vivek__
LQ Newbie
 
Registered: Jul 2013
Location: INDIA
Distribution: CentOS
Posts: 7

Rep: Reputation: Disabled
Dual WAN Plus Single LAN Interface configuration for a VPN device


Hello All,

I need to configure 2 WAN interfaces for an Centos 3.8 server, the server already has two Interfaces eth0 and eth1 configured with LAN and WAN IPs.

eth0 Link encap:Ethernet HWaddr 00:25:90:D2:B3:81
inet addr:191.191.1.190 Bcast:191.191.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1276560 errors:0 dropped:0 overruns:0 frame:0
TX packets:797428 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:676799549 (645.4 Mb) TX bytes:108254374 (103.2 Mb)
Interrupt:11 Memory:dfe00000-dfe20000

eth1 Link encap:Ethernet HWaddr 00:25:90:D2:B3:80
inet addr:27.X.X.26 Bcast:27.X.X.31 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2185824 errors:0 dropped:0 overruns:0 frame:0
TX packets:2533231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:340569314 (324.7 Mb) TX bytes:665885273 (635.0 Mb)
Interrupt:11 Memory:dfd00000-dfd20000


Now I attached an additional NIC and added the Interface eth2 with following configurations::

eth2 Link encap:Ethernet HWaddr 00:25:90:E4:38:C0
inet addr:123.X.X.130 Bcast:123.X.X.131 Mask:255.255.255.252
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Also the output of ip route ::

123.X.X.128/30 dev eth2 proto kernel scope link src 123.X.X.130
27.X.X.24/29 dev eth1 proto kernel scope link src 27.X.X.26
191.X.X.0/24 dev eth0 proto kernel scope link src 191.X.X.190
default via 27.X.X.25 dev eth1

I didn't added GATEWAY entry for eth2 device because As i assume it will change the default gw and my server can go unreachable.

So I just want to understand few things --

1) Do I need gateway entries for each WAN in ifcfg-ethX
2) IF yes then which Interface is going to be used for outgoing traffic
3) what happens when eth1 goes down, will eth2 be able to provide me uninterrupted connection even if default gw is for eth1

Thanks

Last edited by __vivek__; 05-06-2014 at 07:32 AM.
 
Old 05-07-2014, 04:05 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Standard route tools do not allow multiple gateways and uninterrupted failover.
For that you need iproute2 tools and kernel modules. See here:

http://lartc.org/howto/index.html
 
  


Reply

Tags
centos, networking, routing, wan



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual WAN VPN link bonding and VPS advice needed m_elias Linux - Networking 1 11-16-2012 06:00 PM
LAN/WAN Loopback Configuration Refael Alats Linux - Networking 0 05-28-2011 03:19 PM
Xen with bond0 LAN and interface for WAN barghota Linux - Virtualization and Cloud 1 06-28-2010 08:12 AM
Configuration of Susefirewall2 for use of pptp from local lan to wan mythanhluong SUSE / openSUSE 0 01-04-2007 01:37 PM
VPN single interface card kloppster Linux - Networking 0 10-13-2004 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration