wiki:Internal/OpenFlow/SwitchConfiguration

Version 1 (modified by akoshibe, 15 years ago) ( diff )

Configuring the NEC Switch

Here is a list of configurations that are useful for this topic. There are configuration guides but they might not be too useful, as they are all in Japanese.

Overview

All configuration steps assume privelaged mode. [BR] The configuration for the following topics are covered here:

  • Relay agent
  • Trunks
  • Native VLANs

Native VLANs

  1. Make a VLAN. name it appropriately. This will be the native VLAN.
    (config)# vlan 1
    (config-vlan)# name "Network"
    !(config-vlan)# exit
    
  2. Configure ports to be trunk ports, then specify the native VLAN
    !(config)# interface gi 0/48
    !(config-if)# switchport mode trunk 
    !(config-if)# switchport trunk native vlan 1
    
  3. Specify which VLANs are allowed on the trunk. This includes all VLANs that converge to this trunk, as well as the native VLAN for this trunk. Since this port had already been assigned other allowed VLANs, instead of using command switchport trunk allowed vlan 1,3,27,28 you can just add VLAN 1 by using the vlan add <vlan ID> context:
    !(config-if)# swi trunk allowed vlan add 1
    

so now the configurations for port 0/48 look like this:

!(config-if)# sh
interface gigabitethernet 0/48
  switchport mode trunk
  switchport trunk allowed vlan 1,3,27-28
  switchport trunk native vlan 1
!
Note: See TracWiki for help on using the wiki.