实验目的,实现两台不同vlan中的pc相互能ping通
配置如下
Aswitch0
vlan 150
int f 0/1
switchport access vlan 150
int f 0/24
switchport mode trunk
switchport trunk allowed vlan all
A
int f 0/24
swiitchport mode trunk
switchport trunk allowed vlan all
int f 0/1
swiitchport mode trunk
switchport trunk allowed vlan all
int vlan 150
ip address 1.1.1.30 255.255.255.224
int vlan 151
ip address 1.1.1.62.255.255.255.224
ip routing
B
int f 0/24
swiitchport mode trunk
switchport trunk allowed vlan all
int f 0/1
swiitchport mode trunk
switchport trunk allowed vlan all
int vlan 150
ip address 1.1.1.30 255.255.255.224
int vlan 151
ip address 1.1.1.62.255.255.255.224
ip routing
Bswitch0
vlan 151
int f 0/1
switchport access vlan 151
int f 0/24
switchport mode trunk
switchport trunk allowed vlan all