6509配置手册
Step 2 配置域名. Step 3 启用DNS. Step 4 检查DNS配置.参数 noalias可用IP地址代替服务器名字显示。 例如:
Console> (enable) set ip dns server 10.1.1.100 primary 10.1.1.100 added to DNS server table as primary server. Console> (enable) set ip dns server 10.1.1.122
10.1.1.122 added to DNS server table as backup server. Console> (enable) set ip dns domain bigcorp.com Default DNS domain name set to bigcorp.com Console> (enable) set ip dns enable DNS is enabled
Console> (enable) show ip dns DNS is currently enabled.
The default DNS domain name is: bigcorp.com
DNS name server status ---------------------------------------- ------- 10.1.1.100 primary 10.1.1.122
Console> (enable)
set ip dns domain name set ip dns enable show ip dns [noalias] 2.3 配置 CDP协议
Cisco Discovery Protocol (CDP) 是一种协议和介质无关的协议。它可以运行与所有CISCO设备上,它可以发现网络上相邻的其他CISCO设备的信息。
为了配置CDP,在特权模式下执行下面的步骤:
任务 Step 1 在某个端口上启动CDP。 Step 2 (可选) 配置CDP发消息的间隔. 范围是5-900 秒,缺省60秒。 Step 3 (可选) 配置CDP帧的保持时间既CDP消息的失效时间. 范围10-255秒,缺省180. 命令 set cdp enable [mod_num/port_num] set cdp interval interval set cdp holdtime interval - 7 -
6509配置手册
Step 4 检查CDP配置 show cdp port [mod_num[/port_num]] show cdp neighbors [vlan | Step 5 显示CDP信息 [mod_num[/port_num]] duplex | capabilities | detail] 例如:
Console> (enable) set cdp enable
CDP enabled for all ports.
Console> (enable) set cdp interval 100
CDP message interval set to 100 seconds for all ports. Console> (enable) show cdp port
Port CDP Status Message-Interval -------- ---------- ---------------- 1/1 enabled 100 1/2 enabled 100 2/1 enabled 100
Console> (enable) show cdp neighbors * - indicates vlan mismatch. # - indicates duplex mismatch.
Port Device-ID Port-ID Platform
-------- ------------------------------- ------------------------- ------------ 3/5 002267619(cat1.cisco.com) 3/6 * WS-C5000 3/6 002267619(cat1.cisco.com) 3/5 WS-C5000 4/1 002267619(cat1.cisco.com) 4/2 WS-C5000 4/2 002267619(cat1.cisco.com) 4/1 # WS-C5000 4/20 069000057(cat2.cisco.com) 8/5 WS-C5500 5/1 005763872(cat3.cisco.com) 2/1 WS-C5000 5/1 066506245(cat4.cisco.com) 2/1 WS-C5505 5/1 066508595(cat5.cisco.com) 5/12 *# WS-C5505 5/1 066508596(cat6.cisco.com) 5/1 WS-C5505 Console> (enable)
3 VLAN的配置
在 Catalyst 6500 系列交换机上配置VLAN要经过如下步骤:
Step 1 配置VTP协议(VLAN Trunk Protocol)---在交换机上创建VTP域和配置VTP
- 8 -
6509配置手册
模式
Step 2 配置 VLANs—在VTP域中创建VLAN将交换机的端口配置到VLAN中. Step 3 配置 VLAN Trunks---配置在多个VLAN间进行流量交换的的端口。
3.1 配置VTP协议(VLAN Trunk Protocol)
配置交换机为VTP Server
在你配置一台交换机为VTP server时,你必须先定义一个 VTP域,才能建立VLAN. 步骤:
描述 Step 1 配置VTP名字 Step 2 设置VTP模式 Step 3 检查VTP配置. 例如:
Console> (enable) set vtp domain BigCorp VTP domain BigCorp modified
Console> (enable) set vtp mode server VTP domain BigCorp modified
Console> (enable) show vtp domain
Domain Name Domain Index VTP Version Local Mode Password -------------------------------- ------------ ----------- ----------- ---------- BigCorp 1 2 server -
Vlan-count Max-vlan-storage Config Revision Notifications ---------- ---------------- --------------- ------------- 9 1023 0 enabled
Last Updater V2 Mode Pruning PruneEligible on Vlans --------------- -------- -------- ------------------------- 172.20.52.40 disabled disabled 2-1000 Console> (enable)
命令 set vtp domain name set vtp mode server show vtp domain - 9 -
6509配置手册
3.2 配置 VLAN
当正确配置了VTP以后,就可以在交换机上开始创建,修改和删除VLAN了。
3.2.1 创建 VLAN
任务 Step 1 通过指定VLAN号来创建VLAN,同时也可以指定VLAN name. Step 2 V检查VLAN配置 命令 set vlan vlan_num [name name] show vlan vlan_num 例如:
Console> (enable) set vlan 100 name Pubs Vlan 100 configuration successful Console> (enable) show vlan 100
VLAN Name Status Mod/Ports, Vlans
---- -------------------------------- --------- ---------------------------- 100 Pubs active
VLAN Type SAID MTU Parent RingNo BrdgNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ ------ ---- -------- ------ ------ 100 enet 100100 1500 - - - - - 0 0
VLAN AREHops STEHops Backup CRF ---- ------- ------- ---------- Console> (enable)
3.3 将交换端口配置到VLAN中
创建了VLAN以后,需要将相应的交换端口配置到VLAN中,我们可以将一个或多个端口配置到一个VLAN中。
配置方法:
任务 命令 - 10 -
相关推荐: