All of lore.kernel.org
 help / color / mirror / Atom feed
* Creating Aliases in Domains
@ 2004-11-12  5:57 Phil Carinhas
  2004-11-14  4:56 ` Creating Aliases in Domains - Solution? Phil Carinhas
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Carinhas @ 2004-11-12  5:57 UTC (permalink / raw)
  To: xen-devel

  FYI,

  This may be known, but I discovered how to create an alias interface
  for a domain. Using the same gateway as the primary nic
  doesn't work for a Debian-stable xenU. Using the network number
  the bridge IP, or the primary eth0 number seems to work ok:
  

iface eth0 inet static 
  address 214.213.44.21
  netmask 255.255.255.240
  gateway 214.213.44.17

iface eth0:1 inet static 
  address 214.213.44.22
  gateway 214.213.44.21 (or .18 which is the Xen0 ip)
  netmask 255.255.255.240

 The alias (virtual if) is routing to the bridge.
 If you see a better way please share.

-Phil Carinhas
--
 .--------------------------------------------------------.
 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |
 `--------------------------------------------------------'


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Creating Aliases in Domains - Solution?
  2004-11-12  5:57 Creating Aliases in Domains Phil Carinhas
@ 2004-11-14  4:56 ` Phil Carinhas
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Carinhas @ 2004-11-14  4:56 UTC (permalink / raw)
  To: xen-devel

On Thu, Nov 11, 2004 at 11:57:03PM -0600, Phil Carinhas wrote:
>   FYI,
> 
>   This may be known, but I discovered how to create an alias interface
>   for a domain. Using the same gateway as the primary nic
>   doesn't work for a Debian-stable xenU. Using the network number
>   the bridge IP, or the primary eth0 number seems to work ok:
> 
> iface eth0 inet static 
>   address 214.213.44.21
>   netmask 255.255.255.240
>   gateway 214.213.44.17
> 
> iface eth0:1 inet static 
>   address 214.213.44.22
>   gateway 214.213.44.21 (or .18 which is the Xen0 ip)
>   netmask 255.255.255.240
 
  Sorry to respond to my own posting, but I need to correct something:

 The above statements about using the gateway ip in the aliased
interface are plain wrong. You should not have any gateway for 
an alias. The alias forms a bridge-like struct with the primary nic.
Having a bridge inside of a bridge can confuse routing.

 What I did find is that many of the aliased interfaces would not
be reachable from the outside without first pinging out. I tried
a number of things but I finally turned on STP in the bridging
code. That seemed to help. Now all my aliased interfaces are 
reachable without any special provision.

-Phil Carinhas
--
.--------------------------------------------------------.
| Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
| Fortuitous Technologies Inc. | http://fortuitous.com   |
| Linux Networking & Security  | Tel : 1-512-351-7783    |
`--------------------------------------------------------'


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-14  4:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-12  5:57 Creating Aliases in Domains Phil Carinhas
2004-11-14  4:56 ` Creating Aliases in Domains - Solution? Phil Carinhas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.