Changes between Version 3 and Version 4 of Internal/OpenFlow/SwitchConfiguration
- Timestamp:
- Jul 9, 2009, 5:29:43 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/SwitchConfiguration
v3 v4 3 3 4 4 == Overview == 5 All configuration steps assume privileged mode. [ BR]5 All configuration steps assume privileged mode. [[BR]] 6 6 The configuration for the following topics are covered here: 7 7 8 8 * Undoing configurations 9 * Trunks 10 * Native VLANs 11 * Switch as DHCP client 9 * DHCP/BootP relay agent/IP helper 12 10 13 11 == Undoing Configurations == … … 28 26 !(config-if)# exit 29 27 !(config)# no vlan 4 30 !(config)# 28 !(config)# save 31 29 }}} 32 30 33 == Native VLANs == 34 1. Make a VLAN. Name the native VLAN. 31 == DHCP/BootP relay agent/IP helper (6/28) == 32 This is a translation from the online NEC guide. 33 1. set up VLAN and associated port. Assign static IP address to port. This is the vlan on which the DHCP clients live. 35 34 {{{ 36 (config)# vlan 1 37 (config-vlan)# name "Network" 38 !(config-vlan)# exit 39 }}} 40 2. Assign static IP address to the interface. we needed to find the switch's IP address 35 (config)# vlan 2 36 (config-vlan)# exit 37 (config)# interface gigabitethernet 0/5 38 (config-if)# switchport mode access 39 (config-if)# switchport access vlan 2 40 (config-if)# exit 41 (config)# interface vlan 2 42 (config-if)# ip address 10.1.0.1 255.255.0.0 43 (config-if)# exit 44 }}} 45 46 2. Next, set up the VLAN and interface connected to the DHCP server. 41 47 {{{ 42 !(config-vlan)# interface vlan 1 43 !(config-if)# ip address 172.16.19.253 255.255.0.0 44 }}} 45 3. Configure ports to be trunk ports, then specify the native VLAN 46 {{{ 47 !(config)# interface gi 0/48 48 !(config-if)# switchport mode trunk 49 !(config-if)# switchport trunk native vlan 1 50 }}} 51 4. 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. If the port is already made to allow other 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: 48 (config)# vlan 3 49 (config-vlan)# exit 50 (config)# interface gigabitethernet 0/7 51 (config-if)# switchport mode access 52 (config-if)# switchport access vlan 3 53 (config-if)# exit 54 (config)# interface vlan 3 55 (config-if)# ip address 20.1.0.1 255.255.0.0 56 (config-if)# exit 57 }}} 58 59 3. set the DHCP server's address as the helper address. 52 60 {{{ 53 !(config-if)# swi trunk allowed vlan add 1 54 }}} 55 so now the configurations for port 0/48 look like this: 56 {{{ 57 !(config-if)# sh 58 interface gigabitethernet 0/48 59 switchport mode trunk 60 switchport trunk allowed vlan 1,3,27-28 61 switchport trunk native vlan 1 62 ! 63 }}} 61 (config)# interface vlan 2 62 (config-if)# ip helper-address 20.1.0.10 63 (config-if)# exit 64 }}} 65 66 67 68