Question
What command sequence would you use to assign switch interface f0/1/0 to VLAN 50? (
Answers
GPT-4o mini
To assign switch interface `f0/1/0` to VLAN 50 on a Cisco switch, you would use the following command sequence in the Command Line Interface (CLI):
1. Enter privileged EXEC mode:
```plaintext
enable
```
2. Enter global configuration mode:
```plaintext
configure terminal
```
3. Access the specific interface you want to configure:
```plaintext
interface f0/1/0
```
4. Assign the interface to VLAN 50:
```plaintext
switchport access vlan 50
```
5. (Optional) If the interface is currently configured as a trunk port (and you want it to be an access port), you may need to set it as an access port:
```plaintext
switchport mode access
```
6. Exit the interface configuration mode:
```plaintext
exit
```
7. (Optional) Exit global configuration mode:
```plaintext
exit
```
8. Finally, save the configuration (optional, but recommended):
```plaintext
write memory
```
or
```plaintext
copy running-config startup-config
```
So the full command sequence would look like this:
```plaintext
enable
configure terminal
interface f0/1/0
switchport mode access
switchport access vlan 50
exit
exit
write memory
```
This sequence effectively configures the interface `f0/1/0` as an access port and assigns it to VLAN 50.
1. Enter privileged EXEC mode:
```plaintext
enable
```
2. Enter global configuration mode:
```plaintext
configure terminal
```
3. Access the specific interface you want to configure:
```plaintext
interface f0/1/0
```
4. Assign the interface to VLAN 50:
```plaintext
switchport access vlan 50
```
5. (Optional) If the interface is currently configured as a trunk port (and you want it to be an access port), you may need to set it as an access port:
```plaintext
switchport mode access
```
6. Exit the interface configuration mode:
```plaintext
exit
```
7. (Optional) Exit global configuration mode:
```plaintext
exit
```
8. Finally, save the configuration (optional, but recommended):
```plaintext
write memory
```
or
```plaintext
copy running-config startup-config
```
So the full command sequence would look like this:
```plaintext
enable
configure terminal
interface f0/1/0
switchport mode access
switchport access vlan 50
exit
exit
write memory
```
This sequence effectively configures the interface `f0/1/0` as an access port and assigns it to VLAN 50.