VTPVLAN Trunk Protocol配置Word格式文档下载.docx

上传人:b****1 文档编号:1270547 上传时间:2023-04-30 格式:DOCX 页数:15 大小:278.43KB
下载 相关 举报
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第1页
第1页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第2页
第2页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第3页
第3页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第4页
第4页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第5页
第5页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第6页
第6页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第7页
第7页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第8页
第8页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第9页
第9页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第10页
第10页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第11页
第11页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第12页
第12页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第13页
第13页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第14页
第14页 / 共15页
VTPVLAN Trunk Protocol配置Word格式文档下载.docx_第15页
第15页 / 共15页
亲,该文档总共15页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

VTPVLAN Trunk Protocol配置Word格式文档下载.docx

《VTPVLAN Trunk Protocol配置Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《VTPVLAN Trunk Protocol配置Word格式文档下载.docx(15页珍藏版)》请在冰点文库上搜索。

VTPVLAN Trunk Protocol配置Word格式文档下载.docx

Configuredfromconsolebyconsole

R1#copyrunning-configstartup-config

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

R1#configuret

R1(config)#interfacefastEthernet0/0

R1(config-if)#ipaddress192.168.1.254255.255.255.0

R1(config-if)#noshutdown

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

R1(config-if)#exit

R1(config)#interfaceserial2/0

R1(config-if)#ipaddress202.96.1.1255.255.255.0

R1(config-if)#clockrate64000

R1(config)#routerrip

R1(config-router)#version2

R1(config-router)#noauto-summary

R1(config-router)#network202.96.1.0

 

R1(config)#ipnatpoolTIANXUAN202.96.1.3202.96.1.100netmask255.255.255.0 

R1(config)#access-list1permit192.168.1.00.0.0.255

R1(config)#ipnatinsidesourcelist1poolTIANXUAN

R1(config-if)#ipnatinside

R1(config-if)#ipnatoutside

R1(config)#^Z

R1#showiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

2.0.0.0/24issubnetted,1subnets

2.2.2.0[120/1]via202.96.1.2,00:

00:

15,Serial2/0

192.168.1.0/24isdirectlyconnected,FastEthernet0/0

202.96.1.0/24isdirectlyconnected,Serial2/0

R1#showipnatstatistics

Totaltranslations:

2(0static,2dynamic,0extended)

OutsideInterfaces:

Serial2/0

InsideInterfaces:

FastEthernet0/0

Hits:

22 

Misses:

2

Expiredtranslations:

0

Dynamicmappings:

--InsideSource

access-list1poolTIANXUANrefCount2

poolTIANXUAN:

netmask255.255.255.0

start202.96.1.3end202.96.1.100

typegeneric,totaladdresses98,allocated2(2%),misses0

R1#showipnattranslations

Pro 

Insideglobal 

Insidelocal 

Outsidelocal 

Outsideglobal

--- 

202.96.1.3 

192.168.1.1 

--- 

---

202.96.1.4 

192.168.1.2 

202.96.1.5 

192.168.1.3 

202.96.1.6 

192.168.1.4 

R1#debugipnat

IPNATdebuggingison

R1#

NAT:

s=192.168.1.1->

202.96.1.6,d=2.2.2.2[5]

NAT*:

s=2.2.2.2,d=202.96.1.6->

192.168.1.1[5]

二、R2配置:

Router(config)#hostnameR2

R2(config)#

R2(config)#end

R2#copyrunning-configstartup-config

R2(config)#interfaceserial3/0

R2(config-if)#ipaddress202.96.1.2255.255.255.0

R2(config-if)#noshutdown

R2(config)#interfaceloopback0

R2(config-if)#ipaddress2.2.2.2255.255.255.0

R2(config)#routerrip

R2(config-router)#version2

R2(config-router)#no 

auto-summary

R2(config-router)#network2.0.0.0

R2(config-router)#network202.96.1.0

R2#ping2.2.2.2

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto2.2.2.2,timeoutis2seconds:

!

Successrateis100percent(5/5),round-tripmin/avg/max=16/16/16ms

R2#ping202.96.1.1

Sending5,100-byteICMPEchosto202.96.1.1,timeoutis2seconds:

Successrateis100percent(5/5),round-tripmin/avg/max=31/31/32ms

R2#ping192.168.1.1

Sending5,100-byteICMPEchosto192.168.1.1,timeoutis2seconds:

.....

Successrateis0percent(0/5)

三、小结

核心:

动态地址池的IP地址应为合法地址,可能实际中不可能申请了这么多的IP地址。

那就把内部本地IP映射到内部全局的一个合法IP上。

R1(config)#ipnatpoolTX202.96.1.1202.96.1.1netmask255.255.255.0

R1(config)#ipnatinsidesourcelist1poolTXoverload 

//overload为参数,表示复用公用地址

在打这个核心命令时,自己先参照书上先打ipnatpoolTX...,之后很容易忘了在接口上申明,R1(config-if)#ipnatinside 

做NAT时,心里首先就要想到接口申明.

Trunk配置

一、交换机SW1配置:

Switch1(config)#vlan20

Switch1(config)#vlan30

Switch1(config)#interfacefastEthernet0/1

Switch1(config-if)#switchportmodeaccess

Switch1(config-if)#switchportaccessvlan20

Switch1(config)#interfacefastEthernet0/2

Switch1(config-if)#switchportaccessvlan30

Switch1#showvlan

VLANName 

Status 

Ports

----------------------------------------------------------------------------

default 

active 

Fa0/3,Fa0/4,Fa0/5,Fa0/6

Fa0/7,Fa0/8,Fa0/9,Fa0/10

Fa0/11,Fa0/12,Fa0/13,Fa0/14

Fa0/15,Fa0/16,Fa0/17,Fa0/18

Fa0/19,Fa0/20,Fa0/21,Fa0/22

Fa0/23,Fa0/24

20 

VLAN0020 

Fa0/1

30 

VLAN0030 

Fa0/2

1002fddi-default 

1003token-ring-default 

1004fddinet-default 

1005trnet-default 

VLANType 

SAID 

MTU 

ParentRingNoBridgeNoStp 

BrdgModeTrans1Trans2

--------------------------------------------------------------------

enet 

100001 

1500 

100020 

100030 

1002enet 

101002 

1003enet 

101003 

1004enet 

101004 

1005enet 

101005 

Switch1(config)#interfacefastEthernet0/24

Switch1(config-if)#switchportmodetrunk 

//2950交换机只能封装dot1q,所以无须键入switchporttrunkencanpsulationdotiq 

Fa0/23

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 人文社科 > 法律资料

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2