{"action":"created","issue":{"url":"https://api.github.com/repos/vmware/photon/issues/402","labels_url":"https://api.github.com/repos/vmware/photon/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/vmware/photon/issues/402/comments","events_url":"https://api.github.com/repos/vmware/photon/issues/402/events","html_url":"https://github.com/vmware/photon/issues/402","id":120005478,"number":402,"title":"Static IP configuration screws Gateway settings? ","user":{"login":"mreferre","id":4123965,"avatar_url":"https://avatars.githubusercontent.com/u/4123965?v=3","gravatar_id":"","url":"https://api.github.com/users/mreferre","html_url":"https://github.com/mreferre","followers_url":"https://api.github.com/users/mreferre/followers","following_url":"https://api.github.com/users/mreferre/following{/other_user}","gists_url":"https://api.github.com/users/mreferre/gists{/gist_id}","starred_url":"https://api.github.com/users/mreferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mreferre/subscriptions","organizations_url":"https://api.github.com/users/mreferre/orgs","repos_url":"https://api.github.com/users/mreferre/repos","events_url":"https://api.github.com/users/mreferre/events{/privacy}","received_events_url":"https://api.github.com/users/mreferre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-02T18:23:52Z","updated_at":"2015-12-03T14:22:09Z","closed_at":null,"body":"I have just try to reconfigure a default PhotonOS (full) install to change from DHCP to Static. \r\n\r\nIf I login into my (default) DHCP configuration I can ping 8.8.8.8 \r\nThe `ip route` command shows: \r\n\r\n       default via 192.168.1.0/24 dev eno16780032 proto dhcp metric 1024\r\n       192.168.1.0/24 dev eno16780032 proto kernel scope link src 192.168.1.245\r\n       192.168.1.254 dev eno16780032 proto dhcp scope link metric 1024\r\n\r\n\r\nI then try to change the configuration to static. I mv the `/etc/systemd/network/10-dhcp-en.network` file into `/etc/systemd/network/10-static-en.network` and then I edit it as follows:\r\n\r\n       Name=*\r\n \r\n       [Network]\r\n       Address=192.168.1.44/24\r\n       Gateway=192.168.1.254\r\n\r\nI reboot the VM and I see that it picks up the `.44` static address (and I can ping all other hosts in the same subnet) but if i try to ping 8.8.8.8 it gives me a black eye (as if it doesn't route out of the local subnet any more). \r\n\r\nThe `ip route` command shows:\r\n\r\n        default via 192.168.1.254 dev eno16780032 proto static\r\n        default via 192.168.1.254 dev lo proto static\r\n        192.168.1.0/24 dev eno16780032 proto kernel scope link src 192.168.1.44 \r\n\r\n\r\nIs there anything else that needs to be done?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vmware/photon/issues/comments/161653884","html_url":"https://github.com/vmware/photon/issues/402#issuecomment-161653884","issue_url":"https://api.github.com/repos/vmware/photon/issues/402","id":161653884,"user":{"login":"mreferre","id":4123965,"avatar_url":"https://avatars.githubusercontent.com/u/4123965?v=3","gravatar_id":"","url":"https://api.github.com/users/mreferre","html_url":"https://github.com/mreferre","followers_url":"https://api.github.com/users/mreferre/followers","following_url":"https://api.github.com/users/mreferre/following{/other_user}","gists_url":"https://api.github.com/users/mreferre/gists{/gist_id}","starred_url":"https://api.github.com/users/mreferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mreferre/subscriptions","organizations_url":"https://api.github.com/users/mreferre/orgs","repos_url":"https://api.github.com/users/mreferre/repos","events_url":"https://api.github.com/users/mreferre/events{/privacy}","received_events_url":"https://api.github.com/users/mreferre/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T14:22:09Z","updated_at":"2015-12-03T14:22:09Z","body":"Thanks. \r\nI have retried (on Fusion) what I was doing yesterday (on vSphere) and it worked. \r\nNote I have not yet enabled Docker on my instance so I only have one interface (enoxxxxxxx). So the \"*\" worked just fine. \r\nThe moment I have enabled Docker the 172.16.42 interface came up and having \"Name=*\" in the configuration file set both at the same static IP (which is obviously NOT what you want). So I had to put \"Name=eno1*\" so it would pick the host interface (note that using \"Name=eno\" as you suggested didn't work, most likely it needs the \"*\" wild card to be able to match the correct name?). \r\n\r\nLong story short (net net) is that the procedure above works with Fusion but NOT on vSphere (for some odd reasons). I don't have access to my vSphere lab right now but I will triple check tomorrow that I was doing the same thing. \r\n\r\nAre you by any chance trying to replicate it on Fusion? Can you try on vSphere? \r\n\r\n "}}