楼主,你好
很显然,vlan10 vlan20 在三层和二层交换机上都要配置
什么叫这两个vlan要加入两个交换机的哪个端口? PC要划入哪个vlan,在二层交换机上access vlan即可。 你顺便去搜一下,vlan到底是干什么的.
端口聚合分三层聚合和二层聚合,你这个很明显是做二层聚合。
enable
conf t
hostname 3560
ip routing
vlan 10
vlan 20
interface vlan10
ip add 10.1.1.1 255.255.255.0
interface vlan 20
ip add 10.1.2.1 255.255.255.0
ip dhcp pool 10
network 10.1.1.0 255.255.255.0
def 10.1.1.1
ip dhcp pool 20
network 10.1.2.0 255.255.255.0
def 10.1.2.1
interface range f0/6 -7
shutdown
channel-port 1 mode on
interface port-channel 1
encap dot1q
switch mode trunk
no shutdown
_______
enable
conf t
hostname 2960
vlan 10
vlan 20
interface range f0/6 -7
shutdown
channel-port 1 mode on
interface port-channel 1
encap dot1q
switch mode trunk
no shutdown
interface f0/1
switch mode access
sw access vlan 10
interface f0/2
switch mode access
sw access vlan 20
_______
3560:
ip route 0.0.0.0 0.0.0.0 10.1.0.5
R1 :
ip route 10.1.1.0 255.255.255.0 10.1.0.6
ip route 10.1.2.0 255.255.255.0 10.1.0.6