当前位置:首页 > VLAN间路由单臂路由蒋亚龙DOC - 图文
VLAN间的路由—单臂路由
命令如打开、保存、打印和选项设置,还可以访问活动向导。
2 主工具栏:此栏提供了文件按钮中命令的快捷方式,我们还可以点击右边的网络信息按钮,为当前网络添加说明信息。
3 常用工具栏:此栏提供了常用的工作区工具包括:选择、整体移动、备注、删除、查看、添加简单数据包和添加复杂数据包等。
4 逻辑/物理工作区转换栏:我们可以通过此栏中的按钮完成逻辑工作区和物理工作区之间转换。
5 工作区:此区域中我们可以创建网络拓扑,监视模拟过程查看各种信息和统计数据。
6 实时/模拟转换栏:我们可以通过此栏中的按钮完成实时模式和模拟模式之间转换。
7 设备类型库:此库包含不同类型的设备如路由器、交换机、HUB、无线设备、连线、终端设备和网云等。
8 特定设备库:此库包含不同设备类型中不同型号的设备,它随着设备类型库的选择级联显示。
9 用户数据包窗口:此窗口管理用户添加的数据包。
第9页 共17页
VLAN间的路由—单臂路由
3实验步骤
3.1 单臂路由拓扑图
根据实验要求在Cisco_Packet_Tracer软件中建立如图3.1所示拓扑图,包含二层交换机
2960-24TT一台,路由器2811一台,PC电脑两台。
图3.1 单臂路由拓扑图
3.2 主要配置步骤
(1)配置交换机的主机名,划分VLAN和添加端口、设置Trunk。 Switch>en Switch>enable Switch#conf Switch#configure
Configuring from terminal, memory, or network [terminal]?
第10页 共17页
VLAN间的路由—单臂路由
Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#host
Switch(config)#hostname jiangyalong //配置交换机的主机名jiangyalong jiangyalong(config)#vlan 10 //划分VLAN 10 jiangyalong(config-vlan)#exit
jiangyalong(config)#vlan 20 //划分VLAN 20 jiangyalong(config-vlan)#exit jiangyalong(config)#int
jiangyalong(config)#interface f0/1 jiangyalong(config-if)#sw
jiangyalong(config-if)#switchport ac
jiangyalong(config-if)#switchport access vlan 10 //把端口添加到VLAN 10 jiangyalong(config-if)#exit jiangyalong(config)#int
jiangyalong(config)#interface f0/2 jiangyalong(config-if)#sw
jiangyalong(config-if)#switchport ac
jiangyalong(config-if)#switchport access vlan 20 //把端口添加到VLAN 20 jiangyalong(config-if)#exit jiangyalong(config)#int
jiangyalong(config)#interface f0/24 jiangyalong(config-if)#sw
jiangyalong(config-if)#switchport mod jiangyalong(config-if)#switchport mode tru
jiangyalong(config-if)#switchport mode trunk //将端口划为trunk模式 jiangyalong(config-if)#end
(2)在路由器上删除IP记录、划分子接口、配置IP地址。 Router> Router>en
第11页 共17页
VLAN间的路由—单臂路由
Router#conf
Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/0
Router(config-if)#no ip ad //删除IP记录 Router(config-if)#no shu Router(config-if)#no shutdown Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up Router(config-if)#exit
Router(config)#int f0/0.10 //划分子接口1 Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up Router(config-subif)#en
Router(config-subif)#encapsulation dot Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.10.254 255.255.255.0 //设置子接口1的IP
Router(config-subif)#exit
Router(config)#int f0/0.20 //划分子接口2 Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up Router(config-subif)#en
Router(config-subif)#encapsulation dot Router(config-subif)#encapsulation dot1Q 20 Router(config-subif)#ip addr
Router(config-subif)#ip address 192.168.20.254 255.255.255.0 //设置子接口2的IP
Router(config-subif)#end
第12页 共17页
共分享92篇相关文档