HPE switches use ProVision (old) or AOS-CX (newer models).
Layer 2 Configuration (HPE Aruba ProCurve)
- Create VLANs bash
configure terminal vlan 10 name HR vlan 20 name IT exit
- Assign Ports to VLANs
- Access Mode bash
interface 1 untagged vlan 10 interface 2 untagged vlan 20 exit
- Trunk Mode (Tagged) bash
interface 24 tagged vlan 10,20 exit
- Access Mode bash
- Verify Configuration bash
show vlan
Layer 3 Configuration (HPE Aruba ProCurve)
- Enable Routing Edit
configure terminal ip routing
- Assign VLAN IPs bashCopyEdit
vlan 10 ip address 192.168.10.1 255.255.255.0 vlan 20 ip address 192.168.20.1 255.255.255.0 exit
- Assign Physical Ports to VLANs bash
interface 1 untagged vlan 10 interface 2 untagged vlan 20 exit
- Set Default Route (If Needed) bash
ip route 0.0.0.0 0.0.0.0 192.168.1.1
- Verify Configuration bash
show ip route
2. Dell Networking (OS6, OS9, OS10)
Dell switches can run different operating systems, so commands vary.
Layer 2 Configuration (Dell OS6 & OS9)
- Create VLANs bash
configure vlan database vlan 10,20 exit
- Assign VLANs to Ports
- Access Mode bash
interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 10 exit
- Trunk Mode bash
interface gigabitethernet 1/0/24 switchport mode trunk switchport trunk allowed vlan 10,20 exit
- Access Mode bash
- Verify VLAN Configuration bash
show vlan
Layer 3 Configuration (Dell OS6 & OS9)
- Enable Routing bash
configure ip routing
- Assign VLANs to Interfaces bash
interface vlan 10 ip address 192.168.10.1 255.255.255.0 exit interface vlan 20 ip address 192.168.20.1 255.255.255.0 exit
- Assign Physical Ports to VLANs bash
interface gigabitethernet 1/0/1 switchport mode access switchport access vlan 10 exit interface gigabitethernet 1/0/2 switchport mode access switchport access vlan 20 exit
- Set Default Route bash
ip route 0.0.0.0 0.0.0.0 192.168.1.1
- Verify Routing bash
show ip route
3. Cisco Switches (IOS)
Layer 2 Configuration
- Create VLANs bash
configure terminal vlan 10 name HR vlan 20 name IT exit
- Assign Ports bash
interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 exit interface GigabitEthernet0/2 switchport mode access switchport access vlan 20 exit
- Trunk Port bash
interface GigabitEthernet0/24 switchport mode trunk switchport trunk allowed vlan 10,20 exit
- Verify VLAN bash
show vlan brief
Layer 3 Configuration
- Enable Routing bash
configure terminal ip routing
- Assign VLAN IPs bash
interface Vlan10 ip address 192.168.10.1 255.255.255.0 no shutdown interface Vlan20 ip address 192.168.20.1 255.255.255.0 no shutdown
- Assign Physical Ports bash
interface GigabitEthernet0/1 switchport mode access switchport access vlan 10 exit interface GigabitEthernet0/2 switchport mode access switchport access vlan 20 exit
- Set Default Route bash
ip route 0.0.0.0 0.0.0.0 192.168.1.1
- Verify Configuration bash
show ip route
Summary
Vendor | Layer 2 | Layer 3 |
---|---|---|
HPE Aruba | VLAN tagging (untagged/tagged) | ip routing , vlan <ID> ip address |
Dell OS6/OS9 | switchport mode access/trunk | interface vlan <ID> ip address |
Cisco IOS | switchport mode access/trunk | interface vlan <ID> ip address , ip routing |