AS号和IPv4地址一样即将耗尽,解决IPv4耗尽的方法是使用IPv6,而使用4字节AS号是解决AS号耗尽的方法。 4字节AS号在RFC 4893中提出。
从2009年1月1号起,RIRs已经开始分配4字节ASN,旧的2字节今年还可以分配;但从2010年1月1号开始,只能给4字节ASN了,低版本IOS不支持。
Cisco设备上:
R1(config)#router bgp ?
<1-4294967295> Autonomous system number
<1.0-XX.YY> Autonomous system number
小说林R1(config)#router bgp 10.3贝叶斯纳什均衡
R1(config-router)#
*Jan 4 16:55:26.851: %BGP-4-NORTRID: BGP could not pick a router-id. Please configure manually.
R1(config-router)#do show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is “bgp 655363″ //经过验证,具体数值计算的方法为:65526*XX+YY
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
…输出省略…
新旧区别:
RFC4271定义了旧号为2字节(1到64511为公有号,64512到65535为私有号)
RFC4893和RFC5396定义和支持4字节ASN:
新乡医学院学报∙ 4字节AS作为新的BGP能力(capability); ∙ ASN23456被保留,作为从旧到新号的过渡ASN;所以BGP路由器在不支持4字节时,将以23456代替所有4字节ASN;
∙ 新的BGP属性(AS4_AGGREGATOR,AS4_PATH);BGP路由器将把4字节ASN信息通过这两个属性传给旧的BGP路由器;
新的4字节ASN可以有三种形式:
1. asplain:就是一个十进制的数字
2. asdot+:写成(2字节).(2字节)的形式,所以旧的2字节ASN123可以写成0.123,ASN65536是1.0,最大为65535.65535
3. asdot:旧的2字节写法照旧,新的4字节写成asdot+的形式,(1-65535;1.0-65535.65535)
其中APNIC可以分配的4字节ASN范围:2.0-2.1023
有兴趣的可以到公众route server查下:sh ip bgp reg 23456 扩展阅读:
Jeff Doyle关于4-byte ASN
wwwworkworld/community/node/35767?page=1
图的同构关于AS23456
btex/as/as23456.html钓鱼岛岛主