路由配置命令.pdf

上传人:小** 文档编号:16813803 上传时间:2020-10-27 格式:PDF 页数:30 大小:290.60KB
返回 下载 相关 举报
路由配置命令.pdf_第1页
第1页 / 共30页
路由配置命令.pdf_第2页
第2页 / 共30页
路由配置命令.pdf_第3页
第3页 / 共30页
点击查看更多>>
资源描述
1 . 1 2 PBR . 3 2.1 PBR . 3 2.1.1 debug ip policy . 3 2.1.2 ip policy route-map. 4 2.1.3 match ip address. 5 2.1.4 match length. 6 2.1.5 set default interface. 7 2.1.6 set interface. 8 2.1.7 set ip default next-hop. 9 2.1.8 set ip next-hop. 10 2.1.9 route-map. 11 2.1.10 debug ip policy . 12 2.1.11 ip local policy . 13 2.1.12 ip policy . 15 2.1.13 show ip local policy. 16 2.1.14 show ip policy. 17 3 DNS . 18 3.1 DNS . 18 3.1.1 ip domain lookup . 18 3.1.2 ip domain name-server. 19 3.1.3 ip domain name. 20 3.1.4 ip domain list . 20 3.1.5 ip host. 21 3.1.6 ip domain retry. 22 3.1.7 ip domain timeout. 23 3.1.8 clear ip host. 23 3.1.9 ip domain primary-server. 24 3.1.10 ip domain dynamic enable. 25 3.1.11 ip domain dynamic period. 25 3.1.12 ip domain bind. 26 3.1.13 show ip host . 27 3.1.14 debug ip domain. 28 - I - 1 ip route default | dest mask type num | nexthop distance no ip route dest mask type num | nexthop distance dest IP mask type num nexthop IP distance 1-255 IP D E 127 ip route default type num | nexthop distance 1 E1/1 2.1.1.0/24 ip route 2.1.1.0 255.255.255.0 E1/1 2 E1/1 1.1.1.1 2.1.1.0/24 - 1 - ip route 2.1.1.0 255.255.255.0 E1/1 1.1.1.1 - 2 - 2 PBR 2.1 PBR PBR debug ip policy ip policy route-map match ip address match length set default interface set interface set ip default next-hop set ip next-hop route-map Debug ip policy ip local policy ip policy show ip local policy show ip policy 2.1.1 debug ip policy debug ip policy debug ip policy no debug ip policy - 3 - debug ip policy IP IP debug Router# debug ip policy 2004-1-16 15:32:54 PBR: s=10.1.1.2 (FastEthernet0/0), d=99.1.1.1, len 84, policy rejected - normal forwarding 2004-1-16 15:32:54 PBR: s=10.1.1.21 (FastEthernet0/0), d=99.1.1.1 (FastEthernet0/0.13), len= 84, gate=13.1.1.99 policy routed 2.1.2 ip policy route-map ip policy route-map route-map name, ip no ip policy route-map route-map name ip policy route-map route-map name no ip policy route-map route-map name route-map name route-map - 4 - ip ip policy route-map f0/0 Router_config#int f0/0 Router_config_f0/0#ip policy route-map pbr route-map 2.1.3 match ip address match ip address access-list name IP match ip address access-list name no match ip address access-list name access-list name route-map route-map ip set route map - 5 - IP net1 s0/0 interface f0/0 ip policy route-map moon ! route-map moon match ip address net1 set interface s0/0 set default interface set interface set ip default next-hop set ip next-hop route-map 2.1.4 match length match length IP match length minimum-length maximum-length no match length minimum-length maximum-length minimum-length maximum-length route-map - 6 - match length IP , 1000byte 1500byte ip s0/0 interface f0/0 ip policy route-map moon ! route-map moon match length 1000 1500 set interface s0/0 match ip address set default interface set interface set ip default next-hop set ip next-hop route-map 2.1.5 set default interface set default interface ip set default interface interface name .interface name load-balance no set default interface interface name .interface name load-balance interface name - 7 - route-map set default interface ip (1) set ip next-hop, set ip next-hop set ip next-hop next-hop (2) set interface, set interface ( down ip ) (3) set ip default next-hop, set ip default next-hop set ip default next-hop next-hop match ip address match length set interface set ip default next-hop set ip next-hop route-map 2.1.6 set interface set interface ip set interface interface name .interface name load-balance no set interface interface name .interface name load-balance - 8 - interface name route-map set interface ip (1) set ip next-hop, set ip next-hop set ip next-hop next-hop (2) ( up IP ) match ip address match length set default interface set ip default next-hop set ip next-hop route-map 2.1.7 set ip default next-hop set ip default next-hop IP set ip default next-hop A.B.C.D .A.B.C.D Load-balance no set ip default next-hop A.B.C.D .A.B.C.D Load-balance - 9 - A.B.C.D route-map set ip default next-hop IP (1) set ip next-hop, set ip next-hop set ip next-hop next-hop (2) set interface, set interface ( down IP ) (3) set ip default next-hop next-hop set default interface set interface set ip next-hop route-map 2.1.8 set ip next-hop set ip next-hop ip set ip next-hop A.B.C.D .A.B.C.D Load-balance no set ip next-hop A.B.C.D .A.B.C.D Load-balance - 10 - A.B.C.D route-map set ip next-hop ip set ip next-hop next-hop set default interface set interface set ip default next-hop set ip next-hop route-map 2.1.9 route-map route-map route-map name sequence-number permit | deny no route-map route-map name sequence-number permit | deny route-map name route-map sequence-number ( ) route-map permit ( ) deny ( ) - 11 - route-map route-map pbr route-map route-map pbr 10 permit match ip address net1 set ip next-hop 13.1.1.99 ! route-map pbr 20 permit match ip address net2 set ip next-hop 14.1.1.99 ! route-map pbr 30 permit match ip address net3 set ip next-hop 13.1.1.99 14.1.1.99 load-balance match ip address match length set default interface set interface set ip default next-hop set ip next-hop 2.1.10 debug ip policy debug ip policy no debug ip policy - 12 - debug ip policy no debug ip policy ip local policy ip policy show ip local policy show ip policy 2.1.11 ip local policy ip local policy no ip local policy ip local policy route-map name no ip local policy route-map name name Route-map - 13 - ip local policy route-map Route-map nexthop Route-map Access-list nexthop Access-list nexthop tos precedence nexthop default nexthop interface default interface Nexthop nexthop interface IP UP IP NULL 100.0.0.0/8 s0/0 ip local policy route-map Policy ! route-map Policy match ip address Policy-ACL set interface s1/0 ! ip access-list extended permit ip any 100.0.0.0 255.0.0.0 ! ip policy show ip local policy show ip policy - 14 - 2.1.12 ip policy ip policy no ip policy ip local policy route-map name no ip policy route-map name name Route-map ip policy route-map Route-map nexthop Route-map Access-list nexthop Access-list nexthop tos precedence set ip nexthop set interface default normal route set ip default nexthop set default interface normal route default route tos precedence Nexthop nexthop interface IP UP IP NULL s1/1 100.0.0.0/8 s1/0 - 15 - interface s1/1 ip policy route-map Policy ! route-map Policy match ip address Policy-ACL set interface s1/0 ! ip access-list extended permit ip any 100.0.0.0 255.0.0.0 ! ip local policy show ip local policy show ip policy 2.1.13 show ip local policy show ip policy show ip local policy - 16 - ip local policy ip policy show ip policy 2.1.14 show ip policy show ip policy show ip policy ip local policy ip policy show ip local policy - 17 - 3 DNS 3.1 DNS DNS ip domain lookup ip domain name-server ip domain name ip domain list ip host ip domain retry ip domain timeout clear ip host ip domain primary-server ip domain dynamic enable ip domain dynamic period ip domain bind show ip host debug ip domain 3.1.1 ip domain lookup ip domain lookup no ip domain lookup DNS - 18 - DNS DNS no DNS ip domain lookup 3.1.2 ip domain name-server no ip domain name-server ip-address no ip domain name-server ip-address ip-address IP no ip-address IP 192.168.1.3 - 19 - ip domain name-server 192.168.1.3 3.1.3 ip domain name no ip domain name name no ip domain name name ip domain name 3.1.4 ip domain list no ip domain list name no ip domain list name name - 20 - resolver resolver domain list no ip domain list name name no ip domain list ip domain list ip domain list 3.1.5 ip host no ip host IP ip host name address1address2 no ip host name address1 name address IP - 21 - no ip host name IP name IP 202.96.1.3 dns-server ip host dns-server 202.96.1.3 IP djh IP router_config# ip host djh 172.16.20.209 router_config# ip host djh 172.16.20.210 router_config# ip host djh 172.16.20.209 172.16.20.210 IP router_config# no ip host djh 172.16.20.209 /* djh IP */ router_config# no ip host djh 172.16.20.209 172.16.20.210 /* djh IP */ router_config# no ip host djh /* djh */ 3.1.6 ip domain retry DNS query no ip domain retry count no ip domain retry count 1 10 3 5 - 22 - ip domain retry 5 3.1.7 ip domain timeout DNS query ip domain timeout seconds no ip domain timeout seconds 1 30 2 seconds 3 ip domain timeout 3 3.1.8 clear ip host clear ip host name clear ip host * name * - 23 - resolve clear ip host show ip host 3.1.9 ip domain primary-server IP no ip domain primary-server address no ip domain primary-server address IP - 24 - IP 192.168.1.8 ip domain primary-server 192.168.1.8 3.1.10 ip domain dynamic enable DNS Resolver no ip domain dynamic enable no ip domain dynamic enable DNS Resolver ip domain dynamic enable 3.1.11 ip domain dynamic period no ip domain dynamic period seconds no ip domain dynamic period seconds - 25 - 60 3600 ip domain dynamic period 3600 3.1.12 ip domain bind IP IP name ip domain bind name interface number singly no ip domain bind name interface number IP name IP ip domain bind name ip_addr singly no ip domain bind name ip_addr name no ip domain bind name name number ip_addr IP singly IP name - 26 - ip domain dynamic enable ip domain primary-server ip domain bind no ip domain bind UP UP retry timeout 30 IP IP ip domain bind interface e1/1 ip domain bind 172.16.20.205 3.1.13 show ip host show ip hosts detail detail DNS ID - 27 - / show ip hosts clear ip host 3.1.14 debug ip domain DNS no debug ip domain DNS debug ip domain - 28 -
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 临时分类 > 人力资源


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!