I'm solving problem with slow DHCP request/respons about 45 secs...toplogy is [L2] DELL 6248 -> [L2->L3] router (cisco) -> firewall Debian server with DHCP -> gateway to internet I think that problem is on DELL 6248 where clients are connected. When client connect to 6248, his MAC address is not in bridge CAM table until he don't get IP address from DHCP (IP form same network that has L2 dell switch has configured) So I need to configure DELL switch to accept clients on port from different networks (I mean standard windows 192.168...) Somebody can help me with this configuration?
1 Answers
Do you have Portfast set up on the interfaces?
- Portfast Allows immediate transition to a forwarding state
- Port still participates in STPUsed for non-switch devices
- Clients
- Servers
- Printers
- Prevents unnecessary timeouts from DHCP servers
- Portfast configuration ignored when port is connected to another switch
When a host is attached to a network switch such as a computer, printer or server, STP will run on the port. Forwarding state will occur, albeit after a delay of about 50 seconds while it goes through the listening and learning states.
As STP is running, no user data will pass via the port. The host NIC is active however it has no network connectivity. Some user applications can time out during the period, such as DHCP. This would cause the host to self issue an Apipa address (169.254.x.x) this address will not allow the host to communicate on the network.
In order to allow immediate transition of the port into the forwarding state for Hosts, enable the STP PortFast feature. PortFast immediately transitions the port into STP forwarding mode upon linkup with less than a 5 sec delay. The port still participates in STP. So if the port receives a BPDU from another Network bridge (switch), the port ignores PortFast and processes the BPDU as normal. The port transitions through Listening, learning, forwarding or blocking state with the original 50 sec delay. There is no danger of causing a data Loop as STP is always listening for BPDU’s with or without PortFast enabled on all ports.
It is highly recommend to enable PortFast on all client ports. It is highly discouraged to Disable STP under any circumstances unless there is a specific reason to. Without STP the switch will behave as an unmanaged switch!
To configure Portfast on an interface:
console# config
console(config)# interface ethernet g5
This command will vary on different vendor platforms
This enables Portfast on this port:
console(config-if)# spanning-tree portfast
console(config-if)# exit

- 24,484
- 8
- 79
- 100

- 31
- 1
-
Thanks for quick respond, perfect solution and problem explanation. It speed up dhcp communication to 1-3 seconds. – tombo Apr 25 '12 at 01:10
-
3**Caution**: Do not enable portfast on any port that might get connected to anything other than an end station. (Unless you know exactly what you're doing.) – David Schwartz Apr 25 '12 at 02:02