Fail when learning but not thinking. fail when thinking but not learning. Stick to a small step every day and make a huge step of success.
Next, we use cisco packet to simulate vswitches and vro remote and console logon to configure vswitches.
How to connect and configure the Console port of a vswitch
(1) Select a computer and Switch Under Cisco Packet
(2) connecting the COM port of the computer and the Console port of the switch through the control line
(3) open the computer terminal, and then you can enter the switch through the computer, and then you can start configuring.
The configuration code is as follows:
Switch> enswitch # configswitch # configure authentication ing from terminal, memory, or network [terminal]? Enter configuration commands, one per line. end with cntl/Z. switch (config) # Line coswitch (config) # Line console 0 switch (config-line) # paswitch (config-line) # passwitch (config-line) # password ciscoswitch (config-line) # loginswitch (config-line) # exitswitch (config) # exit
After this configuration, open the terminal and enter the vswitch with a password.
The following describes how to remotely log on to a vswitch by configuring a vswitch.
Switch (config) # Line vty 0 4 switch (config-line) # paswitch (config-line) # passwitch (config-line) # password ciscoswitch (config-line) # loginswitch (config-line) # exitswitch (config) # int VLAN 1 switch (config-If) # IP adswitch (config-If) # IP address 192.168.1.254 255.255.255.0switch (config-If) # exit
In this case, connect the vswitch with a network cable and set the IP address on the computer to any IP address of 192.168.1.0-254, which indicates that the remote connection is irrelevant to the gateway. Why do vswitches need to configure IP addresses in vlan1? Cannot I configure IP addresses in other VLANs? What I want to tell you is that it can be configured. The reason is that all ports allow only vlan1 to pass by default, so they can only be configured under the current VLAN.
Vro configuration console login is the same as vswitch, you can follow the previous configuration.
Let's take a look at why the telnet configuration is different?
Router (config) # int fa0/0 router (config-If) # IP adrouter (config-If) # IP address 192.168.2.1 255.255.0router (config-If) # exitrouter (config) # router (config) # lirouter (config) # Line vty 0 4 router (config-line) # parouter (config-line) # pasrouter (config-line) # password ciscorouter Uter (config-line) # loginrouter (config-line) # exit
Different from a vswitch, you must configure an IP address on the interface, because the router has the routing function, and the vswitch only needs the layer-3 VLAN interface to have the routing function.