Here is a simple one-arm routing configuration process that I do myself, now take it out and share it with everyone.
As shown in figure:
PC 3 units, notebook 1 units;
Two-layer Switch 1 units Switch1 (4 vlan:10, 20, 30, 40)
Router 1 Router1 (single arm routing)
First start to configure the PC IP address notebook: 192.168.10.2 each PC IP address: 192.168.20.2;192.168.30.2;192.168.40.2 mask is 24 bits, configure the gateway.
To configure the Switch VLAN:
Switch>enable
Router#config Terminal
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End With cntl/z. Enter Global configuration mode
Switch (config) #no IP domain-lookup//No Domain name resolution
Switch (config) #line console 0//Enter line mode
Switch (config-line) #exec-timeout 0 0//No timeout
Switch (config-line) #logging synchronous//Display sync
Switch (config-line) #hostname switch//Configuration host Name
Switch (config) #exit
switch#
Switch#vlan Database
% Warning:it is recommended to configure VLANs from config mode,
As VLAN database mode is being deprecated. Please consult user
documentation for configuring Vtp/vlan in config mode.
Switch (VLAN) #vlan 10
VLAN Ten added:
name:vlan0010
Switch (VLAN) #vlan 20
VLAN added:
name:vlan0020
Switch (VLAN) #vlan 30
VLAN added:
name:vlan0030
Switch (VLAN) #vlan 40
VLAN added:
name:vlan0040
Switch (VLAN) #exit
APPLY completed.
Exiting .....
Switch #
Switch#config Terminal
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End With cntl/z.
Switch (config) #interface range F0/2-4
Switch (config-if) #switchport mode access
Switch (config-if) #switchport Access VLAN 10
Switch (config-if) #exit
Switch (config) #interface range F0/5-6
Switch (config-if) #switchport Access VLAN 20