---
# System prepended metadata

title: CONFIGURATION EN CLI

---

# CONFIGURATION EN CLI 


## CONFIGURATION SWITCH
```
en 
conf t
vlan 10
name PCs
vlan 12
name Tels
vlan 14
name Printers
vlan 99
name MGMT
vlan 100
name infra
do write mem
```

## CONFIGURATION ROUTEUR
```
en
conf t
int fa1/0
no shut
exit
int fa1/0.10
encapsulation dot1q 10
ip address 192.168.11.254 255.255.254.0
no shut
exit
int fa1/0.12
encapsulation dot1q 12
ip address 192.168.13.254 255.255.254.0
no shut
exit
int fa1/0.14
encapsulation dot1q 14
ip address 192.168.14.30 255.255.254.224
no shut
exit
int fa1/0.99
encapsulation dot1q 99
ip address 10.1.1.254 255.255.255.0
no shut
exit
```