vlan10:192.168.10.0 255.255.255.0
vlan20:192.168.20.0 255.255.255.0
vlan30:192.168.30.0 255.255.255.0
1.switch2二层交换机:
switch(config)#vlan 10
switch(config-vlan)#vlan 20
switch(config)#int f0/2
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 10
switch(config-if)#int f0/3
switch(config-if)#switchport mode access
switch(config-if)#switchport access vlan 20
switch(config-if)#int f0/1
switch(config-if)#switchport mode trunk
2.switch3二层交换机:
Switch>en
Switch#vlan databa