网工路由交换相关配置 (2).doc

上传人:hs****ma 文档编号:560169882 上传时间:2023-07-07 格式:DOC 页数:13 大小:80.01KB
返回 下载 相关 举报
网工路由交换相关配置 (2).doc_第1页
第1页 / 共13页
网工路由交换相关配置 (2).doc_第2页
第2页 / 共13页
网工路由交换相关配置 (2).doc_第3页
第3页 / 共13页
网工路由交换相关配置 (2).doc_第4页
第4页 / 共13页
网工路由交换相关配置 (2).doc_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《网工路由交换相关配置 (2).doc》由会员分享,可在线阅读,更多相关《网工路由交换相关配置 (2).doc(13页珍藏版)》请在金锄头文库上搜索。

1、网工路由交换相关配置思科2950交换机相关配置基本操作2950(config)#int vlan12950(config-if)#ip address 192.168.1.100 255.255.255.0 (VLAN1里面设置IP地址)2950(config)#ip default-gateway 192.168.1.1 (设置默认网关)2950(config)#ip name-server 192.168.1.1 (设置域名服务器)2950(config)#ip domain-name (设置域名)端口配置2950(config)#int f0/1 (进入接口)2950(config-i

2、f)#speed 100 (设置该接口速率为100Mb/s)2950(config-if)#duplex ? auto Enable AUTO duplex configurationfull Force full duplex operationhalf Force half-duplex operation2950(config-if)#description to_router12950(config-if)#description to_router1 (设置端口描述)2950#show interfaces fastethernet1 status (查看端口配置结果和状态)MAC地

3、址表相关命令2950(config)#mac-address-table aging-time 100 (设置超时时间为100S)2950(config)#mac-address-table permanent 000.0c01.bbcc f0/3 (加入永久地址)2950(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 (加入静态地址)2950#show mac-address-table (查看整个MAC地址表)2950#clear mac-address-table restricted stati

4、c (清除限制性MAC址表) VTP的配置2950#vlan database (进入VLAN配置模式)2950(vlan)#vtp ? (查看VTP的子命令)domain Set the name of the VTP administrative domain.client Set the device to client mode.server Set the device to server mode.transparent Set the device to transparent mode.password Set the password for the VTP administ

5、rative domain.2950(vlan)#vtp domain server (设置本交换机为SEVER模式)2950(vlan)#vtp domain wqs (设置域名)2950(vlan)#vtp pruning (启动修剪模式)2950#show vtp status (查看VTP设置信息)配置VLAN TRUNK端口2950(config)#int f0/11 (进入F端口)2950(config-if)#switchport mode trunk (设置该端口为TRUNK模式)2950(config-if)#switchport trunk encapsulation do

6、t1q | isl | negotiate (设置TRUNK封装)创建VLAN2950#vlan database (进入VLAN配置模式)2950(vlan)#vlan 2 (创建VLAN 2)VLAN 2 added: Name:VLAN0002 (系统默认名)2950(vlan)#vlan 3 name wg_bisheng (创建VLAN 3,名为网工必胜)VLAN 3 added: Name:wg_bisheng2950(config)#int f0/9 (进入接口配置模式)2950(config-if)#switchport mode access (设置该接口为ACCESS模式)

7、2950(config-if)#switchport access vlan 2 (把端口9分配给VLAN2)2950(config-if)#int f0/82950(config-if)#switchport mode access2950(config-if)#switchport access vlan 32950(config-if)#生成树协议的配置生成树负载均衡实现方法(感谢黑客天使提醒)1 使用STP端口权值实现。2 使用STP路径值实现2950(config)#int f0/112950(config-if)#spanning-tree vlan 2 port-priority

8、 10 (将VLAN2的端口权值设为10)2950(config-if)#spanning-tree vlan 2 cost 30 (设置VLAN2生成树路径值为30)路由器的一些设置静态路由:Router(config)#ip route destination-network network-mask next-hop-ip | interface distanceRouter(config)#ip route 192.168.1.0 255.255.255.0 10.1.1.1其中:192。168。1。0代表目标网络。 2552552550代表目标网络的子网掩码; 10111代表下一跳地

9、址。 next-hop-ip:到达目的网络所经由的下一跳路由器接口的IP地址。 Interface:到达目标网络的本机接口(仅限P2P线路) Distance:为该路由人工指定管理距离默认路由:Router(config)#ip route 0.0.0.0 0.0.0.0 next-hop-ip | interface distanceRouter(config)#ip route 0.0.0.0 0.0.0.0 172.16.3.1其中:0。0。0。0 0。0。0。0代表任意地址和任意掩码,即所有网络,其它参数同静态路由。选择性通告路由:如在RIP设置中,让S0端口只收不发RIP通告。Rou

10、ter(config)#router ripRouter(config-router)#passive-interface serial 0常见路由协议的管理距离:TABLE 5 . 2 Default Administrative DistancesRoute Source Default ADConnected interface 0Static route 1EIGRP 90IGRP 100OSPF 110RIP 120External EIGRP 170Unknown 255 (this route will never be used)ISDN(DDR,PRI,BRI,PPP)相关命

11、令r1(config)#isdn switch-type ? (设置ISDN交换类型)basic-1tr6 1TR6 switch type for Germanybasic-5ess AT&T 5ESS switch type for the U.S.basic-dms100 Northern DMS-100 switch typebasic-net3 NET3 switch type for UK and Europebasic-ni National ISDN switch typebasic-ts013 TS013 switch type for Australiantt NTT sw

12、itch type for Japanvn3 VN3 and VN4 switch types for Franceprimary-5essbasic-ni1 Basic-Ni1r1(config)#username name password secret (指定口令)r1(config)#interface bri0 (接口BRI设置)r1(config-if)#encapsulation ppp (设置PPP封装)r1(config-if)#ppp authentication chap|chap pap |pap chap|papcallin(设置认证方式)r1(config-if)# dialer map ip 200.10.1.1 name router1 broadcast 7782001 (设置协议地址与电话号码的映射)r1(config-if)#ppp multilink (启动PPP多连接)r1(config-if)#dialer load-threshold load(设置启动另一个B通道的阈值)r1(config-if)#clock rate speed (设置DCE端的线速度)r1#sh isdn ? (查看ISDN相关信息)active

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号