实验:
目的:
pc1ping通pc6
pc2ping通pc4
pc3ping通pc5
pc7ping通pc8
样图
SW1配置:
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
interface Vlanif20
ip address 192.198.20.254 255.255.255.0
#
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
interface Ethernet0/0/1
port link-type access
port default vlan 10
#
interface Ethernet0/0/2
port link-type access
port default vlan 20
SW2配置:
interface Vlanif10
ip address 192.168.10.254 255.255.255.0
#
interface Vlanif20
ip address 192.168.20.254 255.255.255.0
#
interface Vlanif30
ip address 192.168.30.254 255.255.255.0
#
interface M