admin 管理员组文章数量: 1184232
2024年1月5日发(作者:java自学书)
# sysname AR1#ipv6
#ospfv3 1 router-id 10.1.1.1#interface GigabitEthernet0/0/0 ipv6 enable
ipv6 address 2001:DB8:100::1/64
ospfv3 1 area 0.0.0.0#interface LoopBack0 ip address 10.1.1.1 255.255.255.255
ospfv3 1 area 0.0.0.0#bgp 100 router-id 10.1.1.1 undo default ipv4-unicast peer 2001:DB8:100::2 as-number 100
peer 2001:DB8:100::3 as-number 100
# ipv4-family unicast undo synchronization # ipv6-family unicast undo synchronization peer 2001:DB8:100::2 enable peer 2001:DB8:100::3 enable#returnAR2:
# sysname AR2#ipv6
#ospfv3 1 router-id 10.3.3.3#interface GigabitEthernet0/0/0 ipv6 enable
ipv6 address 2001:DB8:100::2/64
ospfv3 1 area 0.0.0.0#interface GigabitEthernet0/0/1 ip address 192.168.24.2 255.255.255.0
#interface LoopBack0 ip address 10.2.2.2 255.255.255.255
ospfv3 1 area 0.0.0.0#interface Tunnel0/0/0 ipv6 enable
ipv6 address 2001:DB8:24::2/64
tunnel-protocol gre source 192.168.24.2 destination 192.168.24.4#bgp 100 router-id 10.2.2.2 peer 2001:DB8:24::4 as-number 200
peer 2001:DB8:100::1 as-number 100
peer 2001:DB8:100::3 as-number 100
# ipv4-family unicast undo synchronization # ipv6-family unicast undo synchronization network 2001:DB8:100:: 64
peer 2001:DB8:24::4 enable peer 2001:DB8:100::1 enable peer 2001:DB8:100::1 default-route-advertise peer 2001:DB8:100::3 enable peer 2001:DB8:100::3 default-route-advertise#ospf 1 router-id 10.2.2.2
area 0.0.0.0
network 10.2.2.2 0.0.0.0
network 192.168.24.0 0.0.0.255
#returnAR3:
# sysname AR3#ipv6
#ospfv3 1 router-id 10.2.2.2#interface Serial4/0/0 link-protocol ppp ip address 192.168.35.3 255.255.255.0
#interface GigabitEthernet0/0/0 ipv6 enable
ipv6 address 2001:DB8:100::3/64
ospfv3 1 area 0.0.0.0#interface LoopBack0 ip address 10.3.3.3 255.255.255.255
ospfv3 1 area 0.0.0.0#bgp 100 router-id 10.3.3.3 undo default ipv4-unicast peer 2001:DB8:100::1 as-number 100
peer 2001:DB8:100::2 as-number 100
# ipv4-family unicast undo synchronization # ipv6-family unicast undo synchronization peer 2001:DB8:100::1 enable peer 2001:DB8:100::2 enable#returnAR4:
# sysname AR4#ipv6
#isis 1 is-level level-2 cost-style wide network-entity 49.0001.0000.0000.0004.00 # ipv6 enable topology standard ipv6 default-route-advertise always
#interface GigabitEthernet0/0/0 ip address 192.168.24.4 255.255.255.0
isis enable 1#interface GigabitEthernet0/0/1 ipv6 enable
ipv6 address 2002:A06:606:46::4/64
isis ipv6 enable 1#interface LoopBack0 ip address 10.4.4.4 255.255.255.255
#interface Tunnel0/0/0 ipv6 enable
ipv6 address 2001:DB8:24::4/64
tunnel-protocol gre source 192.168.24.4 destination 192.168.24.2#bgp 200 router-id 10.4.4.4 undo default ipv4-unicast peer 2001:DB8:24::2 as-number 100
peer 2002:A06:606:56::5 as-number 200
# ipv4-family unicast undo synchronization # ipv6-family unicast undo synchronization import-route isis 1 peer 2001:DB8:24::2 enable peer 2002:A06:606:56::5 enable peer 2002:A06:606:56::5 next-hop-local
#ospf 1 router-id 10.4.4.4
area 0.0.0.0
network 10.4.4.4 0.0.0.0
network 192.168.24.0 0.0.0.255
#returnAR5:
# sysname AR5#ipv6
#isis 1 is-level level-2 cost-style wide network-entity 49.0001.0000.0000.0005.00 # ipv6 enable topology standard#interface Serial4/0/0 link-protocol ppp ip address 192.168.35.5 255.255.255.0
#interface Serial4/0/1 link-protocol ppp#interface GigabitEthernet0/0/0 ipv6 enable
ipv6 address 2002:A06:606:56::5/64
isis ipv6 enable 1#interface LoopBack0 ip address 10.5.5.5 255.255.255.255
isis enable 1#bgp 200 router-id 10.5.5.5 undo default ipv4-unicast peer 2002:A06:606:46::4 as-number 200
# ipv4-family unicast undo synchronization # ipv6-family unicast undo synchronization import-route isis 1 peer 2002:A06:606:46::4 enable#returnAR6:
# sysname AR7#ipv6
#dhcp enable#dhcpv6 pool pool address prefix 2002:A07:707::/64 dns-server 2001:DB8:100::1#isis 1 is-level level-2 cost-style wide network-entity 49.0001.0000.0000.0007.00 # ipv6 enable topology standard #interface GigabitEthernet0/0/0 ip address 192.168.67.7 255.255.255.0
isis enable 1#interface GigabitEthernet0/0/1 ipv6 enable
ipv6 address 2002:A07:707::7/64
undo ipv6 nd ra halt ipv6 nd autoconfig other-flag isis ipv6 enable 1 dhcpv6 server pool#interface LoopBack0 ip address 10.7.7.7 255.255.255.255
isis enable 1#interface Tunnel0/0/0 ipv6 enable
ipv6 address 2002:A07:707:67::7/64
tunnel-protocol ipv6-ipv4 6to4 source LoopBack0#ipv6 route-static :: 0 Tunnel0/0/0
#returnAR7:
# sysname AR8#ipv6
#dhcp enable#interface GigabitEthernet0/0/0 ipv6 enable
ipv6 address auto link-local ipv6 address auto dhcp //配置通过dhcpv6获取IP地址#return
版权声明:本文标题:IPv6命令行配置 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1704449822a460277.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论