HPE Morpheus VM Essentials
1839714 Members
6099 Online
110153 Solutions
New Discussion

Re: vlan question

 
SOLVED
Go to solution
Ted Laurent
Occasional Advisor

vlan question

I have a cluster that I've created a vlan on its nodes.   I've verified from the cli I can ping other cluster nodes on the vlan.   I can't figure out how to add the network pointing to those in the manager.   

Any ideas? 

Here is what the netplan looks like...

tlaurent@h2:~$ cd /etc/netplan
tlaurent@h2:/etc/netplan$ ls
01-base.yaml mvmbackup-20251013-112745 mvmbackup-20251016-102841
60-mvm-mgmt.yaml mvmbackup-20251016-081126
tlaurent@h2:/etc/netplan$ sudo cat 01-base.yaml
[sudo] password for tlaurent:
network:
ethernets:
eno1: {}
version: 2
vlans:
vlan2:
addresses:
- 10.0.2.12/24
id: 2
link: eno1

tlaurent@h2:/etc/netplan$ sudo cat 60-mvm-mgmt.yaml
network:
bridges:
mgmt:
addresses:
- 10.0.0.12/24
interfaces:
- eno1
nameservers:
addresses:
- 10.0.0.1
search:
- demo.int
openvswitch: {}
routes:
- to: default
via: 10.0.0.1
version: 2
tlaurent@h2:/etc/netplan$

 

tlaurent@h2:/etc/netplan$ ping 10.0.2.12
PING 10.0.2.12 (10.0.2.12) 56(84) bytes of data.
64 bytes from 10.0.2.12: icmp_seq=1 ttl=64 time=0.066 ms
64 bytes from 10.0.2.12: icmp_seq=2 ttl=64 time=0.062 ms
^C
--- 10.0.2.12 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 0.062/0.064/0.066/0.002 ms
tlaurent@h2:/etc/netplan$ ping 10.0.2.13
PING 10.0.2.13 (10.0.2.13) 56(84) bytes of data.
64 bytes from 10.0.2.13: icmp_seq=1 ttl=64 time=0.570 ms
64 bytes from 10.0.2.13: icmp_seq=2 ttl=64 time=0.315 ms
^C
--- 10.0.2.13 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1009ms
rtt min/avg/max/mdev = 0.315/0.442/0.570/0.127 ms
tlaurent@h2:/etc/netplan$

Ted Laurent
6 REPLIES 6
dya
Regular Advisor

Re: vlan question

I apologize if I've misunderstood. Have you manually edited the following two files using an editor like vi or nano?

・01-base.yaml
・60-mvm-mgmt.yaml

I have some concerns, such as the “interfaces” for the “mgmt” bridge being set to “eno1” instead of “vlan2”, and the “addresses” for both “mgmt” and ‘vlan2’ being the same “10.0.2.12/24”.

※Apologies if this is unclear due to machine translation.

Ted Laurent
Occasional Advisor
Solution

Re: vlan question

I agree it a bit of a hack.   However I can successfully ping the interface from my laptop as long as I set the VLAN ID correctly.   What I can't seem to do is to figure out how to enable a VM to access the VLAN.

Ted Laurent
dya
Regular Advisor

Re: vlan question

・HVM host: 172.16.2.111
・Manager VM: 172.16.2.110
・Management network VLAN ID: 202

Below are several potentially helpful screenshots.

■netplan get
netplan_get.png

 

 

 

 

 

 

 

 

 

 

 

■manager vm
manager_vm_network.png

 

 

 

 

 

 

 

■Pinging the host and manager VMs from an external PC
host_manager_vlan-id.png

Ted Laurent
Occasional Advisor

Re: vlan question

Brilliant!  Thank you very much.

Ted Laurent
dya
Regular Advisor

Re: vlan question

I noticed I had mistakenly listed the IP addresses for the HVM host and Manager VM incorrectly, so I've made the above corrections. My apologies.

Ted Laurent
Occasional Advisor

Re: vlan question

No worries!   The important parts were there I just needed some inspiration to put them together.   Thanks again.

Ted Laurent