Configure IP addresses for vrouters
Router (config) # interface fastethernet 0/1
Router (config-if) # ip address 192.168.1.100 255.255.255.0
Router (config-if) # no shutdown
Configure IP addresses for vswitches
Switch (config) # interface vlan 1
Switch (config-if) # ip address 192.168.1.100 255.255.255.0
Switch (config-if) # no shutdown
Static Routing
Router (config) # ip route 192.168.1.0 255.255.255.0 192.168.10.1
Default route
Router (config) # ip route 0.0.0.0 0.0.0.0 192.168.10.1
Floating route
Router (config) # ip route 192.168.1.0 255.255.255.0 192.168.10.1 50
Router (config) # ip route 0.0.0.0 0.0.0.0 192.168.10.1 50
Configure Default gateways for vswitches for convenient management
Switch (config) # ip default-gateway 192.168.2.254
Secondary address
Switch (config-if) # ip address 192.168.1.1 255.255.255.0 secondary
This article is from the blog "make a little progress every day" and will not be reposted!