You can configure a port as a Layer 2 interface or a Layer 3 interface.
Configuring Layer 2 interfaces
To configure a Layer 2 interface:
- On the Configuration > Ports > Port Configuration page, choose the port you want to configure, and click the Port Settings tab.
- Choose a switch mode. More...
Access ports transport traffic to and from only the VLAN assigned to it.
Trunk ports carry traffic for multiple VLANs, using a process called trunking.
Trunk ports mark frames with unique
identifying IEEE 802.1Q tags (when configured), to direct each frame to its designated VLAN.
When a port is in dynamic auto mode, it passively listens for and receives Dynamic Trunking Protocol (DTP) messages
generated by a port in dynamic desirable mode, on another switch on the other side. A trunk link is formed between the
two interfaces and all frames are tagged.
- If you choose access mode, assign a VLAN to the port, in the Access VLAN field. By default, all ports assigned to VLAN 1 are assigned as access ports.
- If you choose trunk as the switch mode, assign a range of VLANs to the port. To assign all VLANs to carry port traffic, select All VLANs, or select VLAN IDs and specify a range of VLANs that can carry traffic for the port.
- If you choose dynamic auto or dynamic desirable, assign a range of VLANs to the port. To assign all VLANs to carry port traffic, select All VLANs, or select VLAN IDs and specify a range of VLANs that can carry traffic for the port. If DTP negotiation fails, the dynamic auto and dynamic desirable ports become access ports. Assign an access VLAN to the ports, in the Access VLAN field.
- In the Voice VLAN field, specify a VLAN to carry voice traffic.
- For network security reasons, specify a VLAN other than VLAN 1 in the Native VLAN field. When your device receives untagged frames on a trunk port, they are sent to the native VLAN. By default, this is VLAN 1.
- If your device connects to endpoints (for example, to phones and computers and not to other switches or hubs), set the Port Fast field to on, to enable PortFast on the interface. More...
Devices that connect to PortFast enabled ports can connect to the network immediately, instead of waiting for the port to transition from the Listening and Learning states to the Forwarding state.
- To activate DHCP snooping on the port, set DHCP Snooping to enable. More...
DHCP snooping acts like a firewall between untrusted hosts and trusted DHCP servers, validating DHCP messages received from untrusted sources and filtering out invalid messages. The DHCP snooping binding database maintains information about untrusted hosts with leased IP addresses, and validates subsequent requests from untrusted hosts.
- Click Apply to save your changes.
Configuring Layer 3 interfaces
A routed interface is a physical port that can route IP traffic to another device. To configure a Layer 3 interface:
- On the Configuration > Ports > Port Configuration page, choose the port you want to configure, and click the Port Settings tab.
- Slide to select Routed mode.
- Assign an IP address to this interface.
- To specify an IPv4 address and subnet mask for the interface, choose Static IP, from the IP Type drop-down list.
- To use DHCP to assign an IP address to the interface, choose DHCP from the IP Type drop-down list. Specify a hostname.
- To use an IP address from a DHCP pool, choose DHCP Pool. Choose a DHCP pool from the DHCP Pool List drop-down list.
- Click Apply to save your changes.
You can configure the same IP address on multiple ports, which are in Admin Down state, from the GUI. While configuring the same IP address on different ports:
- No warning message is shown for ports in Admin Down state.
- You can bring UP only one port. If you try to bring up the other port , an error message is shown.