-
Notifications
You must be signed in to change notification settings - Fork 181
Set static IP address on eth2 interface #41
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
Conversation
LGTM |
Set static IP address on eth2 interface
Tried a few manually and they seem to be working. Working on automating running the system test in this mode. |
Btw - For vagrant setup we set the 192.xx IP address on eth1 on the host which is used by etcd. Shouldnt we set this on the eth2 interface? Otherwise data path and control path uses the same interface? sachin |
@sachja - Well for Vagrant setup we reserve eth2 for extending vlans, and for the data network. As in the configuration files (e.g. examples/two_hosts_multiple_vlans_nets.json). But etcd and vxlan traffic used the standard eth1 interface with 192.xx IP. The problem (read - more code to be added!) with using this on eth2 is that we need to reserve a control-vlan on eth2 and manage as vlan-interface on the host. Why? Is it resulting into a problem in your setup? Ideally user can specify whatever underlay interface is the right one for the overlay traffic, however for extending vlans, a host ethernet interface must be specified and in that case entire interface would be controlled by the netplugin (i.e. vlans on it, etc.) ping @mapuri |
I remember this came up when @sachja was experimenting with vxlan configuration. I might be getting confused, then I was under the impression that at some point netplugin would manage the underlay as well i.e. assign vtep-ip etc. In that case it might be more reasonable to let it manage the data traffic interface (eth2) than the control interface (eth1). And in absence of IP address management for vteps right now may be we can have static IPs on eth2 and use that instead at Vtep-IPs. However, I am not sure if I understand the problem that @jainvipin is trying to bringup. @jainvipin, are you referring the vlan loop problem (issue #38) when you mention |
@mapuri - no I wasn't referring to #38, which exists only in mix vlan/vxlan configuration. Unrelated to that, |
ok, yeah I remember having the discussion about control vlan but I thought it was only needed in ACI kind of setup where the outer vlan needs to match the infra-vlan. BTW I just tried a two-host-vxlan example ( In general, I feel it might be better to keep data traffic separate from control/management traffic and it might be good for our examples to reflect the same. For vlan traffic we found it the hard way as adding eth1 to ovs earlier caused etcd to stop working and we had to move to a separate data-network interface. |
The vxlan tests need the TEP addresses.