- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: IP Aliasing with different gateways
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
02-12-2010 08:04 AM
02-12-2010 08:04 AM
IP Aliasing with different gateways
/etc/rc.local
eth0:1 as 10.157.104.120 with 255.255.255.128
route add default gw 10.157.114.1
eth0:2 as 10.157.68.120 with 255.255.255.0
eth0:3 as 192.168.30.120 with 255.255.255.0
I did the above, however I can't ssh(as gateway isn't set for each subnet I guess as I don't see any gateway from netstat -rn output). But I can ssh through one of the nodes and is working. The reason I want to set like above is for the kickstart setup for different subnet setups. So that I don't need to change each time to switch between the subnets to make kickstart work.
What am I missing? Do I need to add the routing line for each subnet?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2010 11:43 AM
02-12-2010 11:43 AM
Re: IP Aliasing with different gateways
Without adding the default route, eth0 allows access to addresses 10.10.10.(0...255) and eth0:1 to 10.157.104.(0...127).
At the point your route command is issued, eth0:2 and eth0:3 are not defined yet.
You then attempt to add 10.157._114_.1 as the default gateway. Because this is not in any of the already-defined directly-accessible segments and there is no default gateway yet, the system does not know how to reach it. As a result, this route is rejected.
Perhaps you meant 10.157._104_.1 as the default gateway?
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2010 12:27 PM
02-12-2010 12:27 PM
Re: IP Aliasing with different gateways
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2010 05:23 AM
02-16-2010 05:23 AM
Re: IP Aliasing with different gateways
How does your routing table looks like?
(
route -n / netstat -rn
)
The command:
route add default gw 10.157.104.1
gives you any error?
>But I can ssh through one of the nodes and is working.
Which node? from which network/IP address?
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2010 11:00 AM
02-16-2010 11:00 AM
Re: IP Aliasing with different gateways
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2010 11:01 AM
02-16-2010 11:01 AM