Simplified Networking
  • Home
  • Technology VoD!
    • Cisco >
      • Route & Switch / Enterprise Infrastructure
  • Technology Breakdowns!
    • Route&Switch/Ent. Infra. >
      • L2 Technologies
      • L3 Technologies
      • VPN Technologies
      • Services >
        • IOS - Dynamic NAT
        • HSRP - IPv4 Setup
        • HSRP - Priority and Preemption
    • Service Provider >
      • IGPs (Interior Gateway Protocols)
      • First Hop Redundancy >
        • HSRP (Hot Standby Router Protocol) >
          • HSRP - IOS/IOS XE Setup
          • HSRP - IOS XR Setup
      • BGP (Border Gateway Protocol)
      • Inter AS Multicast (MSDP)
      • Intra-AS MPLS
      • Inter-AS MPLS
    • Security >
      • IOS Firewall
      • ASA Firewall
      • FirePOWER Threat Defense >
        • FTD - FTD NGFW Device Setup and FMC Integration
      • VPNs >
        • PKI
        • Site to Site VPNs
        • Remote Access VPNs >
          • IOS Remote Access
          • ASA Remote Access
    • Data Center >
      • Nexus 9000v >
        • Nexus 9000v - Enabling Features
        • Nexus 9000v - VLANs and Trunks
        • Nexus 9000v - LACP Port Channels
        • Nexus 9000v - vPC (Virtual Port Channel)
        • Nexus 9000v - OSPFv2
        • Nexus 9000v - VXLAN - Ingress Replication Flood and Learn
        • Nexus 9000v - IP Multicast
        • Nexus 9000v - VxLAN - Multicast Flood and Learn
        • Nexus 9000v - VxLAN - BGP EVPN with Multicast
        • Nexus 9000v - VxLAN - BGP EVPN w/Ingress Replication
        • Nexus 9000v - VxLAN - Inter-VxLAN Routing with BGP EVPN
        • Nexus 9000v - VXLAN - External Routing
      • Nexus 7000v
    • Palo Alto

​Nexus 9000v - VLANs and Trunks

Picture
In this lab, we will walk through a VLAN and 802.1Q Trunking deployment between Nexus and Catalyst switches. The goal is to allow MAC address propagation between the two switches to allow endpoints to resolve other endpoint MACs and enable communication between switches.


N9K-2
vlan 1,10,20
vlan 10
  name VLAN10
vlan 20
  name VLAN20
!
interface Ethernet1/1
  spanning-tree port type edge
!q
interface Ethernet1/2
  switchport access vlan 10
  spanning-tree port type edge
!
interface Ethernet1/5
  switchport mode trunk




​SW1
vlan 10
 name VLAN10
vlan 20
 name VLAN20
!
interface GigabitEthernet0/0
 switchport access vlan 10
 switchport mode access
 media-type rj45
 negotiation auto
 spanning-tree portfast edge
!
interface GigabitEthernet0/1
 switchport access vlan 20
 switchport mode access
 media-type rj45
 negotiation auto
 spanning-tree portfast edge
!
interface GigabitEthernet0/2
 switchport trunk encapsulation dot1q
 switchport mode trunk
 media-type rj45
 duplex full
 no negotiation auto
 spanning-tree portfast edge
!
interface GigabitEthernet0/3
 switchport access vlan 20
 switchport mode access
 media-type rj45
 negotiation auto
 spanning-tree portfast edge



N9K-2# show vlan brief
VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
10   VLAN10                           active    Eth1/2, Eth1/5
20   VLAN20                           active    Eth1/3, Eth1/5



N9K-2# show interface trunk 
Port          STP Forwarding
--------------------------------------------------------------------------------
Eth1/5        1,10,20




SW1#show vlan brief 

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Gi1/0, Gi1/1, Gi1/2
10   VLAN10                           active    Gi0/0
20   VLAN20                           active    Gi0/1, Gi0/3



SW1#show interfaces trunk 

Port        Mode             Encapsulation  Status        Native vlan
Gi0/2       on               802.1q         trunking      1
Gi1/3       on               802.1q         trunking      1

Port        Vlans allowed on trunk
Gi0/2       1-4094
Gi1/3       1-4094

Port        Vlans allowed and active in management domain
Gi0/2       1,10,20
Gi1/3       1,10,20

Port        Vlans in spanning tree forwarding state and not pruned
Gi0/2       1,10,20
Gi1/3       1,10,20




VPC4
VPCS> ping 10.1.10.11

84 bytes from 10.1.10.11 icmp_seq=1 ttl=64 time=43.779 ms
84 bytes from 10.1.10.11 icmp_seq=2 ttl=64 time=44.457 ms
84 bytes from 10.1.10.11 icmp_seq=3 ttl=64 time=45.107 ms
84 bytes from 10.1.10.11 icmp_seq=4 ttl=64 time=47.130 ms
84 bytes from 10.1.10.11 icmp_seq=5 ttl=64 time=17.954 ms



VPC5
VPCS> ping 10.1.20.21

10.1.20.21 icmp_seq=1 timeout
84 bytes from 10.1.20.21 icmp_seq=2 ttl=255 time=24.435 ms
84 bytes from 10.1.20.21 icmp_seq=3 ttl=255 time=40.275 ms
84 bytes from 10.1.20.21 icmp_seq=4 ttl=255 time=27.052 ms
84 bytes from 10.1.20.21 icmp_seq=5 ttl=255 time=28.474 ms



VPC11
VPCS> ping 10.1.10.4

84 bytes from 10.1.10.4 icmp_seq=1 ttl=64 time=47.825 ms
84 bytes from 10.1.10.4 icmp_seq=2 ttl=64 time=60.588 ms
84 bytes from 10.1.10.4 icmp_seq=3 ttl=64 time=34.389 ms
84 bytes from 10.1.10.4 icmp_seq=4 ttl=64 time=51.106 ms
84 bytes from 10.1.10.4 icmp_seq=5 ttl=64 time=31.326 ms



N9K-2# show mac address-table dynamic 
Legend: 
        * - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
        age - seconds since last seen,+ - primary entry using vPC Peer-Link,
        (T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan
   VLAN     MAC Address      Type      age     Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
*   10     0050.7966.6804   dynamic  0         F      F    Eth1/2
*   10     0050.7966.680b   dynamic  0         F      F    Eth1/5
*   20     0050.7966.6805   dynamic  0         F      F    Eth1/3
*   20     0050.7966.680c   dynamic  0         F      F    Eth1/5
*   20     5000.000e.0000   dynamic  0         F      F    Eth1/5



SW1#show mac address-table dynamic 
          Mac Address Table
-------------------------------------------

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
  10    0050.7966.6804    DYNAMIC     Gi0/2
  10    0050.7966.680b    DYNAMIC     Gi0/0
  20    0050.7966.6805    DYNAMIC     Gi0/2
  20    0050.7966.680c    DYNAMIC     Gi0/1
  20    5000.000e.0000    DYNAMIC     Gi0/3
Total Mac Addresses for this criterion: 5
Powered by Create your own unique website with customizable templates.
  • Home
  • Technology VoD!
    • Cisco >
      • Route & Switch / Enterprise Infrastructure
  • Technology Breakdowns!
    • Route&Switch/Ent. Infra. >
      • L2 Technologies
      • L3 Technologies
      • VPN Technologies
      • Services >
        • IOS - Dynamic NAT
        • HSRP - IPv4 Setup
        • HSRP - Priority and Preemption
    • Service Provider >
      • IGPs (Interior Gateway Protocols)
      • First Hop Redundancy >
        • HSRP (Hot Standby Router Protocol) >
          • HSRP - IOS/IOS XE Setup
          • HSRP - IOS XR Setup
      • BGP (Border Gateway Protocol)
      • Inter AS Multicast (MSDP)
      • Intra-AS MPLS
      • Inter-AS MPLS
    • Security >
      • IOS Firewall
      • ASA Firewall
      • FirePOWER Threat Defense >
        • FTD - FTD NGFW Device Setup and FMC Integration
      • VPNs >
        • PKI
        • Site to Site VPNs
        • Remote Access VPNs >
          • IOS Remote Access
          • ASA Remote Access
    • Data Center >
      • Nexus 9000v >
        • Nexus 9000v - Enabling Features
        • Nexus 9000v - VLANs and Trunks
        • Nexus 9000v - LACP Port Channels
        • Nexus 9000v - vPC (Virtual Port Channel)
        • Nexus 9000v - OSPFv2
        • Nexus 9000v - VXLAN - Ingress Replication Flood and Learn
        • Nexus 9000v - IP Multicast
        • Nexus 9000v - VxLAN - Multicast Flood and Learn
        • Nexus 9000v - VxLAN - BGP EVPN with Multicast
        • Nexus 9000v - VxLAN - BGP EVPN w/Ingress Replication
        • Nexus 9000v - VxLAN - Inter-VxLAN Routing with BGP EVPN
        • Nexus 9000v - VXLAN - External Routing
      • Nexus 7000v
    • Palo Alto