Sw0
Switch>en
Switch#vlan database
Switch(vlan)#vlan 10
Switch(vlan)#ex
Switch#conf t
Switch(config)#int f0/1
Switch(config-if)#switchport mode access /ess,可省略不写。
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int f0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#ex
Sw1
Switch>en
Switch#vlan database
Switch(vlan)#vlan 10
Switch(vlan)#vlan 20
Switch(vlan)#ex
Switch#conf t
Switch(config)#int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int f0/24
Switch(config-if)#switchport mode trunk
Switch(config-if)#ex
Switch(config)#int f0/23
Switch(config-if)#switchport mode trunk
Switch(config-if)#ex
Switch(config)#
Router
首先打开f0/0接口no shutdown,再分别把子接口打开
进入子接口后首先封装协议,再写IP
单臂路由实验配置 来自淘豆网m.daumloan.com转载请标明出处.