09-24-2024 01:18 AM
We have a Cisco switch (Cisco Nexus Switch 6001) where we need to configure a VLAN IP like a normal switch(Normal Switch #Interface vlan1
#ip address 192.168.0.1 255.255.255.0
, but there is no option available. How can we configure the VLAN IP on this switch to enable Telnet access?
Additionally, how do we add a gateway IP?"
Solved! Go to Solution.
09-24-2024 01:33 AM
09-24-2024 02:16 AM
09-24-2024 04:05 AM
Connect your PC to any port assign to vlan 1 and make sure PC have IP in same subnet then try ping
MHM
09-24-2024 01:33 AM
Feature interface vlan <<- this feature need
MHM
09-24-2024 01:56 AM
For example i want to add vlan1 IP address 10.0.0.220 so how i can add?
Can you share commands?
09-24-2024 02:06 AM
Same command you use in normal SW we use in nexus for vlan SVI
Except feature i mention before needed
MHM
09-24-2024 02:12 AM
how we can add this feature in cisco nexus switch?
09-24-2024 02:16 AM
Feature interface vlan
By This command
MHM
09-24-2024 02:29 AM
But in cisco nexus 6001 switch we are not seeing interface vlan 1 command.
09-24-2024 02:38 AM
You dont see command after add feature?
MHM
09-24-2024 02:48 AM
I have configured the VLAN and added the IPv4 address. Now, how do I add the gateway IP? In a normal switch, we add the gateway IP using the command ip default-gateway 10.0.0.x.
09-24-2024 03:00 AM
I am not so sure
İp defualt gateway <<- for l2 SW
Ip route 0.0.0.0 0.0.0.0 <<- for l3 SW
And by default the nexus is l3 SW so you need to use default route instead of IP defualt gateway
MHM
09-24-2024 03:38 AM
i configured default route.Nexus switch 6001 connected with cisco 3650 switch trunk port.
But nexus is not pinging.
09-24-2024 03:40 AM
Show ip interface brief
Check if vlan is up/up
MHM
09-24-2024 03:56 AM
Yes Vlan is UP.
09-24-2024 04:14 AM
Can you check configuration and point out errors?
09-24-2024 04:03 AM
AI-Centre# show running-config
!Command: show running-config
!Time: Tue Sep 24 16:12:43 2024
version 6.0(2)N1(2)
hostname AI-Centre
feature telnet
feature interface-vlan
feature lldp
username admin password 5 $1$36PB10en$Ue4ygXWZNBcVV1ZYOoefS0 role network-admin
username adnan password 5 $1$loF1MkiJ$gyxMODQfx0X2o9A1YaVaA0 role priv-15
username adnan role network-admin
banner motd #Nexus 6000 Switch
#
ip domain-lookup
vlan dot1Q tag native
logging event link-status default
class-map type qos class-fcoe
class-map type queuing class-fcoe
match qos-group 1
class-map type queuing class-all-flood
match qos-group 2
class-map type queuing class-ip-multicast
match qos-group 2
class-map type network-qos class-fcoe
match qos-group 1
class-map type network-qos class-all-flood
match qos-group 2
class-map type network-qos class-ip-multicast
match qos-group 2
snmp-server user admin network-admin auth md5 0x8faabf41db3b037d2171d0541e5c3eac
priv 0x8faabf41db3b037d2171d0541e5c3eac localizedkey
snmp-server user adnan priv-15 auth md5 0x5556829aad41dd977bab5e4aac6b03a8 priv
0x5556829aad41dd977bab5e4aac6b03a8 localizedkey
snmp-server user adnan network-admin
vrf context management
vlan 1
port-profile default max-ports 512
interface Vlan1
no shutdown
ip address 10.0.0.38/24
interface Ethernet1/1
interface Ethernet1/2
duplex full
interface Ethernet1/3
interface Ethernet1/4
interface Ethernet1/5
interface Ethernet1/6
interface Ethernet1/7
interface Ethernet1/8
interface Ethernet1/9
interface Ethernet1/10
interface Ethernet1/11
interface Ethernet1/12
interface Ethernet1/13
interface Ethernet1/14
interface Ethernet1/15
interface Ethernet1/16
interface Ethernet1/17
interface Ethernet1/18
interface Ethernet1/19
interface Ethernet1/20
interface Ethernet1/21
interface Ethernet1/22
interface Ethernet1/23
interface Ethernet1/24
interface Ethernet1/25
interface Ethernet1/26
interface Ethernet1/27
interface Ethernet1/28
interface Ethernet1/29
interface Ethernet1/30
interface Ethernet1/31
interface Ethernet1/32
interface Ethernet1/33
interface Ethernet1/34
interface Ethernet1/35
interface Ethernet1/36
interface Ethernet1/37
interface Ethernet1/38
interface Ethernet1/39
switchport access vlan 20
interface Ethernet1/40
interface Ethernet1/41
interface Ethernet1/42
interface Ethernet1/43
interface Ethernet1/44
interface Ethernet1/45
interface Ethernet1/46
interface Ethernet1/47
interface Ethernet1/48
switchport mode trunk
interface Ethernet2/1
interface Ethernet2/2
interface Ethernet2/3
interface Ethernet2/4
interface mgmt0
shutdown force
interface loopback1
shutdown
line console
line vty
boot kickstart bootflash:/n6000-uk9-kickstart.6.0.2.N1.2.bin
boot system bootflash:/n6000-uk9.6.0.2.N1.2.bin
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