常用命令及优化 ~~
enable
configure termina
no ip domain lookup
line console 0
no exec-timeout
logging synchronous
exit
hostname
=========
R1
配置
Router(config)#hostname R1
R1(config)#interface fastEthernet 1/0
R1(config-if)#ip address 202.99.4.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface serial 0/0
R1(config-if)#ip address 202.99.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#router rip
R1(config-router)#network 202.99.1.0
R1(config-router)#network 202.99.4.0
R1(config-router)#exit
==========================================
R2
配置
Router(config)#hostname R2
R2(config)#interface serial 0/0
R2(config-if)#ip address 202.99.1.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/1
R2(config-if)#ip add
R2(config-if)#ip address 202.99.2.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface serial 0/2
R2(config-if)#ip address 202.99.3.1 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#router rip
R2(config-router)#network 202.99.1.0
R2(config-router)#network 202.99.2.0
R2(config-router)#network 202.99.3.0
R2(config-router)#exit
===========================================
R3
配置
Router(config)#hostname R3
R3(config)#interface serial 0/0
R3(config-if)#ip address 202.99.2.2 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastEthernet 1/0
R3(config-if)#ip address 202.99.5.1 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#router rip
R3(config-router)#network 202.99.2.0
R3(config-router)#network 202.99.5.0
R3(config-router)#exit
===========================================
R4
配置
Router(config)#hostname R4
R4(config)#interface serial 0/0
R4(config-if)#ip address 202.99.3.2 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastEthernet 1/0
R4(config-if)#ip address 202.99.6.1 255.255.255.0
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#router rip
R4(config-router)#network 202.99.3.0
R4(config-router)#network 202.99.6.0
R4(config-router)#exit
至此 ipv4
环境搭建完成
客户机相互 ping
通
=============================================
开始 ipv6 to ipv4
实验
R1
配置
R1(config)#ipv6 unicast-routing
R1(config)#interface fastEthernet 1/0
R1(config-if)#no ip address
R1(config-if)#ipv6 address 2002:ca63:101::/64 eui-64
R1(config-if)#exit
R1(config)#interface tunnel 0
R1(config-if)#ipv6 address 2001:0:0:1::/64 eui-64
R1(config-if)#tunnel source serial 0/0
R1(config-if)#tunnel mode ipv6ip 6to4
R1(config-if)#exit
R1(config)#ipv6 route 2002::/16 tunnel 0
=========================================
R2
配置
保持 ipv4
环境不变
=========================================
R3
配置
R3(config)#ipv6 unicast-routing
R3(config)#interface fastEthernet 1/0
R3(config-if)#no ip address
R3(config-if)#ipv6 address 2002:ca63:202::/64 eui-64
R3(config)#interface tunnel 0
R3(config-if)#ipv6 address 2001:0:0:3::/64 eui-64
R3(config-if)#tunnel source serial 0/0
R3(config-if)#tunnel mode ipv6ip 6to4
R3(config-if)#exit
R3(config)#ipv6 route 2002::/16 tunnel 0
=========================================
R4
配置
R4(config)#ipv6 unicast-routing
R4(config)#interface fastEthernet 1/0
R4(config-if)#ipv6 address 2002:ca63:302::/64 eui-64
R4(config-if)#exit
R4(config)#interface tunnel 0
R4(config-if)#ipv6 address 2001:0:0:4::/64 eui-64
R4(config-if)#tunnel source serial 0/0
R4(config-if)#tunnel mode ipv6ip 6to4
R4(config-if)#exit
R4(config)#ipv6 route 2002::/16 tunnel 0
配置完成
使用客户机 ping
通即可!
谨以此笔记留作日后复习时用,与大家共勉~~