CCNP交换篇(4)

2019-04-02 22:20

Port 1/1 mode set to on. Cat5001> (enable)

Wed Jun 19 1996, 15:00:02 Port 1/1 has become trunk.

Dynamic ISL

有了DISL(Dynamic ISL), 你不需要修改远端的Catalyst 5000;以下信息将显示在远端的Catalyst 5000.

Wed Jun 19 1996, 15:51:59 Port 1/2 has become trunk. Cat5001> (enable) sho trunk Port Mode Status

------- --------- ------------ 1/1 on trunking 1/2 auto not-trunking 2/1-2 off not-trunking 5/1 auto not-trunking 5/2 auto not-trunking 5/3 auto not-trunking 5/4 auto not-trunking 5/5 auto not-trunking 5/6 auto not-trunking 5/7 auto not-trunking 5/8 auto not-trunking 5/9 auto not-trunking 5/10 auto not-trunking 5/11 auto not-trunking 5/12 auto not-trunking Port Vlans allowed

------- --------------------------------------------------------------------- 1/1 1-1000 1/2 1-1000 2/1-2 1-1000 5/1 1-1000 5/2 1-1000 5/3 1-1000 5/4 1-1000 5/5 1-1000 5/6 1-1000 5/7 1-1000 5/8 1-1000 5/9 1-1000 5/10 1-1000 5/11 1-1000

5/12 1-1000 Port Vlans active

------- --------------------------------------------------------------------- 1/1 1 1/2 1 2/1-2 1 5/1 1 5/2 1 5/3 1 5/4 1 5/5 1 5/6 1 5/7 1 5/8 1 5/9 1 5/10 1 5/11 1 5/12 1

注意: DISL在Cisco IOS软件中不支持.

-------------------------------------------------------------------------------- 分配VLAN到端口

Cat5001> (enable) set vlan 2 3/2-20 VLAN 2 modified. VLAN 1 modified. VLAN Mod/Ports

---- ----------------------- 2 1/1 3/2-20

Cat5001> (enable) set vlan 20 5/1-6 VLAN 20 modified. VLAN 1 modified. VLAN Mod/Ports

---- ----------------------- 20 1/1 5/1-6

Configure additional information for VLAN 20. On the other Catalyst 5000 :

Cat5002> (enable) set vlan 2 4/1-2,5/6-12 VLAN 2 modified.

VLAN 1 modified. VLAN Mod/Ports

---- ----------------------- 2 1/2 4/1-3,4/5-23 5/6-12

Configure additional information for VLAN 20.

Cat5002> (enable) set vlan 20 5/1-5 VLAN 20 modified. VLAN 1 modified. VLAN Mod/Ports

---- ----------------------- 20 1/2 5/1-5

Configure VLAN 20 on a VTP server.

-------------------------------------------------------------------------------- 显示端口配置

Cat5001> (enable) show port

Port Name Status Vlan Level Duplex Speed Type

---- -------------------- ---------- ---------- ------ ------ ----- ----------- 1/1 connected 1 normal half 100 100BaseTX 1/2 connected trunk normal half 100 100BaseTX 2/1 connecting 1 normal half 100 FDDI 2/2 connected 1 normal half 100 FDDI 4/1 inactive 2 normal half 10 10BaseT 4/2 inactive 2 normal half 10 10BaseT 4/3 inactive 2 normal half 10 10BaseT 4/4 notconnect 1 normal half 10 10BaseT 4/5 inactive 2 normal half 10 10BaseT 4/6

此时, VLAN 2 和VLAN 20 还未激活.所以在VLAN 2和VLAN 20的端口是inactive状态. -------------------------------------------------------------------------------- 设置VLAN 20

如果在网络里有VTP server和VTP clent,请在VTP server上设置VLAN 20

Cat5001> (enable) set vlan 20 VLAN 20 modified

这将激活在所有管理域cisco内的VLAN 20

Cat5001> (enable) sho vlan 20 VLAN Name Status Mod/Ports

---- -------------------------------- --------- ---------------------------- 20 VLAN0020 active 1/1 5/1-6

VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- ------ ------ 20 enet 100020 1500 - - - - 0 0

-------------------------------------------------------------------------------- 配置Router conf t

interface FastEthernet0/0.1 <-- you need to create a sub-interface by vlan. encapsulation isl 20 <-- 20 is the vlan number. ip address 1.1.1.1 255.255.255.0 interface FastEthernet0/0.2 encapsulation isl 2

ip address 2.2.2.1 255.255.255.0 interface FastEthernet0/0.3 encapsulation isl 1

ip address 172.16.80.1 255.255.255.0 Router eigrp 666 network 1.0.0.0 network 2.0.0.0 network 172.16.80.0 end writ mem

DHCP SERVER迁移到6509交换机的MSFC

一位客户想把DHCP SERVER迁移到6509交换机的MSFC上,要求还挺复杂: 1.同时为多个VLAN的客户机分配地址 2.VLAN内有部分地址采用手工分配的方式 3.为客户指定网关、Wins服务器等

4.VLAN 2的地址租用有效期限为1天,其它为3天 5.按MAC地址为特定用户分配指定的IP地址 最终配置如下:

ip dhcp excluded-address 10.1.1.1 10.1.1.19 //不用于动态地址分配的地址 ip dhcp excluded-address 10.1.1.240 10.1.1.254 ip dhcp excluded-address 10.1.2.1 10.1.2.19 !

ip dhcp pool global //global是pool name, 由用户指定 network 10.1.0.0 255.255.0.0 //动态分配的地址段 domain-name client.com //为客户机配置域后缀

dns-server 10.1.1.1 10.1.1.2 //为客户机配置dns服务器

netbios-name-server 10.1.1.5 10.1.1.6 //为客户机配置wins服务器

netbios-node-type h-node //为客户机配置节点模式(影响名称解释的顺利,如h-node=先通过wins服务器解释...)

lease 3 //地址租用期限: 3天 ip dhcp pool vlan1

network 10.1.1.0 255.255.255.0 //本pool是global的子pool, 将从global pool继承domain-name等option

default-router 10.1.1.100 10.1.1.101 //为客户机配置默认网关 !

ip dhcp pool vlan2 //为另一VLAN配置的pool network 10.1.2.0 255.255.255.0 default-router 10.1.2.100 10.1.2.101 lease 1 !

ip dhcp pool vlan1_john //总是为MAC地址为...的机器分配...地址 host 10.1.1.21 255.255.255.0

client-identifier 010050.bade.6384 //client-identifier=01加上客户机网卡地址 !

ip dhcp pool vlan1_tom host 10.1.1.50 255.255.255.0 client-identifier 010010.3ab1.eac8

相关的DHCP调试命令:

no service dhcp //停止DHCP服务[默认为启用DHCP服务] sh ip dhcp binding //显示地址分配情况 show ip dhcp conflict //显示地址冲突情况

debug ip dhcp server {events | packets | linkage} //观察DHCP服务器工作情况

如果DHCP客户机分配不到IP地址,常见的原因有两个。第一种情况是没有把连接客户机的端口设置为Portfast方式。MS客户机开机后检查网卡连接正常,Link是UP的,就开始发送DHCPDISCOVER请求,而此时交换机端口正在经历生成树计算,一般需要30-50秒才能进入转发状态。MS客户机没有收到DHCP SERVER的响应就会给网卡设置一个169.169.X.X的IP地址。解决的方法是把交换机端口设置为Portfast方式:CatOS(4000/5000/6000): set spantree portfast mod_num/port_num enable; IOS(2900/3500): interface ... ; spanning-tree portfast。

另外一种情况是DHCP服务器和DHCP工作站不在同一个VLAN,这时候通常通过设置ip helper-address来解决: interface vlan1

ip address 10.1.1.254 255.255.255.0 //假设DHCP服务器地址为10.1.1.8


CCNP交换篇(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:各种运放的个人意见和评价

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: