Страницы

31 October 2013

Лабораторки CCNA #001/2

Пример настройки статической маршрутизации на router Cisco с ipv6 адресацией.

Топология.



Настройка.

R1:

R1> enable
R1# configure terminal
R1(config)# ipv6 unicast-routing

R1(config)# interface FastEthernet 0/0
R1(config-if)# ipv6 enable
R1(config-if)# ipv6 address 2001:128:0:10::1/64
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# int fa 0/1
R1(config-if)# ipv6 enable
R1(config-if)# ipv6 address 2001:128:0:20::1/64
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# ipv6 route ::/0 2001:128:0:20::2
R2:
R2> enable
R2#configure terminal
R2(config)# ipv6 unicast-routing

R2(config)# interface FastEthernet 0/0
R2(config-if)# ipv6 enable
R2(config-if)# ipv6 address 2001:128:0:40::2/64
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# int fa 0/1
R2(config-if)# ipv6 enable
R2(config-if)# ipv6 address 2001:128:0:20::2/64
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# int fa 1/0
R2(config-if)# ipv6 enable
R2(config-if)# ipv6 address 2001:128:0:30::1/64
R2(config-if)# no shutdown
R2(config-if)# exit

R2(config)# ipv6 route 2001:128:0:10::/64 2001:128:0:20::1
R2(config)# ipv6 route ::/0 2001:128:0:40::1
R3:
R3>enable
R3#configure terminal
R3(config)# ipv6 unicast-routing

R3(config)# interface FastEthernet 0/0
R3(config-if)# ipv6 enable
R3(config-if)# ipv6 address 2001:128:0:40::1/64
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# int fa 0/1
R3(config-if)# ipv6 enable
R3(config-if)# ipv6 address 2001:128:0:50::1/64
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# int fa 1/0
R3(config-if)# ipv6 enable
R3(config-if)# ip address 2001:129:0:1::2/64
R3(config-if)# no shutdown
R3(config-if)# exit

R3(config)# ipv6 route ::/0 2001:129:0:1::1
R3(config)# ipv6 route 2001:128::/58 2001:128:0:40::2
Проверяем:
Таблица маршрутизации 1:

Таблица маршрутизации 2:
Таблица маршрутизации 3:
PS:
1. на R3 используется суммарный маршрут (шестнадцатеричную 3ю часть адреса переводим в бинарный вид по совпадению подбираем префикс)

2. при попытке использования ip адреса вместо nexthop, топология внезапно не заработала. Если кто в курсе почему так может быть, откомментируйте(м.б. глюки PT).

No comments:

Post a Comment