Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

No Network Mask Setting #67

Open
danehans opened this issue Jun 16, 2016 · 2 comments
Open

No Network Mask Setting #67

danehans opened this issue Jun 16, 2016 · 2 comments

Comments

@danehans
Copy link

/etc/mayu/config.yaml does not provide a network mask setting. For example, I define the following:

  ip_range:
    start: 10.30.118.151
    end: 10.30.118.156

The above network is a /27. Since a network mask is not defined, my nodes are being provisioned with a /22:

core@0000a155ea4644cc ~ $ ip addr list
3: enp10s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:3a:7d:6a:15:05 brd ff:ff:ff:ff:ff:ff
    inet 10.30.118.152/22 brd 10.30.119.255 scope global enp10s0
       valid_lft forever preferred_lft forever
    inet6 fe80::23a:7dff:fe6a:1505/64 scope link 
       valid_lft forever preferred_lft forever
@teemow
Copy link
Member

teemow commented Jun 21, 2016

Thanks! This is indeed atm not configurable. We are currently working on other parts in Mayu but I'll schedule it in the upcoming weeks. Feel free to come up with a solution if you have time to look into this.

The bootstrap range is configured in dnsmasq:
https://github.com/giantswarm/mayu/blob/master/templates/dnsmasq_template.conf#L10

The ip range you are talking about is configured here:
https://github.com/giantswarm/mayu/blob/master/template_snippets/cloudconfig/net_singlenic.yaml
https://github.com/giantswarm/mayu/blob/master/template_snippets/ignition/net_singlenic.yaml

A quick fix would be to just change the template in your setup.

@danehans
Copy link
Author

@teemow thanks for the pointers. Let me wrap up my work and I'll try my best to update the templates.

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

No branches or pull requests

2 participants