Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network issue (kind of) #13

Open
sitle opened this issue Aug 19, 2014 · 4 comments
Open

Network issue (kind of) #13

sitle opened this issue Aug 19, 2014 · 4 comments

Comments

@sitle
Copy link
Contributor

sitle commented Aug 19, 2014

I actually have the use case where i need to assign multiple ip addresses for one VM. The problem is that the default route is setup via the configuration file. If i need to use another network and have a specific route, i can't do it (i have two default route in my vm).

Is there a way where we can setup a specific option to choose the default route using the configuration file ?

@sitle sitle changed the title Network issue Network issue (kind of) Aug 19, 2014
@snobear
Copy link
Owner

snobear commented Aug 19, 2014

Hi @sitle -

You can specify multiple networks in the config file, each with their own gateway. Per config.example.yml:

# List your networks here
networks:
  '172.10.16.0/20':
    datacenter: 'Nashville'
    cluster:    'Nashville Server Cluster'
    datastore:  'Mystore 1'
    network:    'My Internal Net'
    gateway:    '172.10.16.1'

  '192.168.24.50/24':
    datacenter: 'Foocenter'
    cluster:    'FooCluster'
    datastore:  'Foomount'
    network:    'Internal 2'
    gateway:    '192.168.24.50'

...snip...

Or do you need to be able to specify multiple gateways for each network, or something else I'm not thinking of?

@sitle
Copy link
Contributor Author

sitle commented Aug 19, 2014

Actually, if i use the two network while cloning a VM, i'll have two default gateway configured in that VM. We need a way to specify a default gateway in the command Line.

@snobear
Copy link
Owner

snobear commented Aug 20, 2014

@sitle - OK I understand now...I wasn't grasping at first.

Let me know if I have this straight. To summarize: currently, on the Linux guest, the GATEWAY is set in each ifcfg-eth* file that is created. This is taken from whatever the gateway setting is for that network in the config.yml.

However, you're speaking of the default GATEWAY that is set in, e.g.

/etc/sysconfig/network - RHEL/CentOS
/etc/sysconfig/network/routes - SLES
etc...

Is that correct? Thanks for the pull requests and the issues you've posted. I'll comment on your pull request in #19 soon.

@sitle
Copy link
Contributor Author

sitle commented Aug 20, 2014

@snobear - Actually i don't use redhat-like distribution for now. I'm testing ezmomi with debian-like distro, i'm going to test it with centos to see if i have the same behaviour.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants