ā12-15-2022 09:32 AM - edited ā12-15-2022 09:40 AM
Hello team,
Just a simple question - i have created a new vlan(112) on my nexus 6k and added it to my server trunk port and created a VM with interface of vlan tag 112. While checking there was no connectivity between.
Configuration on switch:
interface Vlan112
no shutdown
ip address 10.100.112.2/24
hsrp 112
preempt
priority 200
ip 10.100.112.10
interface Ethernet1/4
description S3-LAN2
switchport mode trunk
switchport access vlan 12
switchport trunk allowed vlan 12,112,600-604
spanning-tree port type edge trunk
There is no vlan er-disabled on trunk every thing is fine but no sure the vlan is not getting on server.
sho interface ethernet 1/4 trunk
--------------------------------------------------------------------------------
Port Native Status Port
Vlan Channel
--------------------------------------------------------------------------------
Eth1/4 1 trunking --
--------------------------------------------------------------------------------
Port Vlans Allowed on Trunk
--------------------------------------------------------------------------------
Eth1/4 12,112,600-604
--------------------------------------------------------------------------------
Port Vlans Err-disabled on Trunk
--------------------------------------------------------------------------------
Eth1/4 none
--------------------------------------------------------------------------------
Port STP Forwarding
--------------------------------------------------------------------------------
Eth1/4 12,112,600-604
--------------------------------------------------------------------------------
Port Vlans in spanning tree forwarding state and not pruned
--------------------------------------------------------------------------------
Eth1/4 12,112,600-604
--------------------------------------------------------------------------------
Port Vlans Forwarding on FabricPath
--------------------------------------------------------------------------------
sho interface ethernet 1/4 switchport
Name: Ethernet1/4
Switchport: Enabled
Switchport Monitor: Not enabled
Operational Mode: trunk
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Trunking VLANs Allowed: 12,112,600-604
Voice VLAN: none
Extended Trust State : not trusted [COS = 0]
Administrative private-vlan primary host-association: none
Administrative private-vlan secondary host-association: none
Administrative private-vlan primary mapping: none
Administrative private-vlan secondary mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk private VLANs: none
Operational private-vlan: none
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Thanks in advance.!
ā12-15-2022 09:44 AM
that is on the Nexus side, how about esxi side - esxi have vswitch also, do you have vlan and PC has what gateway ?
is this new VLAN only not working, do you have any other VM working on esxi ? (if so wht VLAN)
Looks like you running vPC on nexus, make sure you run vPC towards esxi also,. i also see the HSRP config here,.
what is the VM IP address what gateway you using ? this should be VIP IP ?
ā12-15-2022 10:09 AM - edited ā12-15-2022 10:41 AM
Hi Balaji,
Actually am using Proxmox as a type-1 hypervisor - on the hypervisor side Linux bridge is there and its Vlan aware!. Also there are VMs running successfully on Vlan12. Only the newly created vlan is not working!. I gave the IP 10.100.112.129/24 to the VM and GW is 10.100.112.250. Currently there is no connectivity to the outside so i didn't gave the HSRP VIP as GW. Am Currently just checking connectivity on inside. Still no luck.
Thanks.
ā12-15-2022 11:52 AM
Hi,
I gave the IP 10.100.112.129/24 to the VM and GW is 10.100.112.250
If the gateway is the nexus switch, according to the config you posted, the IP address of the vlan is 10.100.112.2 and the VIP is .10
If you are running HSRP, the gateway should be the VIP.
HTH
ā12-15-2022 11:55 AM
BTW, if you have 2 nexus switches with VPC, the config for both switches needs to be the same and the vlan should be part of the VPC peer-link.
HTH
ā12-16-2022 03:34 AM
switchport mode trunk switchport access vlan 12
this is trunk or access port ? I think you misconfig the port, correct it and check again
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide