Despite well-known intestinal epithelial barrier impairment and visceral hypersensitivity in irritable bowel syndrome (IBS) patients and IBS-like models, structural and physical changes in the mucus layer remain poorly understood. Using a water avoidance stress (WAS) model, we aimed at evaluating whether 1) WAS modified gut permeability, visceral sensitivity, mucin expression, biochemical structure of O-glycans, and related mucus physical properties, and 2) whether Lactobacillus farciminis treatment prevented these alterations. Wistar rats received orally L. farciminis or vehicle for 14 days; at day 10, they were submitted to either sham or 4-day WAS. Intestinal paracellular permeability and visceral sensitivity were measured in vivo. The number of goblet cells and Muc2 expression were evaluated by histology and immunohistochemistry, respectively. Mucosal adhesion of L. farciminis was determined ex situ. The mucin O-glycosylation profile was obtained by mass spectrometry. Surface imaging of intestinal mucus was performed at nanoscale by atomic force microscopy. WAS induced gut hyperpermeability and visceral hypersensitivity but did not modify either the number of intestinal goblet cells or Muc2 expression. In contrast, O-glycosylation of mucins was strongly affected, with the appearance of elongated polylactosaminic chain containing O-glycan structures, associated with flattening and loss of the mucus layer cohesive properties. L. farciminis bound to intestinal Muc2 and prevented WAS-induced functional alterations and changes in mucin O-glycosylation and mucus physical properties. WAS-induced functional changes were associated with mucus alterations resulting from a shift in O-glycosylation rather than from changes in mucin expression. L. farciminis treatment prevented these alterations, conferring epithelial and mucus barrier strengthening.