{"action":"created","issue":{"url":"https://api.github.com/repos/imsweb/ezmomi/issues/61","repository_url":"https://api.github.com/repos/imsweb/ezmomi","labels_url":"https://api.github.com/repos/imsweb/ezmomi/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/imsweb/ezmomi/issues/61/comments","events_url":"https://api.github.com/repos/imsweb/ezmomi/issues/61/events","html_url":"https://github.com/imsweb/ezmomi/issues/61","id":135888588,"number":61,"title":"multiple ips gateway conflict on ubuntu","user":{"login":"ryanrussell","id":523300,"avatar_url":"https://avatars.githubusercontent.com/u/523300?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanrussell","html_url":"https://github.com/ryanrussell","followers_url":"https://api.github.com/users/ryanrussell/followers","following_url":"https://api.github.com/users/ryanrussell/following{/other_user}","gists_url":"https://api.github.com/users/ryanrussell/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanrussell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanrussell/subscriptions","organizations_url":"https://api.github.com/users/ryanrussell/orgs","repos_url":"https://api.github.com/users/ryanrussell/repos","events_url":"https://api.github.com/users/ryanrussell/events{/privacy}","received_events_url":"https://api.github.com/users/ryanrussell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T22:39:42Z","updated_at":"2016-02-24T18:56:36Z","closed_at":null,"body":"Hi,\r\n\r\nBooting with one ip seems to work fine, but when I attempt to add a second IP I end up with an invalid /etc/network/interfaces file.\r\n\r\nBackground:\r\n- I have a template that sometimes we just boot with a private IP, sometimes we boot with a private and public IP. \r\n- I have two NIC's in the template, eth0 mapped to private, eth1 mapped to public.\r\n\r\nI may missing something with multiple IPs on the routing config.\r\n\r\nHere's a sample command:\r\nezmomi clone --template ubuntu-14.04-raw --hostname machine-name --cpus 2 --mem 2 --resource-pool 'pool' --ips 192.168.185.182 209.41.67.131\r\n\r\nRelevant network config:\r\nhttps://gist.github.com/ryanrussell/fb3065d8d6bae6f549c4\r\n\r\nThis is what I get for a /etc/network/interfaces file:\r\nhttps://gist.github.com/ryanrussell/8afec84d64c33cb80f3e\r\n\r\nI'm trying to automate a solution such as this:\r\nhttps://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System#Solution\r\n\r\nHere's a sample functional /etc/network/interfaces file:\r\nhttps://gist.github.com/ryanrussell/c51688efee1a98e346a1\r\n\r\nI can do this with chef post-boot if necessary, but everything about it feels hacky and wrong. \r\n\r\nIs there a better way that I'm missing? Or a way to get a valid network interfaces file without manual intervention?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/imsweb/ezmomi/issues/comments/188404911","html_url":"https://github.com/imsweb/ezmomi/issues/61#issuecomment-188404911","issue_url":"https://api.github.com/repos/imsweb/ezmomi/issues/61","id":188404911,"user":{"login":"snobear","id":696230,"avatar_url":"https://avatars.githubusercontent.com/u/696230?v=3","gravatar_id":"","url":"https://api.github.com/users/snobear","html_url":"https://github.com/snobear","followers_url":"https://api.github.com/users/snobear/followers","following_url":"https://api.github.com/users/snobear/following{/other_user}","gists_url":"https://api.github.com/users/snobear/gists{/gist_id}","starred_url":"https://api.github.com/users/snobear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snobear/subscriptions","organizations_url":"https://api.github.com/users/snobear/orgs","repos_url":"https://api.github.com/users/snobear/repos","events_url":"https://api.github.com/users/snobear/events{/privacy}","received_events_url":"https://api.github.com/users/snobear/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T18:56:36Z","updated_at":"2016-02-24T18:56:36Z","body":"Hi @ryanrussell -\r\n\r\nI'm not super familiar with the Debian /etc/network/interfaces style config.\r\n\r\nCouple questions...What happens when the new VM boots after provisioning?  Any specific errors in the boot logs?  Do eth0 and/or eth1 appear down after boot?  Or are they appear up and its the routing thats screwy?\r\n"}}