cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1103
Views
0
Helpful
12
Replies

Cisco Nexus 5020 Cant get ip address

redbaron28
Level 1
Level 1

Hi i recently bought a nexus 5020 for a 10gb network for storage for my vmware hosts. I had problems at first with my router not detecting the 10gb fiber card i had. So i bought a new one got that side all good and now on the switch side i cant get ip address to my host. From the switch i cant ping the router @ 192.168.2.1. I have create a vlan 2 and added ports 9 through 17 and set them to switchport access. With no change. They i tired putting port 17 which is the port going to the router into trunk with no change. Here are pictures on my config:

https://imgur.com/a/jqbRU

https://imgur.com/a/KnKZr

https://imgur.com/a/3iXGk

 

 

Thanks for your help!

12 Replies 12

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Can you post "sh run" from the router and the Nexus

Is Nexus supposed to be just layer-2?

On the Nexus, port 17 is connected to the router on what port?

HTH

@Reza Sharifi On startup it says level 3. I have a 10gb cable running from port 17 on the 5020 to my router which is a custom pfsense box.

I am not familiar with pfsense box but in order to do layer-3 in Nexus, you need layer-3 card installed.

@Reza Sharifi How can i set it to layer 2. I dont need layer 3 as its just a storage network.

You don't need to do anything.  That switch by default is layer-2.

HTH

That is what I thought but I'm not getting any o.o addresses to my hosts.

From what you posted, the switch configuration seems to be ok. All you need is the access ports configured with specific vlan facing the end devices and a trunk port to the router. The IP address for the vlan/subnet you are using (default gateway for the end devices) should be configured on the router.

If you don't mind. Could you post some command examples on how to do it
correctly

Thanks

Here is an example on how to do it for all ports facing the end devices:

this is assuming they are all in vlan 2

 

config t

vlan 2

name production-vlan

exit

then configure all ports like this:

config t

interface Ethernet1/10
switchport access vlan 2
spanning-tree port type edge

 

and then configure the trunk which connects to the router

interface Ethernet1/17
switchport mode trunk

 

HTH

 

 

 

@Reza Sharifi I did those and everything looks good but i still dont get any ip's. 

 

20180210_122811.jpg20180210_122845.jpg

I Have now did a reset and created the vlan 2 and i still dont have any ip address's.

I have reset my config and I created a new vlan and did it all over and with no change. I have attached my config.