网工路由交换相关配置_第1页
网工路由交换相关配置_第2页
网工路由交换相关配置_第3页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

思科2950交换机相关2950(config-if)#ipaddress192.168.1.100255.255.255.0(VLAN1里面设置IP地址2950(config)#ipdefault-gateway2950(config)#ipname-server((服务器)思科2950交换机相关2950(config-if)#ipaddress192.168.1.100255.255.255.0(VLAN1里面设置IP地址2950(config)#ipdefault-gateway2950(config)#ipname-server((服务器)-2950(config-if)#speed1002950(config-if)#duplex?EnableAUTOduplexconfigurationForcefullduplexoperationForcehalf-duplexoperation2950(config-if)#descriptionfastethernet1 us](查看端口配置结果和状态2950(config)#mac-address-tableaging-time1002950(config)#mac-address-tablepermanent000.0c01.bbccf0/3( ic0000.0c02.bbccf0/62950#showmac-address-table2950#clearmac-address-tablerestricteds2950#vlandatabase2950(vlan)#vtp?SetthenameoftheVTPadministrativeSetthedevicetoc ntmode.Setthedevicetoservermode.Setthedevicetotransparentmode.SetthepasswordfortheVTP. 2950(vlan)#vtppruning2950#showvtps .)2950(config-if)#switchportmodetrunk(设置该端口为TRUNK模式2950(config-if)#switchporttrunkencapsulation{dot1q|isl|negotiate(设置TRUNK封装创建2950#vlandatabase2950(vlan)#vlan2VLAN22950(config-if)#switchportmodetrunk(设置该端口为TRUNK模式2950(config-if)#switchporttrunkencapsulation{dot1q|isl|negotiate(设置TRUNK封装创建2950#vlandatabase2950(vlan)#vlan2VLAN22950(vlan)#vlan3namewg_bishengVLAN3added:(创建VLAN2950(config-if)#switchportmodesS模式svlan2950(config-if)#switchportmodes2950(config-if)#switchportacsvlan122950(config-if)#spanning-treevlan2port-priority10将VLAN2的端口权值设为2950(config-if)#spanning-treevlan2cost路由器的一些Router(config)#iproutedestination-networknetwork-mask {next-hop-ip|Router(config)#iproute192.168.1.0255.255.255.010.1.1.1erface}。Router(config)#iproute0.0.0.00.0.0.0{next-hop-ipRouter(config)#iproute0.0.0.00.0.0.0erface} erialTABLE5.2DefaultAdministrativeRoute Default01255(thisroutewillneverbeExternalEIGRPr1(config)#isdnswitch-type1TR6switchtypeAT&T5ESSswitchtypefortheU.S.NorthernDMS-100switchtypeNET3switchtypeforUKandEuropeNationalISDNswitchtypeTS013switchtypeforAustraliaNTTswitchtypeforJapanVN3andVN4switchtypesforBasic-r1(config)#usernamenamepasswordsecret(指定口令) erfacebri0 r1(config-if)#encapsulationppp(设置PPP封装)r1(config-if)#pppauthenticationchap|chappap|papchap|pap}[callin](设置认证方式)r1(config-if)#dialermapip200.10.1.1namerouter1broadcast7782001(设置协议地址与r1(config-if)#pppmultilink(启动PPP多连接r1(config-if)#clockrater1#shisdn ISDNactivecallsISDNcallISDNmemoryinformationISDNLineSusISDNTimerr2(config)#isdnswitch-typebasic- r2(config-if)#encapsulationpppr2(config-if)#dialerstring88888888r2(config)#isdnswitch-typebasic- r2(config-if)#encapsulationpppr2(config-if)#dialerstring88888888r2(config-if)#dialer-group1r2(config-if)#nosherfaceBri0,changed etor2(config)#dialer-list1protocolip r1(config-if)#dialeridle-timeoutr1(config-if)#dilaerload-threshold128r1(config-if)#pppauthenticationchapr1(config)#dialer-list1protocolippermitLAB17–ISDNBRI-BRIusingLegacy。RouterIPAddressMask1#ISDNrouter1200.10.1.1/24321778200101007782001basic-router2200.10.1.2/24321778200201007782002basic-router1(config)#isdnswitch-typebasic-nirouter1(config)#dialer-list1protocolippermitrouter1(config)#usernamerouter2passwordciscoerfacerouter1(config-if)#encaprouter1(config-if)#ipaddress200.10.1.1router1(config-if)#isdn1router1(config-if)#dialer-grouprouter1(config-if)#dialermapip200.10.1.2namerouter2broadcast7782002router1(config-if)#pppauthenticationchaprouter1(config-if)#noshutrouter2(config)#isdnswitch-typebasic-nirouter2(config)#dialer-list1protocolippermitrouter2(config)#usernamerouter1passwordciscoerfacerouter2(config-if)#encaprouter2(config-if)#ipaddress200.10.1.2router2(config-if)#isdn1router2(config-if)#dialer-grouprouter2(config-if)#dialermapip200.10.1.1namerouter1broadcast7782001router2(config-if)#pppauthenticationchaprouter2(config-if)#noLAB18–ISDNBRI-BRIusing#ISDNRouterIPAddressMask1router1200.10.1.1/24321778200101007782001basic-router2200.10.1.2/24321778200201007782002basic-router1(config)#isdnswitch-typebasic-nirouter1(config)#dialer-list1protocolippermitrouter1(config)#usernamerouter2passwordciscoerfacerouter1(config-if)#encapppprouter1(config-if)#pppauthenticationchaprouter1(config-if)#isdn 1router1(config-if)#dialrouter1(config-if)#noshutool-membererfacedialerrouter1(config-if)#norouter1(config-if)#ipaddress200.10.1.1255.255.255.0router1(config-if)#encapppprouter1(config-if)#router1(config-if)#encapppprouter1(config-if)#pppauthenticationchaprouter1(config-if)#isdn 1router1(config-if)#dialrouter1(config-if)#noshutool-membererfacedialerrouter1(config-if)#norouter1(config-if)#ipaddress200.10.1.1255.255.255.0router1(config-if)#encapppprouter1(config-if)#dialer-grouprouter1(config-if)#oolrouter1(config-if)#dialerremote-namerouter2router1(config-if)#dialerstring7782002router1(config-if)#pppauthenticationchaprouter2(config)#isdnswitch-typebasic-nirouter2(config)#dialer-list1protocolippermitrouter2(config)#usernamerouter1passwordciscoerfacerouter2(config-if)#encaprouter2(config-if)#pppauthenticationchaprouter2(config-if)#isdns 132177820020100router2(config-if)#dialrouter2(config-if)#noshutool-membererfacedialerrouter2(config-if)#norouter2(config-if)#ipaddress200.10.1.2255.255.255.0router2(config-if)#encapppprouter2(config-if)#dialer-grouprouter2(config-if)#oolrouter2(config-if)#dialerremote-namerouter1router2(config-if)#dialerstring7782001router2(config-if)#pppauthenticationchapLAB19–ISDNPRIusingRouterIPAddressMask1#ISDNrouter1201.10.1.1/24321778200101007782001basic-router2201.10.1.2 7782002primary-router1(config)#isdnswitch-typebasic-nirouter1(config)#dialer-list1protocolippermitrouter1(config)#usernamerouter2passwordciscoerfacerouter1(config-if)#encaprouter1(config-if)#pppauthenticationchaprouter1(config-if)#isdns 132177820010100router1(config-if)#dialrouter1(config-if)#noshutool-membererfacedialerrouter1(config-if)#norouter1(config-if)#ipaddress201.10.1.1255.255.255.0router1(config-if)#encapppprouter1(config-if)#dialer-grouprouter1(config-if)#oolrouter1(config-if)#dialerremote-namerouter2router1(config-if)#dialerstring7782002router1(config-if)#pppauthenticationchaprouter2(config)#isdnswitch-typeprimary-5esssrouter2(config)#dialer-list1protocolippermitrouter2(config)#usernamerouter1passwordciscorouter2(config)#controllert10/0router2(config-controller)#framingesfrouter2(config-controller)#linecodeb8zsrouter2(config-controller)#pri-grouptimeslots1-24router2(config-controller)#exitrouter2(config-if)#pppauthenticationrouter2(config-if)#dialrouter2(config-if)#noshutool-memberrouter2(config)#dialer-list1protocolippermitrouter2(config)#usernamerouter1passwordciscorouter2(config)#controllert10/0router2(config-controller)#framingesfrouter2(config-controller)#linecodeb8zsrouter2(config-controller)#pri-grouptimeslots1-24router2(config-controller)#exitrouter2(config-if)#pppauthenticationrouter2(config-if)#dialrouter2(config-if)#noshutool-membererfacedialerrouter2(config-if)#ipaddress201.10.1.2255.255.255.0router2(config-if)#encapsulationppprouter2(config-if)#dialer-grouprouter2(config-if)#oolrouter2(config-if)#dialerremote-namerouter1router2(config-if)#dialerstring7782001router2(config-if)#pppauthenticationchaprouter2(config-if)#noshutFR的配[(Router(config-if)#frame-relaylmi-type?(设置LMI类型erface-dlci100(设置FR Router(config-if)#frame-relaymapip1.1.1.1100 Router#shframe-relay?erial0/0.1 |Frame-RelaymapshowframerelaypvcsisticsshowframerelaylmisisticsshowframerelayrouteshowframerelaySVCstuffFrame-RelayprotocolsLAB20–FRAMEerfaceIPAddressLocalrouter1serial1215.10.1.1/24router5serial0215.10.1.2/24router1(config-if)#encapsulationframe-relayrouter1(config-if)#ipaddress215.10.1.1255.255.255.0router1(config-if)#frame-relaymapip215.10.1.2105broadcastrouter1(config-if)#frame-relaylmi-typeansirouter1(config-if)#norouter5(config-if)#encapsulationframe-relayrouter5(config-if)#ipaddress215.10.1.2255.255.255.0router5(config-if)#frame-relaymapip215.10.1.1501broadcastrouter5(config-if)#frame-relaylmi-typeansirouter5(config-if)#norouter1(config-if)#noipaddress215.10.1.1255.255.255.0router1(config-if)#noframemapip215.10.1.2105broadcasterial1.1 -to-router1(config-subif)#router5(config-if)#encapsulationframe-relayrouter5(config-if)#ipaddress215.10.1.2255.255.255.0router5(config-if)#frame-relaymapip215.10.1.1501broadcastrouter5(config-if)#frame-relaylmi-typeansirouter5(config-if)#norouter1(config-if)#noipaddress215.10.1.1255.255.255.0router1(config-if)#noframemapip215.10.1.2105broadcasterial1.1 -to-router1(config-subif)#ipaddress215.10.1.1erface-dlcirouter5(config-if)#noipaddress215.10.1.2255.255.255.0router5(config-if)#noframemapip215.10.1.1501broadcasterial0.1 -to-router5(config-subif)#ipaddress215.10.1.2erface-dlci配置静态Router(config-if)#ipnatoutside|inside}Router(config)#ipnat{inside|outsideicsource_addressrouter1(config)#ipnatinsideic160.10.1.2erfacerouter1(config-if)#ipaddress160.10.1.1255.255.255.0router1(config-if)#ipnatinsiderouter1(config-if)#ipaddress175.10.1.1255.255.255.0router1(config-if)#ipnatoutsiderouter1(config-if)#no动态Router(config)#ipnatpool<name><start_ip><end_ip>{netmask<netmask>|prefix-lengthprefix-length>}<router1(config)#noipnatinsideic160.10.1.2router1(config)#ipnatpoolpool1169.10.1.50169.10.1.100netmask255.255.255.0router1(config)#ipnatinsidesourcelist1poolpool1s-list1permit160.10.1.0router1(config)#ipnatinsidesourcelisterial0erfaceEthernetrouter1(config-if)#ipaddress160.10.1.1255.255.255.0router1(

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论