ip routing 启用IP路由功能.doc

上传人:人*** 文档编号:560549970 上传时间:2023-09-18 格式:DOC 页数:3 大小:47.50KB
返回 下载 相关 举报
ip routing 启用IP路由功能.doc_第1页
第1页 / 共3页
ip routing 启用IP路由功能.doc_第2页
第2页 / 共3页
ip routing 启用IP路由功能.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《ip routing 启用IP路由功能.doc》由会员分享,可在线阅读,更多相关《ip routing 启用IP路由功能.doc(3页珍藏版)》请在金锄头文库上搜索。

1、ip routing 启用IP路由功能no ip routing 关闭IP路由功能ip source routing IP源路由,如果依靠IP源地址做确认的服务将产生问题并且会被非法入侵路由器的ip routing是缺省启用的,关闭ip routing是为了把路由器当做一台主机来用,所以此时要配上ip default-gateway ,就象在自己的PC上设置缺省网关一样。有时候会在三层交换机上使用,打开三层交换机的路由功能!(1)配置三层交换机启动路由功能:ip routing(2)配置VLAN IP地址: interface vlan vlan-id Ip address ip-addres

2、s subnet-mask No shutdown(3)配置接口为三层模式: no switchport(4)配置DHCP中继转发: int vlan vlan-id Ip helper-address Dhcpserver-address(5)配置静态路由: ip route targetnet-address netmask nexthop-address(6)配置RIP协议: router rip Network netaddress(7)查看FIB表: show ip cef(8)查看邻接关系表: show adjacency detail(9)查看路由表: show ip route

3、设置虚拟局域网vlan 1 interface vlan 1switch enableswitchc onfigure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface vlan 1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip和子网掩码aptech2950(conf-if)#no shut 是配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway

4、192.168.254 设置网关地址2010-05-31 11:30 CICSO 必会命令PCA login: root ;使用root用户password: linux ;口令是# shutdown -h now ;关机# init 0 ;关机# logout|EPs# loginNU# ifconfig ;显示IP地址# ifconfig eth0 netmask ;设置IP地址# ifconfig eht0 netmask down ; 删除IP地址# route add 0.0.0.0 gw NF# route del 0.0.0.0 gw # route add default gw

5、 ;设置网关# route del default gw ;删除网关# route ;显示网关# ping # telnet ;建立telnet之前先ping一下交换机VLAN设置switch#vlan database ;进入VLAN设置switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;删vlan 2switch(config)#int f0/1 ;进入端口114switch(config-if)#switchport access vlan 2 ;当前端口1加入VLAN 2switch(config-if)#switchport mo

6、de trunk ;设置为干线switch(config-if)#switchport trunk allowed vlan 1,2 ;设置允许的vlanswitch(config-if)#switchport trunk encap dot1q ;设置vlan 中继switch(config)#vtp domain ; 设置发vtp域名4switch(config)#vtp password switch(config)#vtp mode serverswitch(config)#vtp mode client交换机设置IP地址:switch(config)#interface vlan 1

7、 ;进入vlan switch(config-if)#ip address ;添加远程登录IP switch(config)#ip default-gateway ;添加默认网关 switch#dir flash: ;查看内存交换机显示命令:switch#write ;写入保存switch#show vtpswitch#show run ;查看当前配置信息switch#show vlan ;看VLANswitch#show interface ;显示所有端口信息 switch#show int f0/0 ;显示端口0的信息路由器显示命令:b配置IP地址:router(config)#int s

8、0/0 ;进行串Serail接口router(config-if)#no shutdown ;起动接口router(config-if)#clock rate 64000 ;设置时钟-router(config-if)#ip address 10.1.1.1 255.255.0.0 ;设置IP地址和子网掩码router(config-if)#ip add 10.1.1.2 255.255.0.0 second;router(config-if)#int f0/0.1 ; 进入子接口router(config-subif.1)#ip address ;router(config-subif.1)

9、#encapsulation dot1q ;router(config)#config-register 0x2142 ;跳过配置文件router(config)#config-register 0x2102 ;正常使用配置文件router#reload ;重新引导rommonIP_ADDRESS=10.65.1.2 ;设置路由器IPrommonIP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码rommonTFTP_SERVER=10.65.1.1 ;指定TFTP服务器rommonTFTP_FILE=c2600.bin ;所要下载的文件rommontftpdnld ;ROM

10、监控状态下升级rommondir flash: ;查看闪存中的内容rommonboot ;引导IOS静态路由:#ip route 例:router(config)#ip route 10.1.0.0 255.255.0.0 10.2.1.1router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 动态路由:router(config)#ip routing ;启动路由router(config)#router rip ;启动RIP路由协议。router(config-router)#network ;配置范围,有的支持router(config-router)#negihbor ;点对点帧中继用帧中继命令:router(config)# frame-relay switching ;使能帧中继交换router(config-s0)# encapsulation frame-relay ;使能帧中继router(config-s0)# frame-relay intf-type DCE

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 科普知识

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