106 | | The switch can be a DHCP server, so it was made so the laptop that'll be used to test telnet would get an address from the switch. The commands make it so there is DHCP for group "Test1" on VLAN 1, and an address pool whose lease length is 10 minutes. |
107 | | {{{ |
108 | | !(config)# service dhcp vlan 1 |
109 | | !(config)# ip dhcp excluded-address 192.168.10.1 |
110 | | !(config)# ip dhcp pool Test1 |
111 | | !(dhcp-config)# network 192.168.11.0 255.255.255.0 |
112 | | !(dhcp-config)# lease 0 0 10 |
113 | | }}} |
| 106 | The switch can be a DHCP server, so it was made so the laptop that'll be used to test if the telnet configs worked would get an address from the switch. This was later disabled since hosts on this switch would acquire IP addresses from a designated DHCP server. |
| 107 | The commands for making the switch a DHCP server is [wiki:Documentation/OpenFlow/SwitchConfiguration here]. |
207 | | === Setting port speeds (7/17) === |
208 | | The default is autonegociation, but somehow, the nodes weren't connected at 1Gbps. So we had to set the port speeds to 1Gbps. You have to do each port, which is pretty annoying. |
209 | | |
| 201 | === Port speeds (7/17) === |
| 202 | By default, the switch autonegociates. You can change this by going into configuration mode for each port, and changing settings using the `speed` command. The syntax: |
| 203 | |
| 204 | * `speed auto [10|100|1000]` - autonegociate. If a speed is specified, the port will be shut down by the switch if the host refuses to negotiate to the set speed. |
| 205 | * `speed [10|100|1000]` - sets port to specific speed, no autonegociation |
| 206 | |
| 207 | The port should be shut down before changing speed settings. This seems to allow the changes to take immediate effect, even before saving config changes. Each port needs to be configured separately, which makes it a bit annoying. |