cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
14786
Views
0
Helpful
31
Replies

NX-7000 : Configuring the default-gateway

Rosa Ladeira
Level 1
Level 1

I am trunking 6509 WS-SUP32-10GE-3B's link interface

Gi5/3                           connected    trunk      a-full a-1000 10/100/1000BaseT

with nexus 7000 (N7K-M148GT-11) interface ethernet 2/48

Eth2/48       *** Trunk com 6509 connected trunk     full    1000    10/100/1000

By now, NX7000 is working as a switch.

I have configured 2 NX2000 as interfaces of NX7000.

Each NX2000 has a host on port 1/1. Each host is in a different vlan.

As 6509 is, by now, routing I must set a default gateway to NX7000 even though hosts can't exchange info.

Question: how can I set a default gateway to NX7000 ?

Thanks

Rosa

2 Accepted Solutions

Accepted Solutions

You are using a Unix machine to route between these networks? Make sure you have routing enabled, if not, your N7K will not be able to ping via the management interfaces.

Regards,

jerry

View solution in original post

Okay, if you are inside the N7K via the management interface traffic will go to your host if you have SVI on the N7K. However, in your case, your N7K is L2 and SVI/L3 is handle by 6500. This way, you only possible L3 connectivity is via management. To make this to work, your Linux machine needs to route the traffic, otherwise, none of the traffic will reach your test machine on VLAN 2 and VLAN 14.

To your last questions, you will not able to ping and it is expected.

Regards,

jerry

View solution in original post

31 Replies 31

Reza configuring default gateway to cmp interface means that all NX7000 (including NX2000) will use the same default gateway ?

Thanks

Rosa

Rosa,

Yes, the 2Ks are just fabric extenders.  The 7k is the parent device and should be configured.

HTH

Reza I have set NX7000 default gateway as 6509 route address.

Router#show running-config | i route

ip route 0.0.0.0 0.0.0.0 147.65.21.254

Smale(config)# int cmp-mgmt module 5

Smale(config-if-cmp)# ip default-gateway 147.65.21.254

Smale(config-if-cmp)# exit

Smale(config)# exit

Smale# show running-config cmp

interface cmp-mgmt module 5

  ip default-gateway 147.65.21.254

from NX7000 (Smale) I can not reach NX2000 hosts

Smale# ping 147.65.2.200

PING 147.65.2.200 (147.65.2.200): 56 data bytes

ping: sendto 147.65.2.200 64 chars, No route to host

Request 0 timed out

ping: sendto 147.65.2.200 64 chars, No route to host

^C

--- 147.65.2.200 ping statistics ---

2 packets transmitted, 0 packets received, 100.00% packet loss

Smale# ping 147.65.14.100

PING 147.65.14.100 (147.65.14.100): 56 data bytes

ping: sendto 147.65.14.100 64 chars, No route to host

Request 0 timed out

ping: sendto 147.65.14.100 64 chars, No route to host

^C

--- 147.65.14.100 ping statistics ---

2 packets transmitted, 0 packets received, 100.00% packet loss

Smale#

Rosa,

If the 7K is functioning as a layer-2 device only, then you don't need a default route (ip route 0.0.0.0 0.0.0.0 147.65.21.254)..  All you need is a default-gateway. which you have already configured.

What vlan host 147.65.2.200 is in?

Have you configured the vlan, activated and added the physical port to it?

Can you post your vlan and physical interface config?

also, is the physical interface that connects to 147.65.2.200 device is in up and up mode?

Detail you should know

6509 pings both IPs

Router#ping 147.65.14.100

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 147.65.14.100, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/8 ms

Router#ping 147.65.2.200

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 147.65.2.200, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/8 ms

Router#

--------------------------------------NX 7000--------------------------------------------

**** VLANs

vlan 2

  name administrativa

vlan 3

  name sbm

vlan 4

  name pesquisadores

vlan 5

  name publica

vlan 6

  name visgraf

vlan 7

vlan 10

  name servidores

vlan 11

  name hpc

vlan 13

  name alunos

vlan 14

  name netadm

vlan 20

  name transmissao

vlan 21

  name roteadores-internos

**** ip -> 147.65.2.100

interface port-channel10

  description *** Interface Nexus 2000 - Rack A5 ***

  switchport mode fex-fabric

  fex associate 101

interface Ethernet1/3

  description *** Nexus 2000 - Rack A5 ***

  no cdp enable

  switchport mode fex-fabric

  fex associate 101

  channel-group 10

  no shutdown

interface Ethernet101/1/1

  switchport access vlan 2

  no shutdown

**** ip -> 147.65.14.200

interface port-channel113

  description *** Interface Nexus 2000 - Rack A3 ***

  switchport mode fex-fabric

  fex associate 113

interface Ethernet1/10

  description *** Nexus 2000 - Rack A3 ***

  no cdp enable

  switchport mode fex-fabric

  fex associate 113

  channel-group 113

  no shutdown

interface Ethernet113/1/10

  switchport access vlan 14

  no shutdown

Smale# show interface ethernet 113/1/10 status

--------------------------------------------------------------------------------

Port          Name               Status    Vlan      Duplex  Speed   Type

--------------------------------------------------------------------------------

Eth113/1/10   --                 connected 14        full    1000    --        

Smale# show interface ethernet 101/1/1 status

--------------------------------------------------------------------------------

Port          Name               Status    Vlan      Duplex  Speed   Type

--------------------------------------------------------------------------------

Eth101/1/1    --                 connected 2         full    1000    --        

Smale#

Thanks

Rosa

NX 7000 is quite new.

Shoul I configure a vrf ?

Rosa

It was possible to transfer files if both hosts were in the same Vlan.

Make sure both hosts have the correct default gateway configured

Yes they have. If not 6509 could not ping booth.

I think there are some confusion here:

1. I am assuming you want your host from VLAN14 to ping VLAN2? Who has the default gateways (SVIs) for VLAN 2 and VLAN 14? 6500? or N7K?

2. when you were trying to ping from the N7K? Why you mention CMP? CMP is a different physical interface on the SUP? When you issue a ping from the N7K, it will use its default VRF (meaning if you have SVI on the N7K, it will use it).

Regards,

jerry

Sorry, I was not clear.

This is my first condiguration using NXs (7000 + 2000).

Certainly i am doing many mistakes on this and I am not able to see all of them without help.

Let me explain what I want to do on my first step.

6509 will work as router. I has may vlans but by now let me show you only 2 i am testing:

interface Vlan2

description vlan administrativa

ip address 147.65.2.7 255.255.255.0

ip access-group 199 in

ip access-group acl102 out

ip pim sparse-mode

no ip route-cache cef

ip route-cache flow

no ip mroute-cache

interface Vlan14

description vlan netadm

ip address 147.65.14.7 255.255.255.0

ip access-group 199 in

ip access-group acl114 out

ip pim sparse-mode

no ip route-cache cef

ip route-cache flow

no ip mroute-cache

on the other hand I have a NX7000 adn 2 NX2000

--------------------------------------NX 7000--------------------------------------------

**** VLANs

vlan 2

  name administrativa

vlan 3

  name sbm

vlan 4

  name pesquisadores

vlan 5

  name publica

vlan 6

  name visgraf

vlan 7

vlan 10

  name servidores

vlan 11

  name hpc

vlan 13

  name alunos

vlan 14

  name netadm

vlan 20

  name transmissao

vlan 21

  name roteadores-internos

**** ip -> 147.65.2.100

interface port-channel10

  description *** Interface Nexus 2000 - Rack A5 ***

  switchport mode fex-fabric

  fex associate 101

interface Ethernet1/3

  description *** Nexus 2000 - Rack A5 ***

  no cdp enable

  switchport mode fex-fabric

  fex associate 101

  channel-group 10

  no shutdown

interface Ethernet101/1/1

  switchport access vlan 2

  no shutdown

**** ip -> 147.65.14.200

interface port-channel113

  description *** Interface Nexus 2000 - Rack A3 ***

  switchport mode fex-fabric

  fex associate 113

interface Ethernet1/10

  description *** Nexus 2000 - Rack A3 ***

  no cdp enable

  switchport mode fex-fabric

  fex associate 113

  channel-group 113

  no shutdown

interface Ethernet113/1/10

  switchport access vlan 14

  no shutdown

Smale# show interface ethernet 113/1/10 status

--------------------------------------------------------------------------------

Port          Name               Status    Vlan      Duplex  Speed   Type

--------------------------------------------------------------------------------

Eth113/1/10   --                 connected 14        full    1000    --        

Smale# show interface ethernet 101/1/1 status

--------------------------------------------------------------------------------

Port          Name               Status    Vlan      Duplex  Speed   Type

--------------------------------------------------------------------------------

Eth101/1/1    --                 connected 2         full    1000    --        

Smale#

on Eth113/1/10 there is a host with ip 147.65.14.100 255.255.255.0 gw 147.65.14.7

on Eth101/1/10 there is a host with ip 147.65.2.200 255.255.255.0 gw 147.65.2.7

I can from 6509: ping both hosts

I can not form 7000: ping both host

I kwon there is a mistake on 7000 config. Probabily gw is not defined. But i do not know what facility I have to config. As I said evething is quite new.

When you sugested cmp I was not able to understand why but I tried.

I have been reading about vrf but I do not catch it as well.

thanks,

Rosa

Hi Rosa,

Your N7K is a L2 device from what you just described to me. It doens't have L3 configured and this is the reason why you can't ping.

Is your management interface connected to the network? You can intiate a ping from it if it is set up.

Regards,

jerry

!Command: show running-config interface mgmt0

!Time: Wed Sep  7 19:05:23 2011

version 5.1(1)

interface mgmt0

  ip address 192.168.14.250/24

if I ssh to 192.168.14.250 I can not ping. Please take a look?

rosa@Morgana:~$ ssh -l netadm 192.168.14.250

User Access Verification

Password:

Last login: Wed Sep  7 19:02:28 BRDT 2011 from 192.168.14.6 on pts/0

Last login: Wed Sep  7 19:06:36 2011 from 192.168.14.6

Cisco Nexus Operating System (NX-OS) Software

TAC support: http://www.cisco.com/tac

Copyright (c) 2002-2010, Cisco Systems, Inc. All rights reserved.

The copyrights to certain works contained in this software are

owned by other third parties and used and distributed under

license. Certain components of this software are licensed under

the GNU General Public License (GPL) version 2.0 or the GNU

Lesser General Public License (LGPL) Version 2.1. A copy of each

such license is available at

http://www.opensource.org/licenses/gpl-2.0.php and

http://www.opensource.org/licenses/lgpl-2.1.php

Smale#

Smale#

Smale# ping 147.65.14.100

PING 147.65.14.100 (147.65.14.100): 56 data bytes

ping: sendto 147.65.14.100 64 chars, No route to host

Request 0 timed out

ping: sendto 147.65.14.100 64 chars, No route to host

Request 1 timed out

ping: sendto 147.65.14.100 64 chars, No route to host

Request 2 timed out

ping: sendto 147.65.14.100 64 chars, No route to host

^C

--- 147.65.14.100 ping statistics ---

4 packets transmitted, 0 packets received, 100.00% packet loss

Smale# ping 147.65.2.200

PING 147.65.2.200 (147.65.2.200): 56 data bytes

ping: sendto 147.65.2.200 64 chars, No route to host

Request 0 timed out

ping: sendto 147.65.2.200 64 chars, No route to host

^C

--- 147.65.2.200 ping statistics ---

2 packets transmitted, 0 packets received, 100.00% packet loss

Smale#