HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to Configure Two Gateways
Operating System - Linux
1830044
Members
3090
Online
109998
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-01-2008 08:01 PM
12-01-2008 08:01 PM
How to Configure Two Gateways
My OS is Red Hat Enterprise Linux ES release 4 (Nahant Update 5).
I have two NIC and two different network IP is used there.My routing table is
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.111.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.16.110.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 172.16.111.253 0.0.0.0 UG 0 0 0 eth1
and in /etc/sysconfig/network-scripts i hav created two routing files
route-eth0 is
ADDRESS0="172.16.110.50"
NETMASK0="255.255.255.0"
GATEWAY0="172.16.110.253"
route-eth1 is
ADDRESS1="172.16.111.50"
NETMASK1="255.255.255.0"
GATEWAY1="172.16.111.253"
but it is not working. Is the syntax ok? or any other permission or workaround should be there.
Please advice me.
I have two NIC and two different network IP is used there.My routing table is
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.111.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.16.110.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 172.16.111.253 0.0.0.0 UG 0 0 0 eth1
and in /etc/sysconfig/network-scripts i hav created two routing files
route-eth0 is
ADDRESS0="172.16.110.50"
NETMASK0="255.255.255.0"
GATEWAY0="172.16.110.253"
route-eth1 is
ADDRESS1="172.16.111.50"
NETMASK1="255.255.255.0"
GATEWAY1="172.16.111.253"
but it is not working. Is the syntax ok? or any other permission or workaround should be there.
Please advice me.
a warrior never quits
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 08:32 PM
12-01-2008 08:32 PM
Re: How to Configure Two Gateways
¿What are you trying to do? In your configuration files, you are trying to add a "gateway" for hosts that can be reached directly by the host. As the host has network interfaces on each network, you don't need a gateway to reach 172.16.110.50 or 172.16.111.50.
Also, besides is wrong your route configuration, you are having several problems in your config files. In both, should be ADDRESS0, NETMASK0 and GATEWAY0 as is the first route for each interface. You should not specify a network mask /24 for a host route.
Also, besides is wrong your route configuration, you are having several problems in your config files. In both, should be ADDRESS0, NETMASK0 and GATEWAY0 as is the first route for each interface. You should not specify a network mask /24 for a host route.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2008 08:41 PM
12-01-2008 08:41 PM
Re: How to Configure Two Gateways
actually the problem is i have 8 Linux servers and all of them consists of two NIC card and assigned two different network.
Whenever i ping to one NIC it comes so speedily and whenever i ping the other NIC it comes after a while.
both NIC are connected in a cisco switch which has default STP protocol enabled.
Whenever i ping to one NIC it comes so speedily and whenever i ping the other NIC it comes after a while.
both NIC are connected in a cisco switch which has default STP protocol enabled.
a warrior never quits
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2008 09:25 PM
12-26-2008 09:25 PM
Re: How to Configure Two Gateways
thanks all guyz. i have solved it using a sample bash script in concept of multihomed linux.
a warrior never quits
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP