Upload
gretchen-morgan
View
128
Download
0
Embed Size (px)
DESCRIPTION
交换. Cisco 三层模型 交换机基本配置 VLAN VTP. Cisco 三层模型. Cisco 三层模型. 接入层 Layer 2 Switching ,最终用户被许可接入网络的点 分布层 Layer 3 Switching ,访问层设备的汇聚点 核心层 Layer 2/Layer 3 Switching 高速交换背板,不进行任何过滤,因为会影响转发速度。. 核心层的两种设计. 全互联. 核心层的两种设计. 星形设计. 交换机基本配置. 选择接口 interface {module/number} - PowerPoint PPT Presentation
Citation preview
交换 Cisco三层模型
交换机基本配置
VLAN
VTP
Cisco三层模型
Cisco三层模型 接入层
Layer 2 Switching,最终用户被许可接入网络的点
分布层 Layer 3 Switching,访问层设备的汇聚点
核心层 Layer 2/Layer 3 Switching 高速交换背板,不进行任何过滤,因为会影响转发速度。
核心层的两种设计 全互联
核心层的两种设计 星形设计
交换机基本配置选择接口
interface {module/number} interface range {type} {module/number} [, {type}
{module/number}] interface range {type} {module/first-number – last-
number }
设定端口速率 speed {10 | 100 | 1000 | auto}
交换机基本配置端口模式
duplext {half | full | auto}
设置 IP地址 int vlan 1 ip address {ip_address} {netmask} Vlan 1是默认管理 Vlan
VLAN
概述
设置 VLAN的作用 广播包控制 安全 地理位置无关性
划分 VLAN的方法 静态 动态
VLAN
Trunk
VLAN
两种 tag类型 ISL
802.1Q
VLAN
实现 VLAN 的 2 个步骤 : 创建 VLAN 把交换机端口分配给 VLAN
两种 VLAN 的定义 active VLAN transit VLAN
VLAN 创建 VLAN
vlan database vlan [vlan_id] name [VLAN_name]
为交换机端口分配 VLAN interface [module/port]
switchport mode access switchport access vlan [vlan_id]
察看 VLAN信息 show vlan show vlan brief
VTP
起因
VTP
VTP 的 3 种模式 服务器模式 (server mode) 客户模式 (client mode) 透明模式 (transparent mode)
VTP Pruning
VTP
配置 VTP管理域 vtp domain [domain_name]
配置 VTP模式 vtp [server | client | transparent]
配置 VTP口令 vtp password [password]
VTP
设置 Trunk int [module/port] switchport mode trunk switchport trunk encapsulation [isl | dot1q]
察看 VTP信息 show vtp status show interface trunk show interface switchport
VTP
VTP Pruning在 VTP Server上: vtp pruning
在 VTP Client上: interface type mod/num switchport trunk pruning vlan {add | except | none
| remove} vlan-list
VLAN间路由选择 外部路由处理器
也叫单臂路由 (One-Armed Routing)
或 Router on a Stick
内部路由处理器 配有 RSM(路由交换模块)的 Catalyst
5000系列交换机 配有MSM(多层交换模块)或MSFC(多层交换特性卡)的 Catalyst 6000/6500系列交换机
单臂路由 Cisco 4500
interface f0.10 encap dot1q 10 ip add 172.16.10.1 255.
255.255.0 interface f0.20
encap dot1q 20 ip add 172.16.20.1 255.
255.255.0
内部路由处理器 3层接口配置
interface [module/port] no switchport ip address [ip_address] [mask]
SVI接口配置 Switched Virtual Lans interface vlan [vlan_id]
no shutdown ip address [ip_address] [mask]
单臂路由实例 拓朴
VLAN 1:管理 VLAN 211.68.1.0
VLAN 2: PC 2 211.68.2.0
VLAN 3: PC 3、 PC 4、 PC 5 211.68.3.0
3550-1: VTP Server
单臂路由实例 4500
interface f0/0 no shutdown
interface f0/0.1 encap dot1q 1 ip add 211.68.1.1 255.255.255.0
interface f0/0.2 encap dot1q 2 ip add 211.68.2.1 255.255.255.0
interface f0/0.3 encap dot1q 3 ip add 211.68.3.1 255.255.255.0
单臂路由实例 3550-1
vlan database vtp server vtp domain bit vtp password cisco vlan 2 name Tea vlan 3 name Stu
int f0/1 switchport mode access switchport access vlan 2
单臂路由实例 3550-1
int f0/2 switchport mode access switchport access vlan 3
int f0/12 switchport mode trunk switchport trunk encap dot1q
int f0/12 switchport mode trunk switchport trunk encap dot1q
单臂路由实例 3550-2
int f0/12 switchport mode trunk switchport trunk encap dot1q
int f0/1 switchport mode access switchport access vlan 3
int f0/2 switchport mode access switchport access vlan 3
带 RSM模块的 Catalyst 5500配置实例 拓朴
Cat 1:原 Vlan 1,改为Vlan 2
VLAN Vlan 1: 172.16.100.0 Vlan 2: 172.16.120.0
带 RSM模块的 Catalyst 5500配置实例
Cat 1 show running显示现有配置,地址 172.16.100.51 ping 172.16.100.52( Cat2的地址) 修改 sc0的地址为 172.16.120.4
show module session <n>:进入 RSM模块 exit port:返回到 Cat 1
带 RSM模块的 Catalyst 5500配置实例
RSM interface Vlan 1 ip address 172.16.100.100 255.255.255.0 no shut
interface Vlan 2 ip address 172.16.120.100 255.255.255.0 no shut
带 RSM模块的 Catalyst 5500配置实例
Cat1 show ip route clear ip route all set ip route 0.0.0.0 172.16.120.100 ping 172.16.100.52