关于redistribute static跟default-information originate 的区别

default-information originate 不能用于eigrp。 EIGRP没有这个命令,它引入缺省,一般都是重发布静态。

redistribute static  :重发布静态路由     将静态路由注入路由协议里面,让所有运行相同路由协议的路由器都能学到这条静态路由。
default-information originate   引入缺省路由   这个,其实应该这样说,为别的运行相同路由协议的路由器引入缺省路由。意思就是说,敲下这条命令之后,这个路由器会通过路由协议告诉它的邻居,它有一条缺省路由,然后它的邻居就会产生一条指向这个路由器的缺省路由条目,所有发往未知网络的数据包都会发送给通告这条命令的路由器。但是,有一个前提条件,要让这个命令生效,路由器路由表里必须有缺省路由。意思是说,这个发出通告的路由器必须真正有缺省路由,不然不会通告。如果要强制通告,就是不管我本身有没有缺省路由,我都要通告,那么就要加个参数always: default-information originate always

其实你这两条命令(在引入缺省路由方面)第一个一般都用在EIGRP上,第二个用在OSPF上。
EIGRP的话,就是先配置一条静态缺省路由,例ip route 0.0.0.0 0.0.0.0 null0 ,再将这条路由重发布进EIGRP里面,让所有运行EIGRP的路由器都能知道那个路由器上有一个缺省的路由。

如果不是为了引入缺省路由,仅仅是重发布静态路由的话,一般所有动态路由协议都是支持的

  • 2
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Build: ffprobe-20190623-bc3306f-win64-static Configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt Libraries: SDL 2.0.9 <https://libsdl.org> Fontconfig 2.13.0 <http://freedesktop.org/wiki/Software/fontconfig> GnuTLS 3.6.7.1 <https://gnutls.org/> libiconv 1.15 <http://gnu.org/software/libiconv> libass 0.14.0 <https://github.com/libass/libass> dav1d 20190620-4a2ea99 <https://code.videolan.org/videolan/dav1d> libbluray 20180913-2d18c70 <https://www.videolan.org/developers/libbluray.html> FreeType 2.10.0 <http://freetype.sourceforge.net> LAME 3.100 <http://lame.sourceforge.net> OpenCORE AMR 20170731-07a5be4 <https://sourceforge.net/projects/opencore-amr> OpenJPEG 20190402-d0dd894 <https://github.com/uclouvain/openjpeg> Opus 20190604-ad8fe90 <https://opus-codec.org> shine 3.1.1 <https://github.com/savonet/shine> Snappy 1.1.7 <https://github.com/google/snappy> libsoxr 20180224-945b592 <http://sourceforge.net/projects/soxr> Theora 20171023-e5d205b <http://theora.org> TwoLAME 0.3.13 <http://twolame.org> vpx 20190620-7d9288f <http://webmproject.org> WavPack 5.1.0 <http://wavpack.com> WebP 1.0.2 <https://developers.google.com/speed/webp> x264 20190314-5493be8 <https://www.videolan.org/developers/x264.html> x265 20190618-b36c03e <https://bitbucket.org/multicoreware/x265/wiki/Home> libxml2 2.9.8 <http://xmlsoft.org> z.lib 20190324-89fad4b <https://github.com/sekrit-twc/zimg> XZ Utils 5.2.4 <http://tukaani.org/xz> zlib 1.2.11 <http://zlib.net> vid.stab 20190213-aeabc8d <http://public.hronopik.de/vid.stab> Vorbis 20180705-46e70fa <http://vorbis.com> VisualOn AMR-WB 20141107-3b3fcd0 <https://sourceforge.net/projects/opencore-amr> libmysofa 20181220-50ee637 <https://github.com/hoene/libmysofa> Speex 20181021-6e04bfa <http://speex.org> Xvid 1.3.5 <https://labs.xvid.com> aom 20190621-661552d <https://aomedia.googlesource.com/aom> libmfx 1.27 <https://software.intel.com/en-us/media-sdk> AMF 1.4.7 <https://gpuopen.com/gaming-product/advanced-media-framework> nv-codec-headers 20190311-96a6db0 <https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git> OpenMPT 20190424-2863742 <https://openmpt.org> Copyright (C) 2019 Kyle Schwarz This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Build: ffmpeg-20190623-bc3306f-win64-static Configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt Libraries: SDL 2.0.9 Fontconfig 2.13.0 GnuTLS 3.6.7.1 libiconv 1.15 libass 0.14.0 dav1d 20190620-4a2ea99 libbluray 20180913-2d18c70 FreeType 2.10.0 LAME 3.100 OpenCORE AMR 20170731-07a5be4 OpenJPEG 20190402-d0dd894 Opus 20190604-ad8fe90 shine 3.1.1 Snappy 1.1.7 libsoxr 20180224-945b592 Theora 20171023-e5d205b TwoLAME 0.3.13 vpx 20190620-7d9288f WavPack 5.1.0 WebP 1.0.2 x264 20190314-5493be8 x265 20190618-b36c03e libxml2 2.9.8 z.lib 20190324-89fad4b XZ Utils 5.2.4 zlib 1.2.11 vid.stab 20190213-aeabc8d Vorbis 20180705-46e70fa VisualOn AMR-WB 20141107-3b3fcd0 libmysofa 20181220-50ee637 Speex 20181021-6e04bfa Xvid 1.3.5 aom 20190621-661552d libmfx 1.27 AMF 1.4.7 nv-codec-headers 20190311-96a6db0 OpenMPT 20190424-2863742 Copyright (C) 2019 Kyle Schwarz This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see .

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值