# 1. Nexus Core Switch

# 1. Installation



# 2. Current VLAN Configuration

\# Port Configuration

This section outlines which ports are connected to what. Since, we only use the top 24 ports it will only have the odd numbers inside the set \[1,47\].

Ethernet1/1 &lt;----&gt; Patch-01 &lt;----&gt; WAP1 &lt;----&gt; Trunk port &lt;----&gt; VLAN: ALL &lt;----&gt; Native VLAN: MGMT  
Ethernet1/3 &lt;----&gt; Patch-02 &lt;----&gt; EMPTY   
Ethernet1/5 &lt;----&gt; Patch-03 &lt;----&gt; TV1 &lt;----&gt; Access port &lt;----&gt; VLAN: IOT   
Ethernet1/7 &lt;----&gt; Patch-04 &lt;----&gt; TV2 &lt;----&gt; Access port &lt;----&gt; VLAN: IOT   
Ethernet1/9 &lt;----&gt; Patch-05 &lt;----&gt; Envoy &lt;----&gt; Access port &lt;----&gt; VLAN: IOT  
Ethernet1/11 &lt;----&gt; Patch-06 &lt;----&gt; EMPTY &lt;----&gt; Access port &lt;----&gt; VLAN: IOT

Ethernet1/13 &lt;----&gt; Patch-07 &lt;----&gt; EMPTY   
Ethernet1/15 &lt;----&gt; Patch-08 &lt;----&gt; EMPTY  
Ethernet1/17 &lt;----&gt; Patch-09 &lt;----&gt; EMPTY  
Ethernet1/19 &lt;----&gt; Patch-10 &lt;----&gt; EMPTY  
Ethernet1/21 &lt;----&gt; Patch-11 &lt;----&gt; EMPTY  
Ethernet1/23 &lt;----&gt; Patch-12 &lt;----&gt; EMPTY

Ethernet1/25 &lt;----&gt; Patch-13 &lt;----&gt; MGMT PVE 1 &lt;----&gt; Access port &lt;----&gt; VLAN: MGMT   
Ethernet1/27 &lt;----&gt; Patch-14 &lt;----&gt; IPMI PVE 1 &lt;----&gt; Access port &lt;----&gt; VLAN: MGMT  
Ethernet1/29 &lt;----&gt; Patch-15 &lt;----&gt; MGMT R1 &lt;----&gt; Access port &lt;----&gt; VLAN: MGMT  
Ethernet1/31 &lt;----&gt; Patch-16 &lt;----&gt; PC1 &lt;----&gt; Access port &lt;----&gt; VLAN: MGMT  
Ethernet1/33 &lt;----&gt; Patch-17 &lt;----&gt; BackupNas &lt;----&gt; Access ort ,----.&gt; VLAN:MGMT  
Ethernet1/35 &lt;----&gt; Patch-18 &lt;----&gt; EMPTY

Ethernet1/37 &lt;----&gt; Patch-19 &lt;----&gt; EMPTY  
Ethernet1/39 &lt;----&gt; Patch-20 &lt;----&gt; EMPTY  
Ethernet1/41 &lt;----&gt; Patch-21 &lt;----&gt; PVE1 1Gig  
Ethernet1/43 &lt;----&gt; Patch-22 &lt;----&gt; VLANs PVE2 &lt;----&gt; Trunk port &lt;----&gt; VLAN: All &lt;----&gt; Native VLAN: MGMT  
Ethernet1/45 &lt;----&gt; Patch-23 &lt;----&gt; VLANs Backup PVE1 &lt;----&gt; Trunk port &lt;----&gt; VLAN: All   
Ethernet1/47 &lt;----&gt; NOT CONNECTED

10GEthernet1/49 &lt;----&gt; NOT CONNECTED  
10GEthernet1/50 &lt;----&gt; Patch-24 &lt;----&gt; VLANs PVE1 &lt;----&gt; Trunk port &lt;----&gt; VLAN: All  
10GEthernet1/51 &lt;----&gt; NOT CONNECTED  
10GEthernet1/52 &lt;----&gt; Port Router R1 (ix0) &lt;----&gt; Trunk port &lt;----&gt; VLAN: All

  
For example, if you have VLAN 1 with devices in the 192.168.1.0/24 subnet and VLAN 2 with devices in the 192.168.2.0/24 subnet, the router will have two sub-interfaces configured: one with an IP address in the 192.168.1.0/24 subnet for VLAN 1 and another with an IP address in the 192.168.2.0/24 subnet for VLAN 2.

It's important to note that VLANs are layer 2 constructs, and routing between VLANs is a layer 3 function handled by the router. The router uses these IP addresses to route traffic between VLANs and to external networks.

  
Make sure that management interface is only accessible at a specific IP address

# 2. Configure VLANs



# 2. SSH

To login into the Cisco Nexus server with SSH you need to use the following adjusted ssh command. Assuming you are on a linux computer. In this specific case this works for Debian Gnome.

```bash
ssh -o HostKeyAlgorithms=+ssh-rsa dpasn@10.18.81.151
```

Passsword: Groustercoreswitch13

To allow multiple VLANs on a Cisco Nexus switch, use the command: switchport trunk allowed vlan &lt;vlan-list&gt; where &lt;vlan-list&gt; can be a range or specific VLAN IDs. For example, to allow VLANs 10, 20, and 30, you would enter switchport trunk allowed vlan 10,20,3