第十二天笔记

8,路由反射器

        Router Reflector ---路由反射器---RR ----我们可以通过配置,将某些设备在一定的条件下设置称为路由反射器,之后,该设备将可以反射所学习到的IBGP路由信息。

我们在指定一台路由器称为路由反射器(RR)的同时,必须在他的IBGP对等体关系中选择一个或者多个设备称为他的客户

(client),RR和客户之间所构成的系统我们称为反射簇

(Cluster)。每一个反射簇都将使用RR的RID作为簇ID。其余没有称为RR客户的IBGP对等体关系,我们将称其为非客户。

路由反射器的反射规则:

        1,当路由反射器从自己客户处学习到一条路由,则他将会把这条路由信息反射给自己所有的客户以及非客户

        2,如果路由反射器从自己的非客户处学习到一条路由,则他将把这条路由信息反射给自己所有的客户但是不能反射给非客户。

“非非不传”

        3,当路由器执行路由反射时,他只将自己使用的最优的BGP路由进行反射。

因为IBGP水平分割是为了防止环路的产生,而路由反射器将路由反射之后就打破IBGP的水平分割,就可能造成环路的出现。----所以,路由反射器为了防止环路的出现,又引入了两个属性---

Originator_ID(起源者ID) ,Cluster_list(簇列表)

起源者ID--- O_ID---当一条路由信息来到路由反射器时,反射器需要将这条路由信息反射,反射前将在该路由信息中添加这个属性,这个属性的值为该反射器收到这条路由信息的通告者的RID,之后,别的路由反射器收到一条路由信息如果其中包含o_ID,则他将不会改变这个属性。如果一台设备收到一条路由条目其中起源者IlD为自己本地的RID,则将不再学习这条路由信息,起到防止环路的效果。

 

 

如果在一个AS当中,存在多次反射,则一定存在多个反射簇,则每个RR在反射路由信息时都会在其中簇列表属性中添加本地的簇ID。当一个设备收到一条反射的路由信息后,其中的簇列表属性中包含本地簇ID,则将不再学习该路由,防止环路的产生。

[r3-bgp]peer 2.2.2.2 reflect-client ---指定R2作为反射客户,则同时R3自动成为RR

 

9,联邦

联邦的思想就是将同一个AS当中的IBGP对等体关系改变为EBGP对等体关系,通过这种方法来打破IBGP的水平分割。这就需要将不同的IBGP对等体划分到不同成员AS当中,成员AS之间建立的EBGP对等体关系是一种特殊的EBGP对等体关系,他们之间仅遵循EBGP对等体的传递性,而从传递的内容角度看,依然需要遵循AS-BY-AS规则,因为从宏观上看,他们依然处于同一个AS当中。

联邦的做法也相当于打破了IBGP的水平分割,则也将可能出现环路问题,则需要考虑防环。防环方法可以直接借鉴EBGP水平分割,在AS_PATH属性当中添加成员AS号来防止回传。注意,为了区分成员AS和正常的AS,成员AS号将使用小括号括起来。

联邦的配置:

[r2]bgp 64512---联邦成员设备启动BGP进程时需要使用小号来启动

[r2-bgp]confederation id 2 ---声明联邦成员的大号

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当您在命令行中输入"curl --help"时,将会显示curl的所有参数和选项,例如: ``` Usage: curl [options...] <url> --abstract-unix-socket <path> Connect via abstract Unix domain socket --alt-svc <AltSvcString> Alternate service to connect to --anyauth Pick any authentication method -b, --cookie <name=data> Cookie string to send to server(s) --cookie-jar <file> File to save response cookies to --create-dirs Create necessary local directory hierarchy --crlf Convert LF to CRLF in upload --crlfile <file> Use this CRL file --data-binary <data> HTTP POST binary data --data-raw <data> HTTP POST data --data-urlencode <data> HTTP POST data url encoded --delegation <LEVEL> GSS-API delegation permission --digest Use HTTP Digest Authentication --disable-eprt Inhibit using EPRT or LPRT --disable-epsv Inhibit using EPSV --disallow-username-in-url Disallow username in url -D, --dump-header <file> Write headers to <file> --egd-file <file> EGD socket path for random data --engine <name> Crypto engine to use --expect100-timeout <seconds> How long to wait for 100-continue --fail-early Fail on first transfer error, do not continue -f, --fail Fail silently (no output at all) on HTTP errors --false-start Enable TLS False Start -F, --form <name=content> Specify multipart MIME data --form-string <name=string> Specify multipart MIME data --ftp-account <data> Account data string --ftp-alternative-to-user <command> String to replace "USER [name]". --ftp-create-dirs Create the remote dirs if not present --ftp-method [multicwd/nocwd/singlecwd] Control CWD usage. --ftp-pasv Use PASV/EPSV instead of PORT -P, --ftp-port <address> Use PORT with address instead of PASV --ftp-pret Send PRET before PASV --ftp-ssl-ccc Send CCC after authenticating --ftp-ssl-ccc-mode [active/passive] Set CCC mode --ftp-ssl-control Require SSL/TLS for FTP login, clear for transfer -G, --get Put the post data in the URL and use GET --globoff Disable URL sequences and ranges using {} and [] -H, --header <header> Pass custom header(s) to server -h, --help This help text --hostpubmd5 <md5> Hex-encoded MD5 string of the host public key. (SSH) -0, --http1.0 Use HTTP 1.0 --http1.1 Use HTTP 1.1 --http2-prior-knowledge Use HTTP/2 without HTTP/1.1 Upgrade --http2 Use HTTP 2 -i, --include Include protocol response headers in the output --insecure Allow insecure server connections when using SSL -I, --head Show document info only -j, --junk-session-cookies Ignore session cookies read from file --keepalive-time <seconds> Interval between keepalive probes --key <key> Private key file name --key-type <type> Private key file type (DER/PEM/ENG) --krb <level> Enable Kerberos with specified security level --libcurl <file> Dump libcurl equivalent code of this command line --limit-rate <speed> Limit transfer speed to RATE -l, --list-only List only mode --local-port <num> Force use of RANGE for local port numbers -L, --location Follow redirects --location-trusted Like --location, and send auth to other hosts --login-options <options> Server login options -M, --manual Display the full manual --mail-from <from> Mail from this address --mail-rcpt <to> Mail to this/these addresses --mail-auth <address> Originator address of the original email --max-filesize <bytes> Maximum file size to download (bytes) --max-redirs <num> Maximum number of redirects allowed -m, --max-time <seconds> Maximum time allowed for the transfer --metalink Process given URLs as metalink XML file --negotiate Use HTTP Negotiate (SPNEGO) authentication -n, --netrc Use netrc authentication --netrc-file <filename> Specify FILE for netrc -N, --no-buffer Disable buffering of the output stream --no-keepalive Disable TCP keepalive on the connection --no-sessionid Disable SSL session-ID reusing --noproxy <no-proxy-list> Do not use proxy for these hosts/networks --ntlm Use HTTP NTLM authentication --oauth2-bearer <token> OAuth 2 Bearer Token -o, --output <file> Write to file instead of stdout --pass <phrase> Pass phrase for the private key --path-as-is Do not squash .. sequences in URL path --pinnedpubkey <hashes> FILE/HASHES Public key to verify peer against -p, --proxytunnel Operate through a HTTP proxy tunnel (using CONNECT) --proto <protocols> Enable/disable specified protocols --proto-default <protocol> Use this protocol if none is specified --proto-redir <protocols> Enable/disable specified protocols on redirect -x, --proxy [protocol://]host[:port] Use this proxy --proxy-anyauth Pick any proxy authentication method --proxy-basic Use Basic authentication on the proxy --proxy-digest Use Digest authentication on the proxy --proxy-header <header> Pass custom header(s) to proxy --proxy-ntlm Use NTLM authentication on the proxy --proxy-service-name <name> SPNEGO proxy service name --proxy-tlsv1 Use TLSv1 for proxy --proxy-tlsv1.0 Use TLSv1.0 for proxy --proxy-tlsv1.1 Use TLSv1.1 for proxy --proxy-tlsv1.2 Use TLSv1.2 for proxy --proxy-tlsv1.3 Use TLSv1.3 for proxy --proxy1.0 Use HTTP/1.0 proxy on given port -U, --proxy-user <user:password> Proxy user and password --proxy1.1 Use HTTP/1.1 proxy on given port --pubkey <key> Public key file name -Q, --quote Send command(s) to server before transfer --random-file <file> File for reading random data from -r, --range <range> Retrieve only the bytes within RANGE --raw Do HTTP "raw"; no transfer decoding --remote-header-name Use the header-provided filename --remote-name-all Use the remote file name for all URLs -O, --remote-name Write output to a file named as the remote file --remote-time Set the remote file's time on the local output --request-target Use this request target instead of the URL -s, --silent Silent mode (don't output anything) --socks4 <host[:port]> SOCKS4 proxy on given host + optional port number --socks4a <host[:port]> SOCKS4a proxy on given host + optional port number --socks5 <host[:port]> SOCKS5 proxy on given host + optional port number --socks5-basic Enable username/password auth for SOCKS5 proxies --socks5-gssapi Enable GSS-API auth for SOCKS5 proxies --socks5-gssapi-nec Compatibility with NEC SOCKS5 server --socks5-gssapi-service <name> SOCKS5 proxy service name for GSS-API --socks5-gssapi-service-principal <name> SOCKS5 proxy service principal for GSS-API --socks5-gssapi-service-credential <file> SOCKS5 proxy service credential for GSS-API --socks5-hostname <host[:port]> SOCKS5 proxy, pass host name to proxy --speed-limit <speed> Stop transfers slower than this --speed-time <seconds> Trigger 'speed-limit' abort after this time --ssl Try SSL/TLS --ssl-reqd Require SSL/TLS -2, --sslv2 Use SSLv2 -3, --sslv3 Use SSLv3 --stderr <file> Where to redirect stderr --styled-output Enable styled output for HTTP headers --suppress-connect-headers Suppress proxy CONNECT response headers --tcp-fastopen Use TCP Fast Open --tcp-nodelay Use the TCP_NODELAY option --tcp-user-timeout <msecs> How long to wait for TCP connect to succeed -t, --telnet-option <OPT=val> Set telnet option --tftp-blksize <value> Set TFTP BLKSIZE option --tftp-no-options Do not send TFTP options requests -z, --time-cond <time> Transfer based on a time condition -1, --tlsv1 Use TLSv1.0 or greater --tlsv1.0 Use TLSv1.0 or greater --tlsv1.1 Use TLSv1.1 or greater --tlsv1.2 Use TLSv1.2 or greater --tlsv1.3 Use TLSv1.3 or greater -t, --trace <file> Write a debug trace to FILE --trace-ascii <file> Like --trace, but without the hex output --trace-time Add time stamps to trace/verbose output --tr-encoding Request compressed transfer encoding -T, --upload-file <file> Transfer local FILE to destination --url <url> URL to work with -B, --use-ascii Use ASCII/text transfer -u, --user <user:password> Server user and password -A, --user-agent <string> Send User-Agent <string> to server -v, --verbose Make the operation more talkative -V, --version Show version number and quit -w, --write-out <format> Use output FORMAT after completion --xattr Store metadata in extended file attributes ``` 这是一个非常详细的curl参数列表,包括了许多高级选项和功能。如果您想深入了解curl的用法和技巧,可以参考官方文档或者其他的curl教程。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值