
还有一条要求就是
pc1和pc3划分vlan10
pc2和pc4划分vlan20
(做好几遍了一直通不了,大神教一教)
用SVI接口解决,以下是配置,闲着没事自己搭了个拓扑做的,创建vlan我就不打上去了
LSW1
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
interface Vlanif20
ip address 192.168.20.1 255.255.255.0
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
interface GigabitEthernet0/0/3
port link-type trunk
port trunk allow-pass vlan 10 20
LSW2
interface Vlanif10
ip address 192.168.10.4 255.255.255.0
interface Vlanif20
ip address 192.168.20.4 255.255.255.0
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
interface GigabitEthernet0/0/3
port link-type access
port default vlan 20
PC1

PC2

PC3

PC4
