iprouting启用ip路由功能

iprouting启用ip路由功能

ID:28711738

大小:42.00 KB

页数:4页

时间:2018-12-13

iprouting启用ip路由功能_第1页
iprouting启用ip路由功能_第2页
iprouting启用ip路由功能_第3页
iprouting启用ip路由功能_第4页
资源描述:

《iprouting启用ip路由功能》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、实用标准文案 iprouting启用IP路由功能  noiprouting关闭IP路由功能  ipsourceroutingIP源路由,如果依靠IP源地址做确认的服务将产生问题并且会被非法入侵  路由器的iprouting是缺省启用的,关闭iprouting是为了把路由器当做一台主机来用,所以此时要配上ipdefault-gateway,就象在自己的PC上设置缺省网关一样。  有时候会在三层交换机上使用,打开三层交换机的路由功能!  (1)配置三层交换机启动路由功能:iprouting  (2)配置VLANIP地址:interfacevlanvlan-id    

2、           Ipaddressip-addresssubnet-mask  Noshutdown                    (3)配置接口为三层模式:noswitchport  (4)配置DHCP中继转发:intvlanvlan-id                     Iphelper-addressDhcpserver-address  (5)配置静态路由:iproutetargetnet-addressnetmasknexthop-address  (6)配置RIP协议:routerrip                     N

3、etworknetaddress  (7)查看FIB表:showipcef  (8)查看邻接关系表:showadjacencydetail(9)查看路由表:showiproute设置虚拟局域网vlan1interfacevlan1switch>enableswitch#configureterminalswitch(conf)#hostnameaptch2950aptech2950(conf)#interfacevlan1aptech2950(conf-if)#ipaddress192.168.1.1255.255.255.0配置交换机端口ip和子网掩码aptec

4、h2950(conf-if)#noshut是配置处于运行中aptech2950(conf-if)#exitaptech2950(conf)#ipdefault-gateway192.168.254设置网关地址2010-05-3111:30CICSO必会命令PCAlogin:root;使用root用户password:linux;口令是#shutdown-hnow;关机#init0;关机#logout

5、EPs#loginNU##ifconfig;显示IP地址#ifconfigeth0netmask;设置IP地址#ifconfi

6、geht0netmaskdown;删除IP地址#routeadd0.0.0.0gwNF#routedel0.0.0.0gw#routeadddefaultgw;设置网关#routedeldefaultgw;删除网关精彩文档实用标准文案#route;显示网关#ping#telnet;建立telnet之前先ping一下^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^交换机VLAN设置switch#vlandatabase;进入VL

7、AN设置switch(vlan)#vlan2;建VLAN2switch(vlan)#novlan2;删vlan2switch(config)#intf0/1;进入端口114switch(config-if)#switchportaccessvlan2;当前端口1加入VLAN2switch(config-if)#switchportmodetrunk;设置为干线switch(config-if)#switchporttrunkallowedvlan1,2;设置允许的vlanswitch(config-if)#switchporttrunkencapdot1q;设置v

8、lan中继switch(config)#vtpdomain;设置发vtp域名4switch(config)#vtppasswordswitch(config)#vtpmodeserverswitch(config)#vtpmodeclient  交换机设置IP地址:switch(config)#interfacevlan1;进入vlanswitch(config-if)#ipaddress;添加远程登录IPswitch(config)#ipdefault-gateway;添加默认网关switch#dirflash

9、:;查看内

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。