In actual work our routing and switches are always placed in the room to facilitate our work we need to configure the routing and switches so that we can configure the routers and switches in the office or at home.
This is a simple network topology diagram where a computer-connected route configures the switch across network segments
First we determine the PC ip:192.168.1.1 255.255.255.0 gateway 192.168.1.254
Routing gigabit0/0ip:192.168.1.254 255.255.255.0
Command r1>enteral to turn on privileged mode
R1#config Terminal into global mode
R1 (config) #interface gigabitethernet 0/0 into Gigabit Port 0/0
R1 (config-if) #ip address 192.168.1.254 255.255.255.0 0/0 Port IP Settings
R1 (config-if) #no shutdown activation port configuration
R1 (config-if) #exit返回上层对下一个端口进行配置
Routing gigabit0/1ip:10.0.0.254 255.255.255.0
R1 (config) #interface gigabitethernet 0/1 into Gigabit Port 0/1
R1 (config-if) #ip address 10.0.0.254 255.255.255.0 Configure IP
R1 (config-if) #no shutdown activation port
Switch configuration virtual vlan1ip:10.0.0.1 255.255.255.0
Switch configuration Ideas--Privileged password settings--vlan1 ip--configuration gateway--Remote login password settings
Switch>enable Entering privileged mode
Switch#config Terminal into global mode
Switch (config) #hostname WR1 to change the name of the device for easy configuration later
WR1 (config) #enable password 123 configuration password 123
WR1 (config) #interface vlan 1 into vlan1 configuration
WR1 (config-if) #ip address 10.0.0.1 255.255.255.0
WR1 (config-if) #no Shotdown activation port
WR1 (config) #end return to privileged mode
Wr1#write Save
Wr1#config Terminal into global mode
WR1 (config) #ip default-gateway 10.0.1.254 Configuration Gateway
WR1 (config) #line vty 04 Configure the remote port 0-4 host
WR1 (config-line) #password 456 Set Password 456
Wr1#write Saving a configuration file
Finally verify the configuration
---------validation failed
[Connection to 10.0.1.1 closed by foreign host]
Continue tomorrow.
Configuring the Remote network management Cisco routing switch