Ad space (banner)
📡Networking Lessons
Lesson 7 / 39

Entering Port Configuration with interface

When you want to configure a specific port (interface) — say, give it an IP address — use interface. It moves you from configuration mode into a configuration mode dedicated to the port you name.

The syntax is interface port-name, specifying the port type and number, as in GigabitEthernet0/1.

Running interface GigabitEthernet0/1 changes the prompt to (config-if)#, and operations specific to that port — assigning an IP address, enabling it — become available.

A common stumble is mistyping the port name (a port number that doesn't exist, for example) and configuring a different place than intended. Check the device's port layout beforehand.

In real work, this is the extremely frequent starting point for assigning each port the VLAN or IP address its connected device needs.

Networking
Try it (type this into the pseudo terminal)
interface GigabitEthernet0/1

🧑‍💻 You can type this command into the Networking pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)