- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- two default route - help me
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 01:33 PM
07-05-2005 01:33 PM
two default route - help me
How do I add two default route with two different gateways on different interfaces with different priorities:
eth0 192.168.0.1 Intranet
eth1 192.168.1.1 internet router for internal QMail
eth2 192.168.2.1 internet adsl for Proxy
for the eth1 the gateway must be 192.168.1.254
for the eth2 the gateway must be 192.168.2.254
proxy and navigation must use adsl (192.168.2.254)
and
my email server only the router (192.168.1.254)
my firewall it´s ok...
I need help....
thanks
Fabio Leonardo Jung
from Brasil :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 05:26 PM
07-05-2005 05:26 PM
Re: two default route - help me
In that case, just route that host address through the second interface, instead of a 'default route'.
i.e.
ip route add
(or the older format 'route add -host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 06:40 AM
07-06-2005 06:40 AM
Re: two default route - help me
You should add a line:
GATEWAY=x.y.w.z
For every interface and restart the network services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2005 02:39 PM
07-07-2005 02:39 PM
Re: two default route - help me
you can add a route but you cannot have two default routes since deafault in tech terms by itself tells you that it is the default when there is nothing available.
So have one default route and add the second route
thanks
DP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2005 11:22 PM
08-17-2005 11:22 PM
Re: two default route - help me
you can do one thing .you can set two gateway for one interface with different priority
like
route add net x.x.x.x(n/w ) netmask x.x.x.x xx.xx.xx.xx(gateway) 0 - first gateway
route add net x.x.x.x(n/w ) netmask x.x.x.x xx.xx.xx.xx(gateway) 1 - second priority