Three switches configured cross-vlan communication
1. Create all hosts and gateways ip
2. For switcher, create a (global mode) vlan, configure Truck
Switch (config) #vlan 10
the switch interface vlan partition (interface mode)
Switch (config) #interface Range F0 / 1-2
Switch (config-IF-Range) #switchport MODE Access
Switch (config-IF-Range) 10 #switchport Access VLAN
configuration Truck
Switch (config) #interface F0 /. 3
Switch ( IF-config) #switchport mODE truck
(802.1q encapsulation default mode switcher)
3 for three switches, vlan create, open routing, IP settings, arranged truck
create vlan supra
open routing
switch (config) #ip routing
arrangement of the vlan ip address
Switch (config) #interface vlan 10
Switch (config-IF) #ip address 192.168.1.3 255.255.255.0
(切记如果是vlan 1,记得no shutdown)
Switch(config-if)#no shutdown
配置truck
Switch(config)#interface range f0/1-2
Switch(config-if-range)#switchport truck encapsulation dot1q
Switch(config-if-range)#switchport mode truck
1. Create all hosts and gateways ip
2. For switcher, create a (global mode) vlan, configure Truck
Switch (config) #vlan 10
the switch interface vlan partition (interface mode)
Switch (config) #interface Range F0 / 1-2
Switch (config-IF-Range) #switchport MODE Access
Switch (config-IF-Range) 10 #switchport Access VLAN
configuration Truck
Switch (config) #interface F0 /. 3
Switch ( IF-config) #switchport mODE truck
(802.1q encapsulation default mode switcher)
3 for three switches, vlan create, open routing, IP settings, arranged truck
create vlan supra
open routing
switch (config) #ip routing
arrangement of the vlan ip address
Switch (config) #interface vlan 10
Switch (config-IF) #ip address 192.168.1.3 255.255.255.0
(切记如果是vlan 1,记得no shutdown)
Switch(config-if)#no shutdown
配置truck
Switch(config)#interface range f0/1-2
Switch(config-if-range)#switchport truck encapsulation dot1q
Switch(config-if-range)#switchport mode truck
View the routing table
Switch # show vlan brief
View a vlan information command
Switch # show vlan 10
Switch # show vlan 10
View virtual gateway ip address
Switch # show ip route
Switch # show ip route
Static Route
1. Set all PC's ip and subnet mask and gateway
2. Set the router gateway IP route and defult route and static
3.static route
Router (config) #ip route destination network segment + subnet mask + next jump address
4.defult route
Router (config) #ip route next hop address 0.0.0.0 0.0.0.0
1. Set all PC's ip and subnet mask and gateway
2. Set the router gateway IP route and defult route and static
3.static route
Router (config) #ip route destination network segment + subnet mask + next jump address
4.defult route
Router (config) #ip route next hop address 0.0.0.0 0.0.0.0