We investigate the multi-band properties of the GRB 161017A with [Formula: see text], which was detected by Swift and Fermi satellites, and other instruments. The optical and X-ray afterglows were all detected at early times after the prompt emission. The optical light curve shows a very bright onset peak at about 100 s for 13 mag of [Formula: see text]-band, while the X-ray light curve occurs several flares at the beginning. We investigate the origin of X-ray and optical afterglows by analyzing the optical and X-ray data. Considering the smooth onset bump in the early time of the optical band and the erratic pulses for the X-ray lightcurve, we suppose that the early optical afterglow may be produced by the external shock, while the early time of X-ray light curve is dominated by flares. Therefore, GRB optical afterglows with smooth onset bump features at early time are possibly produced by external — forward shock (FS). According to the fireball external-model, the temporal slopes of the onset bumps are determined by both the medium density profile and the electron spectral index. Therefore, the afterglow onset bumps would be an ideal probe to study the properties of the fireball and the circumburst medium. The density profile has a slope of [Formula: see text], which suggests that the circumburst environment of the GRB 161017A would be an intermediate regime that are between the homogeneous interstellar medium (ISM) and wind-type medium. In addition, the optical light curve of the GRB 161017A exhibits a plateau feature and rebrightening after the onset bump, which may be related to the long-acting central engine of GRBs.