//兴趣记录一下~希望退休以后可以回味,各位别嫌弃,感谢各位!!
////
//VLAN重要性,实作(在不同的VLAN情况下,可以Connect)
以上图中可以看到
-DHCP server
-Switch server
-computer
DHCP-server-01设为192.168.10.1/24
DHCP-server-02设为192.168.20.1/24
上面switch设定
1.)VLAN10 is sales department and VLAN20 is develope department
2.)把配置好的线路,分配到Vlan10、Vlan20底下
command => configure terminal => vlan 10 => name sales => exit
configure terminal => int range f0/1-f0/3 , g0/1 => switchport access vlan 10
command => configure terminal => vlan 20 => name develope => exit
configure terminal => int range f0/4-f0/6 , g0/2 => switchport access vlan 20
这样就设定好了!下面的switch也是一样的方式喔。请参考下面图案
以上图片,可以看到左右两边的电脑都能够自动取的IP喔
Question:但是VLAN不同的话,还是不能互通,接下来,我们要让SWITCH可以互通必须用到Trunk
1.)业界版本:IEEE 802.1Q Tag Vlan(dot1q)
2.)Cisco版本:ISL(Inter-Switch Link(isl)
object:多个vlan的讯框可以互通
我们把连接交换器的线变成一条,连在G0/1port上面
G0/1、G0/2回复成原本的设定,然后再设把G0/1设定成Trunk,两个switch都要改喔
command => default int range g0/1 , g0/2 恢复预设值
command => int g0/1 => switchport mode trunk
这样就成功了喔