2022
我们一起努力

bgpto(bgp同步和不同步)

本文目录:

  • 1、2018-11-23 查看你的AS路由汇聚情况
  • 2、谁知道这些类似端口的到底什么意思
  • 3、CE-PE是BGP,PE上在in方向使用了SOO属性。两个PE都如此配置。但是最后发现PE上并没有过滤掉相同SOO的路由
  • 4、路由器配置命令什么时候用到同步时钟???
  • 5、m6000bars升级命令
  • 6、我想问下eigrp当中的as号跟bgp的as号有什么不同的地方吗?

2018-11-23 查看你的AS路由汇聚情况

有这么一个网站,心系全球路由表,每周发布各大机构路由发布和汇聚情况。。。

这个网站是做什么的?其实是发布一个报告,告诉你AS发布的路由和汇聚情况。

“This lists the "Top 30" ASes who if they aggregated their announced prefixes could make a significant contribution to the reduction of the current size of the Internet routing table.

从下图可以看出,截止今天,全球BGP路由表中,路由前缀共有746902条,汇总的有402288条,其他的是什么?当然是没有汇总的泄露出来的路由。

TOP30的AS,这里是按BGP路由条目数量排序的,还能看更详细的报告和建议。

比如说AS4538,看名字翻译出来应该是属于中国教育网,可以看到很多没有汇聚的路由,后面还给出了建议。

最后网站首页拉到最后,输入你的AS号,就可以看到你自己的AS的路由汇聚报告了。

谁知道这些类似端口的到底什么意思

iso-tsap 102/tcp #ISO-TSAP Class 0

rtelnet 107/tcp #Remote Telnet Service

pop2 109/tcp postoffice #Post Office Protocol - Version 2

pop3 110/tcp #Post Office Protocol - Version 3

sunrpc 111/tcp rpcbind portmap #SUN Remote Procedure Call

sunrpc 111/udp rpcbind portmap #SUN Remote Procedure Call

auth 113/tcp ident tap #Identification Protocol

uucp-path 117/tcp

nntp 119/tcp usenet #Network News Transfer Protocol

ntp 123/udp #Network Time Protocol

epmap 135/tcp loc-srv #DCE endpoint resolution

epmap 135/udp loc-srv #DCE endpoint resolution

netbios-ns 137/tcp nbname #NETBIOS Name Service

netbios-ns 137/udp nbname #NETBIOS Name Service

netbios-dgm 138/udp nbdatagram #NETBIOS Datagram Service

netbios-ssn 139/tcp nbsession #NETBIOS Session Service

imap 143/tcp imap4 #Internet Message Access Protocol

pcmail-srv 158/tcp #PCMail Server

snmp 161/udp #SNMP

snmptrap 162/udp snmp-trap #SNMP trap

print-srv 170/tcp #Network PostScript

bgp 179/tcp #Border Gateway Protocol

irc 194/tcp #Internet Relay Chat Protocol

ipx 213/udp #IPX over IP

ldap 389/tcp #Lightweight Directory Access Protocol

https 443/tcp MCom

https 443/udp MCom

microsoft-ds 445/tcp

microsoft-ds 445/udp

kpasswd 464/tcp # Kerberos (v5)

kpasswd 464/udp # Kerberos (v5)

isakmp 500/udp ike #Internet Key Exchange

exec 512/tcp #Remote Process Execution

biff 512/udp comsat

login 513/tcp #Remote Login

who 513/udp whod

cmd 514/tcp shell

syslog 514/udp

printer 515/tcp spooler

talk 517/udp

ntalk 518/udp

efs 520/tcp #Extended File Name Server

router 520/udp route routed

timed 525/udp timeserver

tempo 526/tcp newdate

courier 530/tcp rpc

conference 531/tcp chat

netnews 532/tcp readnews

netwall 533/udp #For emergency broadcasts

uucp 540/tcp uucpd

klogin 543/tcp #Kerberos login

kshell 544/tcp krcmd #Kerberos remote shell

new-rwho 550/udp new-who

remotefs 556/tcp rfs rfs_server

rmonitor 560/udp rmonitord

monitor 561/udp

ldaps 636/tcp sldap #LDAP over TLS/SSL

doom 666/tcp #Doom Id Software

doom 666/udp #Doom Id Software

kerberos-adm 749/tcp #Kerberos administration

kerberos-adm 749/udp #Kerberos administration

kerberos-iv 750/udp #Kerberos version IV

kpop 1109/tcp #Kerberos POP

phone 1167/udp #Conference calling

ms-sql-s 1433/tcp #Microsoft-SQL-Server

ms-sql-s 1433/udp #Microsoft-SQL-Server

ms-sql-m 1434/tcp #Microsoft-SQL-Monitor

ms-sql-m 1434/udp #Microsoft-SQL-Monitor

wins 1512/tcp #Microsoft Windows Internet Name Service

wins 1512/udp #Microsoft Windows Internet Name Service

ingreslock 1524/tcp ingres

l2tp 1701/udp #Layer Two Tunneling Protocol

pptp 1723/tcp #Point-to-point tunnelling protocol

radius 1812/udp #RADIUS authentication protocol

radacct 1813/udp #RADIUS accounting protocol

nfsd 2049/udp nfs #NFS server

knetd 2053/tcp #Kerberos de-multiplexor

man 9535/tcp #Remote Man Server

因为百度不让我有次输入3000字,只好这样了,麻烦大家帮我看看

CE-PE是BGP,PE上在in方向使用了SOO属性。两个PE都如此配置。但是最后发现PE上并没有过滤掉相同SOO的路由

你这两条路由是属于不同的路由,soo是为了防止环路的,是为了防止ce路由器收到与自己在同一个as内的其他ce的相同路由条目而设置的,你这是属于不同的路由,会被接收。

路由器配置命令什么时候用到同步时钟???

只有CISCO路由器的命令

路由器显示命令:

router#show run ;显示配置信息

router#show interface ;显示接口信息

router#show ip route ;显示路由信息

router#show cdp nei ;显示邻居信息

router#reload ;重新起动

路由器口令设置:

routerenable ;进入特权模式

router#config terminal ;进入全局配置模式

router(config)#hostname ;设置交换机的主机名

router(config)#enable secret xxx ;设置特权加密口令

router(config)#enable password xxb ;设置特权非密口令

router(config)#line console 0 ;进入控制台口

router(config-line)#line vty 0 4 ;进入虚拟终端

router(config-line)#login ;要求口令验证

router(config-line)#password xx ;设置登录口令xx

router(config)#(Ctrl+z) ; 返回特权模式

router#exit ;返回命令

路由器配置:

router(config)#int s0/0 ;进入Serail接口

router(config-if)#no shutdown ;激活当前接口

router(config-if)#clock rate 64000 ;设置同步时钟

router(config-if)#ip address ;设置IP地址

router(config-if)#ip address second ;设置第二个IP

router(config-if)#int f0/0.1 ;进入子接口

router(config-subif.1)#ip address ;设置子接口IP

router(config-subif.1)#encapsulation dot1q ;绑定vlan中继协议

router(config)#config-register 0x2142 ;跳过配置文件

router(config)#config-register 0x2102 ;正常使用配置文件

router#reload ;重新引导

路由器文件操作:

router#copy running-config startup-config ;保存配置

router#copy running-config tftp ;保存配置到tftp

router#copy startup-config tftp ;开机配置存到tftp

router#copy tftp flash: ;下传文件到flash

router#copy tftp startup-config;下载配置文件

ROM状态:

Ctrl+Break ;进入ROM监控状态

rommonconfreg 0x2142 ;跳过配置文件

rommonconfreg 0x2102 ;恢复配置文件

rommonreset ;重新引导

rommoncopy xmodem: flash: ;从console传输文件

rommonIP_ADDRESS=10.65.1.2 ;设置路由器IP

rommonIP_SUBNET_MASK=255.255.0.0 ;设置路由器掩码

rommonTFTP_SERVER=10.65.1.1 ;指定TFTP服务器IP

rommonTFTP_FILE=c2600.bin ;指定下载的文件

rommontftpdnld ;从tftp下载

rommondir flash: ;查看闪存内容

rommonboot ;引导IOS

静态路由:

ip route ;命令格式

router(config)#ip route 2.0.0.0 255.0.0.0 1.1.1.2 ;静态路由举例

router(config)#ip route 0.0.0.0 0.0.0.0 1.1.1.2 ;默认路由举例

动态路由:

router(config)#ip routing ;启动路由转发

router(config)#router rip ;启动RIP路由协议。

router(config-router)#network ;设置发布路由

router(config-router)#negihbor ;点对点帧中继用。

帧中继命令:

router(config)#frame-relay switching ;使能帧中继交换

router(config-s0)#encapsulation frame-relay ;使能帧中继

router(config-s0)#fram-relay lmi-type cisco ;设置管理类型

router(config-s0)#frame-relay intf-type DCE ;设置为DCE

router(config-s0)#frame-relay dlci 16 ;

router(config-s0)#frame-relay local-dlci 20 ;设置虚电路号

router(config-s0)#frame-relay interface-dlci 16 ;

router(config)#log-adjacency-changes ;记录邻接变化

router(config)#int s0/0.1 point-to-point ;设置子接口点对点

router#show frame. pvc ;显示永久虚电路

router#show frame. map ;显示映射

基本访问控制列表:

router(config)#access-list permit|deny

router(config)#interface ;default:deny any

router(config-if)#ip access-group in|out ;default:out

例1:

router(config)#access-list 4 permit 10.8.1.1

router(config)#access-list 4 deny 10.8.1.0 0.0.0.255

router(config)#access-list 4 permit 10.8.0.0 0.0.255.255

router(config)#access-list 4 deny 10.0.0.0 0.255.255.255

router(config)#access-list 4 permit any

router(config)#int f0/0

router(config-if)#ip access-group 4 in

扩展访问控制列表:

access-list permit|deny icmp DESTINATIONIP

wild[type]

access-list permit|deny tcp DESTINATIONIP

wild[port]

例3:

router(config)#access-list 101 deny icmp any 10.64.0.2 0.0.0.0 echo

router(config)#access-list 101 permit ip any any

router(config)#int s0/0

router(config-if)#ip access-group 101 in

例3:

router(config)#access-list 102 deny tcp any 10.65.0.2 0.0.0.0 eq 80

router(config)#access-list 102 permit ip any any

router(config)#interface s0/1

router(config-if)#ip access-group 102 out

删除访问控制例表:

router(config)#no access-list 102

router(config-if)#no ip access-group 101 in

路由器的nat配置

Router(config-if)#ip nat inside ;当前接口指定为内部接口

Router(config-if)#ip nat outside ;当前接口指定为外部接口

Router(config)#ip nat inside source static [p] 私有IP公网IP [port]

Router(config)#ip nat inside source static 10.65.1.2 60.1.1.1

Router(config)#ip nat inside source static tcp 10.65.1.3 80 60.1.1.1 80

Router(config)#ip nat pool p1 60.1.1.1 60.1.1.20 255.255.255.0

Router(config)#ip nat inside source list 1 pool p1

Router(config)#ip nat inside destination list 2 pool p2

Router(config)#ip nat inside source list 2 interface s0/0 overload

Router(config)#ip nat pool p2 10.65.1.2 10.65.1.4 255.255.255.0 type rotary

Router#show ip nat translation

rotary 参数是轮流的意思,地址池中的IP轮流与NAT分配的地址匹配。

overload参数用于PAT 将内部IP映射到一个公网IP不同的端口上。

外部网关协议配置:

routerA(config)#router bgp 100

routerA(config-router)#network 19.0.0.0

routerA(config-router)#neighbor 8.1.1.2 remote-as 200

配置PPP验证:

RouterA(config)#username password

RouterA(config)#int s0

RouterA(config-if)#ppp authentication {chap|pap}

3.PIX防火墙命令

Pix525(config)#nameif ethernet0 outside security0 ;命名接口和级别

Pix525(config)#interface ethernet0 auto ;设置接口方式

Pix525(config)#interface ethernet1 100full ;设置接口方式

Pix525(config)#interface ethernet1 100full shutdown

Pix525(config)#ip address inside 192.168.0.1 255.255.255.0

Pix525(config)#ip address outside 133.0.0.1 255.255.255.252

Pix525(config)#global (if_name) natid ip-ip ;定义公网IP区间

Pix525(config)#global (outside) 1 7.0.0.1-7.0.0.15 ;例句

Pix525(config)#global (outside) 1 133.0.0.1 ;例句

Pix525(config)#no global (outside) 1 133.0.0.1 ;去掉设置

Pix525(config)#nat (if_name) nat_id local_ip [netmark]

Pix525(config)#nat (inside) 1 0 0

内网所有主机(0代表0.0.0.0)可以访问global 1指定的外网。

Pix525(config)#nat (inside) 1 172.16.5.0 255.255.0.0

内网172.16.5.0/16网段的主机可以访问global 1指定的外网。

Pix525(config)#route if_name 0 0 gateway_ip [metric] ;命令格式

Pix525(config)#route outside 0 0 133.0.0.1 1 ;例句

Pix525(config)#route inside 10.1.0.0 255.255.0.0 10.8.0.1 1 ;例句

Pix525(config)#static (inside, outside) 133.0.0.1 192.168.0.8

表示内部ip地址192.168.0.8,访问外部时被翻译成133.0.0.1全局地址。

Pix525(config)#static (dmz, outside) 133.0.0.1 172.16.0.8

中间区域ip地址172.16.0.8,访问外部时被翻译成133.0.0.1全局地址

m6000bars升级命令

路由协议查看相关

1)isis相关

M6000#show isis adjacency

Interface System id State Lev Holds SNPA(802.2) Pri MT M6000# show ip forwarding route isis-l1 IPv4 Routing Table:

Dest Mask Gw Interface Owner Pri Metric 2)bgp相关

M6000#show bgp all summary Neighbor Ver As MsgRcvd MsgSend Up/Down State

M6000#show ip bgp summary

Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State/PfxRcd

M6000#show bgp
v4 unicast summary

Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State/PfxRcd

M6000#show ip bgp neighbor ?

A.B.C.D Neighbor to display information about //查看邻居详细信息 in In //查看bgp全局邻居收到的路由信息 out Out //查看bgp全局邻居宣告的路由信息

v4-in
V4 in //查看bgp
邻居收到的路由信息
v4-out
V4 out //查看bgp
邻居宣告的路由信息

M6000#show ip protocol routing Protocol routes:

Status codes: *valid, best, i-internal, s-stale

Dest NextHop RoutePrf RouteMetric Protocol M6000#show ip forward route IPv4 Routing Table:

Dest Mask Gw Interface Owner Pri Metric

8.接口相关

1)查看端口信息

M6000#show interface xgei-0/1/0/1 xgei-0/1/0/1 is administrative

我想问下eigrp当中的as号跟bgp的as号有什么不同的地方吗?

eigrp的AS号本地有效?? 如果相邻的两台路由器EIGRP的AS设置不同是不能建立EIGRP的邻居关系的,从这个意义上来说它不是本地有效。OSPF的进程号才是本地有效。思科的EIGRP协议实际上是借用了BGP里面的AS号,在EIGRP里面AS并不代表互联网中真正意义上的自治系统,EIGRP是IGP协议,原则上来说IGP协议是在AS内部应用的。作为EGP的BGP协议才需要使用真正意义上的AS号。

【bgpto】的内容来源于互联网,如引用不当,请联系我们修改。

赞(0)
文章名称:《bgpto(bgp同步和不同步)》
文章链接:https://www.fzvps.com/153493.html
本站文章来源于互联网,如有侵权,请联系管理删除,本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
图片版权归属各自创作者所有,图片水印出于防止被无耻之徒盗取劳动成果的目的。

评论 抢沙发

评论前必须登录!