发布时间:2019-09-03 08:54:39编辑:auto阅读(1424)
W1=vlan batch 10 20 30
interface Vlanif10
ip address 192.168.1.254 255.255.255.0
interface Vlanif20
ip address 192.168.2.254 255.255.255.0
interface Vlanif30
ip address 192.168.3.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 access
port default vlan 30
#路由rip 100
undo summary
version 2
network 192.168.3.0
network 192.168.1.0
network 192.168.2.0
W4配置
vlan batch 20 40
interface Vlanif20
ip address 192.168.3.2 255.255.255.0
#
interface Vlanif40
ip address 192.168.4.1 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 40
#
rip 100
undo summary
version 2
network 192.168.3.0
network 192.168.4.0
W3配置
vlan batch 40 50 60
interface Vlanif40
ip address 192.168.4.2 255.255.255.0
#
interface Vlanif50
ip address 192.168.5.254 255.255.255.0
#
interface Vlanif60
ip address 192.168.6.254 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 40
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 50
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 60
rip 100
undo summary
version 2
network 192.168.4.0
network 192.168.5.0
network 192.168.6.0
以上实验用的是模拟器可能与真室设备存在差别。实验中用的是ACCESS口,大家也可以用trunk做做。本试验最终的目的是要理解VLAN之间的路由。如有不足之处希望大家指出,一起学习一起进步。
上一篇: gns3 1.4.1 iou虚拟asa,
下一篇: Linux安装ntfs-3g支持NTFS
47864
46429
37316
34763
29333
25993
24947
19968
19566
18052
5807°
6434°
5950°
5976°
7081°
5927°
5965°
6457°
6423°
7801°