display dhcp server database
display dhcp option template NAME display dhcp statistics
display dhcp client statistics display dhcp relay
IP单播路由配置:
配置静态路由:
ip route-static network mask [ preference preference | tag tag ] * [ description text ] permanent track bfd-session name
ip route-static vpn-instance name network mask [ preference preference | tag tag ] * [ description text ]
ip route-static default-preference preference
//配置静态路由的缺省优先级,默认为60
ip route-static selection-rule relay-depth
//配置静态路由按迭代深度进行优先选择,缺省不按迭代深度进行优选
display ip routing-table
display ip routing-table verbose display bfd session all [ verbose ]
ipv6 route-static
配置静态路由+NQA:
nqa test-instance admin-name test-name //建立NQA测试例 test-type icmp
destination-address ipv4 x.x.x.x frequency interval
//没有配置自动测试间隔,即只进行一次测试 probe-count number
//测试例一次测试的探针数目,缺省为3
start now lifetime time quit
ip route-static network mask * track nqa admin-name test-name
display nqa results [ collection ] [ test-instance admin-name test-name ] //查看NQA测试结果 display nqa results
配置静态路由+BFD:
SwitchA# bfd quit
bfd SWaa bind peer-ip 1.1.1.2 discriminator local 10 discriminator remote 20 commit quit
SwitchB#: bfd quit
bfd SWbb bind peer-ip 1.1.1.1 discriminator local 20 discriminator remote 10 commit quit
SwitchA#:
ip route-static 2.2.2.0 24 1.1.1.2 track bfd-session SWaa
display bfd session all display ip routing-table
配置RIP:
rip [ process-id ] [ vpn-instance vpn-instance-name ] description text version 2
network network-address
preference { preference | route-policy route-policy-name } //设置RIP协议的优先级,缺省为100
display rip process-id route
display default-parameter rip
//查看RIP的缺省配置信息
配置RIP引入外部路由信息:
rip [ process-id ] default-cost cost
//设定引入路由的缺省度量值
import-route bgp [ permit-ibgp ] [ cost { cost | transparent } | route-policy route-policy-name ] 或:
import-route { { static | direct | unr } | { { rip | ospf | isis } [ process-id ] } } [ cost cost | route-policy route-policy-name ]
filter-policy { acl-number | acl-name acl-name } import [ interface-type interface-number ] //基于ACL过滤学到的路由信息,只有通过过滤的路由才能被加入本地路由表中 filter-policy { acl-number | acl-name acl-name } export [ interface-type interface-number ] //对引入的路由信息向外发布时进行过滤(指将引入的外部路由通过RIP进程通告出去)
配置RIP与动态BFD联动特性:
rip 1
version 2
network 2.0.0.0 network 3.0.0.0
bfd all-interfaces enable
bfd all-interfaces min-tx 100 min-rx-interval 100 detect-multiplier 10
配置OSPF:
ospf [ process-id | router-id router-id | vpn-instance vpn-instance-name ] enable log [ config | error | state | snmp-trap ] //使能日志信息
bandwidth-reference value
//配置带宽参考值,单位是Mbit/s maximum load-balancing number //配置最大等价路由数量
silent-interface { all | interface-type interface-number }
//抑制接口接收和发送OSPF报文,接口的直连路由仍可以发布出去。不建邻居 preference [ ase ] { preference | route-policy route-policy-name }
//配置OSPF协议的优先级,默认为10。ase表示设置AS-External路由的优先级,指定ASE时,缺省为150
area area-id
network ip-address wildcard-mask vlink-peer router-id //创建虚连接
stub [ no-summary ]
//配置当前区域为STUB。no-summary禁止ABR向STUB区域内发送Type3 Summary LSA nssa default-route-advertise //配置当前区域为NSSA区域
default-route-advertise abr-summary
//配置ABR路由聚合 asbr-summary
//配置ASBR路由聚合 filter-policy
interface interface-type interface-number ospf enable [ process-id ] area area-id //在接口级别,使能OSPF
ospf network-type { broadcast | nbma | p2mp | p2p } //配置OSPF接口的网络类型 ospf cost cost
//设置OSPF接口的开销值 ospf timer hello interval ospf timer dead interval
reset ospf [ process-id ] redistribution //重新引入路由
display ospf [ process-id ] interface display ospf [ process-id ] peer
//命令查看OSPF邻居的信息 display ospf [ process-id ] brief
//命令查看OSPF的概要信息
区域验证方式: ospf [ process-id ] area area-id
authentication-mode simple [ plain plain-text | [ cipher ] cipher-text ] //配置OSPF区域的验证模式(简单验证)。
authentication-mode { md5 | hmac-md5 | hmac-sha256 } [ key-id { plain plain-text | [ cipher ] cipher-text } ]
//配置OSPF区域的MD5/SHA验证模式
authentication-mode keychain keychain-name //配置OSPF区域的Keychain验证模式 (选择一种验证方式)
接口验证方式:
interface interface-type interface-number
ospf authentication-mode simple [ plain plain-text | [ cipher ] cipher-text ] //配置OSPF区域的验证模式(简单验证)。
ospf authentication-mode { md5 | hmac-md5 | hmac-sha256 } [ key-id { plain plain-text | [ cipher ] cipher-text } ]
//配置OSPF区域的MD5/SHA验证模式
ospf authentication-mode keychain keychain-name //配置OSPF区域的Keychain验证模式 ospf authentication-mode null
//不对OSPF接口进行验证
配置OSPF引入外部路由:
ospf [ process-id ]
default { cost { cost-value | inherit-metric } | limit limit | tag tag | type type }
//配置引入路由时的参数缺省值(路由度量、标记、类型)
import-route { limit limit-number | { bgp [ permit-ibgp ] | direct | unr | rip [ process-id-rip ] | static | isis [ process-id-isis ] | ospf [ process-id-ospf ] } [ cost cost | type type | tag tag | route-policy route-policy-name ] * }
//引入其它协议的路由信息
配置ISIS:
isis [ process-id ] [ vpn-instance vpn-instance-name ] description text
network-entity 49.0000.0000.0001.00 //设置网络实体名称
is-level { level-1 | level-1-2 | level-2 }
//全局设置设备的Level级别,默认为level-1-2 preference { preference | route-policy route-policy-name } //配置IS-IS路由的优先级,默认为15
cost-style { narrow | wide | wide-compatible | { { narrow-compatible | compatible } [ relax-spf-limit ] } }
//设置IS-IS开销的类型,缺省为narrow
bandwidth-reference value
//配置计算带宽的参考值。单位是Mbit/s auto-cost enable