思科 IPv6-动态协议配置

IPv6 128位
16进制标识
总共8段

fe80:0000:0000:0000:14bf:c6ba:b9b2:9a3f
fe80::14bf:c6ba:b9b2:9a3f
fe80::0001

配置:

R2(config)#int e0/0        进入接口
R2(config-if)#ip address 192.168.1.2 255.255.255.0   配置IPv4地址
R2(config-if)#no shutdown   激活接口

R3(config)#ipv6 unicast-routing 开启IPv6的路由功能

R2(config)#interface e0/1
R2(config-if)#ipv6 enable  开启IPv6功能
R2(config-if)#ipv6 address 2001::2/64        配置IPv6地址

2001:0000:0000:0000:0000:0000:0000:2/64
2001::2/64

BGP:

R2(config)#router bgp 10000        开启BGP
R2(config-router)#bgp router-id 2.2.2.2          BGP的名字为 2.2.2.2
R2(config-router)#neighbor 23.1.1.3 remote-as 10000 和23.1.1.3建立IPv4邻居

R2(config-router)#neighbor 2001::3 remote-as 10000  建立IPv6邻居
R2(config-router)#address-family ipv4   进入IPv4系列
R2(config-router-af)#neighbor 2001::3 activate   激活IPv6邻居
R2(config-router-af)#network 10.1.1.1 mask 255.255.255.255  宣告网络
R3#show ip bgp all summary   查看BGP邻居关系
R2#show ip bgp all  查看BGP表

OSPF:

R2(config-router-af)#router ospf 1  开启OSPF
R2(config-router)#router-id 2.2.2.2  配置OSPF的RID
R2(config-router)#network 192.168.1.0 0.0.0.255 area 0     宣告网络激活接口

route-map  路由图
R2(config)#ip access-list standard 1
R2(config-std-nacl)#permit host 10.4.4.4
R2(config)#route-map IPV6
R2(config-route-map)#match ip address 1      
R3(config-route-map)#set ip next-hop 23.1.1.3
R2(config-router-af)#neighbor 2001::3 route-map IPV6 in   应用route-map

R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2  添加默认静态路由
  • 1
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值